CN111726452A - WiFi list ordering method and electronic equipment - Google Patents
WiFi list ordering method and electronic equipment Download PDFInfo
- Publication number
- CN111726452A CN111726452A CN201910214300.2A CN201910214300A CN111726452A CN 111726452 A CN111726452 A CN 111726452A CN 201910214300 A CN201910214300 A CN 201910214300A CN 111726452 A CN111726452 A CN 111726452A
- Authority
- CN
- China
- Prior art keywords
- wifi
- signal intensity
- change
- list
- amplitude value
- 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
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
Abstract
The invention provides a WiFi list ordering method and electronic equipment, which are used for solving the problem that in the prior art, due to frequent change of WiFi positions in a WiFi list, the error rate of WiFi connection of a user is increased. After the WiFi signal intensity in the WiFi list changes, judging whether the signal intensity change amplitude value of the WiFi reaches a change threshold value; and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi. Because a change threshold is set, when the signal intensity change amplitude value of the WiFi reaches the change threshold, the position of the WiFi with the changed signal intensity in the WiFi list is adjusted, so that the WiFi list does not change frequently according to the change of the signal intensity of the WiFi, and the error rate of connecting the WiFi by a user is reduced.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a WiFi list ordering method and electronic equipment.
Background
With the development of life and the advancement of technology, networks have become an indispensable part of life. WiFi (wireless local area network) is distributed in living scenes such as home, supermarket, market, hotel, school, etc. Electronic equipment such as mobile phones, computers, panels and the like have the function of connecting WiFi. Therefore, when a user uses the electronic device to connect with WiFi, a plurality of WiFi around the user are scanned, and the scanned WiFi is displayed to the user in a list form, so that the user finds the WiFi which the user needs to connect with according to the WiFi displayed in the list, and the connection is triggered.
Since the WiFi in the WiFi list is sorted according to the signal strength, when the signal strength of the WiFi changes, the WiFi list also changes, resulting in a change in the position of the user in the list to connect to the WiFi; at this time, if the user already determines the position of the WiFi to be connected in the list, at the moment when the user triggers the connection, the signal strength of the WiFi to be connected changes and is not at the previously determined position, the user will connect to the current WiFi at the previously determined position, resulting in the user connecting to another WiFi by mistake and causing a wrong connection.
In summary, in the prior art, the WiFi list frequently changes according to the signal strength of the WiFi, so that the user selects the WiFi by mistake, connects to the wrong WiFi, and increases the error rate of connecting to the WiFi.
Disclosure of Invention
The invention provides a WiFi list ordering method and electronic equipment, which are used for solving the problem that in the prior art, due to frequent change of WiFi positions in a WiFi list, the error rate of WiFi connection of a user is increased.
In a first aspect, an embodiment of the present invention provides a WiFi list sorting method, which is applied to an electronic device, and the method includes:
after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
The method comprises the steps of setting a change threshold, judging whether a change amplitude value corresponding to changed WiFi signal strength reaches the change threshold or not when the WiFi signal strength changes in a WiFi list, and adjusting the position of the WiFi in the WiFi list according to the current signal strength of the WiFi after the change amplitude value corresponding to the changed WiFi signal strength reaches the change threshold is determined; by the scheme, the position of the changed WiFi in the WiFi list can be determined not to be adjusted when the WiFi signal strength is changed; but when the signal intensity variation amplitude value of the WiFi reaches the variation threshold, the position of the WiFi with the signal intensity varying in the WiFi list is adjusted, so that the WiFi list does not frequently vary according to the variation of the signal intensity of the WiFi, and the error rate of the user in connecting the WiFi is reduced.
In a possible implementation manner, after determining whether the signal strength variation amplitude value of the WiFi reaches a variation threshold, if it is determined that the signal strength variation amplitude value of the WiFi does not reach the variation threshold and the signal strength of the WiFi does not change again within a set time, after the set time reaches, the position of the WiFi in the WiFi list is adjusted according to the current signal strength of the WiFi.
According to the method, when the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, and the signal intensity does not change again within the set time length, the current signal intensity of the WiFi is stable, so that the position of the adjusted WiFi can not change quickly after the position of the WiFi in the WiFi list is adjusted according to the current signal intensity, the user can be accurately connected to the selected WiFi, and the error rate of the user in connection with the WiFi is reduced.
In a possible implementation manner, if it is determined that the signal strength variation amplitude value of WiFi does not reach the variation threshold, and the signal strength of WiFi is restored to the signal strength before the variation occurs within the set time length, the position of WiFi in the WiFi list is not adjusted.
In the method, the WiFi changed within the set time length is restored to the signal strength before the change, and the position of the WiFi in the WiFi list is kept unchanged because the WiFi is restored within the set time length.
In a possible implementation manner, if it is determined that the signal strength variation amplitude value of WiFi does not reach the variation threshold, and the signal strength of WiFi is not restored to the signal strength before variation within the set time length, and the variation amplitude value between the current signal strength of WiFi and the signal strength before variation reaches the variation threshold, the position of WiFi in the WiFi list is adjusted according to the current signal strength of WiFi.
According to the method, the signal intensity of the WiFi is changed again within the set time length, and the change amplitude value between the signal intensity after the signal intensity is changed again and the signal intensity before the signal intensity is changed reaches the change threshold value, which indicates that the signal intensity of the WiFi is changed greatly and stable connection cannot be ensured, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity, so that a user can determine whether to continue to connect the WiFi according to the adjusted WiFi list.
In a possible implementation manner, if it is determined that the signal strength variation amplitude value of WiFi does not reach the variation threshold, and the signal strength of WiFi is not restored to the signal strength before the variation within the set time length, and the variation amplitude value between the current signal strength of WiFi and the signal strength before the variation does not reach the variation threshold, the position of WiFi in the WiFi list is not adjusted.
According to the method, the signal intensity of the WiFi is changed again within the set duration, and the change amplitude value between the signal intensity after the signal intensity is changed again and the signal intensity before the signal intensity is changed reaches the change threshold value, which indicates that the change amplitude of the signal intensity on the basis of the initially acquired signal intensity is small, and stable connection can be ensured, so that the position of the WiFi in the WiFi list is not adjusted, a user can be smoothly connected to the WiFi, and the error rate of the user in connecting the WiFi is reduced.
In a second aspect, an embodiment of the present invention provides an electronic device for sorting WiFi lists, where the electronic device includes: at least one processing unit and at least one storage unit, wherein the storage unit stores program code, and when the program code is executed by the processing unit, the processing unit is specifically configured to:
after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
In one possible implementation, the processing unit is further configured to:
if the signal intensity variation amplitude value of the WiFi is determined not to reach the variation threshold value and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
In one possible implementation, the processing unit is further configured to:
and if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
In one possible implementation, the processing unit is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change within the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change reaches the change threshold value, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi.
In one possible implementation, the processing unit is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change in the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change does not reach the change threshold value, the position of the WiFi in the WiFi list is not adjusted.
In a third aspect, an embodiment of the present invention provides an electronic device for sorting WiFi lists, where the electronic device includes: the judging module and the adjusting module;
the judging module is used for: after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
the adjustment module is configured to: and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
In a fourth aspect, the present invention also provides a computer storage medium having a computer program stored thereon, which when executed by a processing unit, performs the steps of the method of the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a WiFi list sorting method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a WiFi list generated according to the signal strength of WiFi scanned for the first time after the WiFi scanning function is turned on;
fig. 3 is a schematic diagram illustrating that after the signal intensity variation amplitude value of WiFi reaches the variation threshold, the position in the WiFi list is adjusted according to the current signal intensity of WiFi;
fig. 4 is a flowchart illustrating a process of when a signal strength variation amplitude value of WiFi reaches a variation threshold according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the position of WiFi in the WiFi list after the signal strength variation amplitude value of WiFi has not reached the variation threshold;
fig. 6 is a schematic diagram of the position of WiFi in the WiFi list after it is determined that the signal strength variation amplitude value of WiFi does not reach the variation threshold and the signal strength has not changed again after the set time length expires;
FIG. 7 is a flow chart of a dwell threshold process provided by an embodiment of the present invention;
fig. 8 is a flowchart of a WiFi signal strength changing process again according to an embodiment of the present invention;
fig. 9 is a flowchart of an overall method for sorting WiFi lists according to an embodiment of the present invention;
fig. 10 is a structural diagram of an electronic device for sorting WiFi lists according to a first embodiment of the present invention;
fig. 11 is a structural diagram of an electronic device for sorting WiFi lists according to a second embodiment of the present invention;
fig. 12 is a block diagram of an electronic device with a third WiFi list ordering function according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. 2. In the embodiment of the present invention, the term "change amplitude value" is an absolute value of a difference between a changed signal and an unchanged signal of the WiFi, that is, a change amplitude value | a signal intensity value after the change — a signal intensity value when the change is not changed |.
3. In the embodiment of the present invention, the term "set duration" is the maximum duration of the WiFi staying at the current position when the signal strength of the WiFi changes but the position of the WiFi in the WiFi list does not change, and the set duration may be adjusted according to the actual situation.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
As shown in fig. 1, a flowchart of a WiFi list sorting method according to an embodiment of the present invention specifically includes the following steps:
and step 110, after the signal intensity variation amplitude value is determined to reach the variation threshold, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
In the scheme, a change threshold is set, when the WiFi signal intensity changes in the WiFi list, whether a change amplitude value corresponding to the changed WiFi signal intensity reaches the change threshold is judged, and after the change amplitude value of the signal intensity reaches the change threshold is determined, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi; by the scheme, the position of the changed WiFi in the WiFi list can be determined not to be adjusted when the WiFi signal strength is changed; but when the signal intensity variation amplitude value of the WiFi reaches the variation threshold, the position of the WiFi with the signal intensity varying in the WiFi list is adjusted, so that the WiFi list does not frequently vary according to the variation of the signal intensity of the WiFi, and the error rate of the user in connecting the WiFi is reduced.
As shown in fig. 2, in order to generate a WiFi list according to the signal strength of WiFi scanned for the first time after the WiFi scanning function is turned on when it is determined that WiFi needs to be connected, it should be noted that the WiFi scanning function is turned on for the first time in the embodiment of the present invention as an example;
if the user determines the WiFi to be connected with, namely the WiFi @ PHICOMM _302, and determines that the signal intensity of the @ PHICOMM _302 is inconsistent with the signal intensity in the first scanning, whether the signal intensity change amplitude value between the signal intensity in the scanning of the @ PHICOMM _302 and the signal intensity after change reaches a change threshold value is judged.
For example, the signal intensity of @ PHICOMM _302 obtained when WiFi is scanned for the first time is 4, the change threshold is 2, the signal intensity of @ PHICOMM _302 changes and then is 2, the signal intensity change amplitude value of @ PHICOMM _302 is 2, the change threshold is reached, and the position of @ PHICOMM _302 in the WiFi list is adjusted.
As shown in fig. 3, the schematic diagram is obtained after the position of WiFi in the WiFi list is adjusted according to the current signal strength of WiFi after it is determined that the signal strength variation amplitude value of WiFi reaches the variation threshold.
As shown in fig. 4, a processing flow chart for a WiFi signal strength variation amplitude value reaching a variation threshold provided in an embodiment of the present invention specifically includes the following steps:
In the embodiment of the present invention, after determining whether the signal intensity variation amplitude value of the WiFi reaches a variation threshold, determining that the signal intensity variation amplitude value of the WiFi does not reach the variation threshold, keeping the position of the WiFi in the WiFi list unchanged, and determining whether the signal intensity of the WiFi changes again within a set time period;
if the signal intensity change amplitude value of the WiFi is determined not to reach the threshold value, and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
For example, the signal strength of @ PHICOMM _302 changes to 3, and compared with the signal strength of @ PHICOMM _302 at the time of the first scan, the signal strength change amplitude value is 1, and the change threshold value of 2 is not reached, at this time, the position of @ PHICOMM _302 in the WiFi list does not change, as shown in FIG. 5.
Further, whether the signal intensity of @ PHICOMM _302 changes again in the set time length is judged, if the set time length is 30 seconds, whether the signal intensity of @ PHICOMM _302 changes again is determined in real time within the set time length of 30 seconds, the signal intensity of @ PHICOMM _302 does not change again within the set time length, and the position of @ PHICOMM _302 in WiFi is adjusted according to the fact that the signal intensity of @ PHICOMM _302 is 3.
As shown in fig. 6, after it is determined that the signal strength variation amplitude value of WiFi does not reach the variation threshold and the signal strength does not change again within the set time length, the position of WiFi in the WiFi list is adjusted according to the current signal strength of WiFi after the set time length is reached.
As shown in fig. 7, a flow chart of a staying threshold processing provided in the embodiment of the present invention specifically includes the following steps:
and step 740, determining the position of the WiFi in the list according to the changed signal strength of the WiFi.
In the embodiment of the present invention, when determining the position of the WiFi in the list according to the signal strength of the WiFi after being changed again: determining that the signal intensity variation amplitude value of the WiFi does not reach a variation threshold value, and the signal intensity of the WiFi is changed again within a set time length, and judging whether the signal intensity of the WiFi after the signal intensity is changed again is recovered to the signal intensity before the signal intensity is changed;
the first condition is as follows: and determining that the signal intensity change amplitude value of the WiFi does not reach the change threshold, wherein the signal intensity of the WiFi changes again within the set time length, and the signal intensity of the WiFi after the signal intensity changes again is recovered to the signal intensity before the change.
And if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
For example, the signal strength of @ PHICOMM _302 changes to 3, and compared with the signal strength of @ PHICOMM _302 at the time of the first scan, the signal strength change amplitude value is 1, and does not reach the change threshold value of 2, at this time, the position of @ PHICOMM _302 in the WiFi list does not change.
Further, it is determined whether the signal intensity of @ PHICOMM _302 changes again within 30 seconds of the set time duration, after it is determined that the signal intensity of @ PHICOMM _302 changes again within the set time duration, it is determined whether the signal intensity of @ PHICOMM _302 returns to the signal intensity value before the change after the signal intensity of @ PHICOMM _302 changes again, if the signal intensity after the signal intensity of @ PHICOMM _302 changes again is 4, it is determined that the signal intensity before the change returns, and at this time, it is determined that the position of @ PHICOMM _302 in the WiFi list is unchanged, as shown in FIG. 2.
It should be noted that, since the WiFi signal strength is restored to the signal strength before the change after the WiFi signal strength is changed again within the set time length, it is no longer determined whether the WiFi signal strength is changed again according to the set time length.
Case two: and determining that the signal intensity change amplitude value of the WiFi does not reach the change threshold value, wherein the signal intensity of the WiFi changes again within the set time length, and the signal intensity of the WiFi after the signal intensity changes again does not recover to the signal intensity before the change.
In the embodiment of the present invention, after it is determined that the signal strength of the WiFi is not restored to the signal strength before the change after the signal strength of the WiFi is changed again, the position of the WiFi in the WiFi list is determined according to the change amplitude value between the current signal strength of the WiFi and the signal strength before the change.
In the embodiment of the present invention, when the position of the WiFi in the WiFi list is determined according to the amplitude variation value between the current signal strength of the WiFi and the signal strength before the change, it is determined whether the amplitude variation value between the signal strength after the signal strength of the WiFi changes again and the signal strength before the change reaches the change threshold, that is, whether the amplitude variation value between the current signal strength of the WiFi and the signal strength before the change reaches the change threshold is determined, if the amplitude variation value reaches the change threshold, the position of the WiFi in the WiFi list is adjusted according to the current signal strength of the WiFi, otherwise, the position of the WiFi in the WiFi list is kept unchanged, which is described below separately.
Firstly, the method comprises the following steps: and determining that the change amplitude value between the current signal strength of the WiFi and the signal strength before the change reaches a change threshold value, and adjusting the position of the WiFi in the WiFi list according to the current signal strength of the WiFi.
Optionally, if it is determined that the signal strength variation amplitude value of the WiFi does not reach the variation threshold, and the signal strength of the WiFi is not restored to the signal strength before the variation within the set time length, and the variation amplitude value between the current signal strength of the WiFi and the signal strength before the variation reaches the variation threshold, the position of the WiFi in the WiFi list is adjusted according to the current signal strength of the WiFi.
For example, the signal strength of @ PHICOMM _302 changes to 3, and compared with the signal strength of @ PHICOMM _302 at the time of the first scan, the signal strength change amplitude value is 1, and does not reach the change threshold value of 2, at this time, the position of @ PHICOMM _302 in the WiFi list does not change.
Further, whether the signal intensity of the @ PHICOMM _302 changes again or not is determined in real time within 30 seconds of the set time length, after the signal intensity of the @ PHICOMM _302 changes again within the set time length is determined, it is determined that the amplitude value of the change between the signal intensities before the signal intensity of the @ PHICOMM _302 changes again reaches a threshold value, and the position of the WiFi in the WiFi list is adjusted according to the current signal intensity.
For example, the signal strength of @ PHICOMM _302 scanned for the first time is 4, the signal strength after the first change is 3, the signal intensity after the change again in the set time length is 2, the signal intensity after the change again does not recover to the signal intensity 4 at the moment, the change amplitude value between the signal intensity after the change again and the signal intensity before the change is calculated, the signal intensity before the change is assumed to be the signal intensity scanned for the first time, the change amplitude value between the signal intensity after the change again and the signal intensity scanned for the first time is calculated at the moment, the change amplitude value between the signal intensity after the change again and the signal intensity scanned for the first time is determined to be 2, and the change threshold value is reached, the position of @ PHICOMM _302 in the WiFi list is adjusted according to the current signal strength 2, and the adjusted WiFi list is shown in fig. 3.
It should be noted that, after the WiFi signal strength is changed again within the set time length, the change amplitude value between the signal strength after the change and the signal strength before the change reaches the threshold value, and the position is adjusted according to the current signal strength, and when the signal slight change no longer occurs, it is no longer determined whether the WiFi signal strength is changed again according to the set time length.
It should be noted that, in the foregoing embodiment, the signal strength scanned for the first time is taken as an example for explanation, and the signal strength before the change in actual use may be a signal strength corresponding to a stable state, where the stable state is that the signal strength of the WiFi does not change within a certain time period, or may be a signal strength in other cases, which is not described herein again.
II, secondly: and determining that the change amplitude value between the current signal strength of the WiFi and the signal strength before the change does not reach a change threshold value, and not adjusting the position of the WiFi in the WiFi list.
Optionally, if it is determined that the signal strength variation amplitude value of the WiFi does not reach the variation threshold, and the signal strength of the WiFi is not restored to the signal strength before the variation within the set time length, and the variation amplitude value between the current signal strength of the WiFi and the signal strength before the variation does not reach the variation threshold, the position of the WiFi in the WiFi list is not adjusted.
For example, the signal strength of @ PHICOMM _302 before the change is 3, the signal strength after the change is 1, and compared with the signal strength of @ PHICOMM _302 before the change, the signal strength change amplitude value is 1, and the change threshold value 2 is not reached, at this time, the position of @ PHICOMM _302 in the WiFi list is not changed.
Further, whether the signal intensity of @ PHICOMM _302 changes again or not is determined in real time within 30 seconds of the set time length, after the signal intensity of @ PHICOMM _302 changes again within the set time length is determined, it is determined that the amplitude value of the change between the signal intensities before the signal intensity of @ PHICOMM _302 changes again does not reach the threshold value, the position of @ PHICOMM _302i in the WiFi list is not adjusted, and the position of @ PHICOMM _302 in the WiFi list is not changed.
For example, the signal strength of @ PHICOMM _302 is 3, the signal strength after the first change is 2, the signal strength after the second change is 2 within the set time length, and the signal strength after the second change is not restored to the signal strength 4 at this time, the change amplitude value between the signal strength after the second change and the signal strength before the second change is calculated, the change amplitude value between the signal strength after the second change and the signal strength before the second change is determined to be 1, and when the change threshold is reached, the position of @ PHICOMM _302 in the WiFi list is not adjusted.
It should be noted that, after the signal intensity of the WiFi within the set time length changes again, the change amplitude value between the signal intensity after the change and the signal intensity before the change does not reach the threshold, the position of the WiFi in the WiFi list is not adjusted, at this time, it needs to be determined again whether the change occurs again within the set time length, and if the signal intensity within the set time length changes again, it determines whether the change amplitude value between the signal intensity after the change and the signal intensity before the change reaches the threshold; or if the signal intensity is not changed again within the set time length, adjusting the position of the WiFi in the WiFi list according to the current signal intensity.
As shown in fig. 8, a flowchart of processing for changing WiFi signal strength again according to an embodiment of the present invention includes the following steps;
In the embodiment of the present invention, a timer may be set, configured to time the time that WiFi that has changed in signal strength but does not reach a change threshold stays at the current location;
when the signal strength of the WiFi is determined to be changed, but the signal strength change amplitude value does not reach the change threshold value, the position of the WiFi in the WiFi list is determined to be unchanged, and a timer is started.
The set timer can adopt a positive timing mode or a negative timing mode.
As shown in fig. 9, a flowchart of an overall method for sorting WiFi lists provided in the embodiment of the present invention specifically includes the following steps:
905, adjusting the position of the WiFi in the WiFi list according to the current signal strength of the WiFi;
in step 910, the position of the WiFi in the WiFi list is adjusted according to the current signal strength of the WiFi.
Based on the same inventive concept, the embodiment of the present invention further provides an electronic device for sorting a WiFi list, and since the electronic device corresponds to the electronic device corresponding to the method for sorting a WiFi list in the embodiment of the present invention, and the principle of the electronic device for solving the problem is similar to the principle of the method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are omitted.
Specifically, as shown in fig. 10, a structure diagram of an electronic device for sorting WiFi lists provided in an embodiment of the present invention includes: at least one processing unit 1000 and at least one storage unit 1010, where the storage unit 1010 stores program code, and when the program code is executed by the processing unit 1000, the processing unit 1000 is specifically configured to:
after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
Optionally, the processing unit 1000 is further configured to:
if the signal intensity variation amplitude value of the WiFi is determined not to reach the variation threshold value and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
Optionally, the processing unit 1000 is further configured to:
and if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
Optionally, the processing unit 1000 is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change within the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change reaches the change threshold value, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi.
Optionally, the processing unit 1000 is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change in the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change does not reach the change threshold value, the position of the WiFi in the WiFi list is not adjusted.
As shown in fig. 11, an electronic device 1100 for providing a second WiFi list ordering according to an embodiment of the present invention includes: radio Frequency (RF) circuit 1110, power supply 1120, processor 1130, memory 1140, input unit 1150, display unit 1160, camera 1170, communication interface 1180, and Wireless Fidelity (WiFi) module 1190. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 11 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components may be provided.
The following describes each component of the electronic device 1100 in detail with reference to fig. 11:
the RF circuit 1110 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 1110, after receiving downlink data of a base station, sends the downlink data to the processor 1130 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 1110 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 1110 can also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the electronic device 1100 realizes Access to a data network through an Access Point (AP) to which a WiFi module 1190 can be connected. The WiFi module 1190 may be used for receiving and transmitting data during communication.
The electronic device 1100 may be physically connected to other terminals through the communication interface 1180. Optionally, the communication interface 1180 is connected to the communication interface of the other terminal through a cable, so as to implement data transmission between the electronic device 1100 and the other terminal.
In this embodiment of the application, the electronic device 1100 is capable of implementing a communication service to send information to other contacts, so that the electronic device 1100 needs to have a data transmission function, that is, the electronic device 1100 needs to include a communication module inside. Although fig. 11 shows communication modules such as the RF circuit 1110, the WiFi module 1190, and the communication interface 1180, it is understood that at least one of the above components or other communication modules (e.g., bluetooth modules) for implementing communication may be present in the electronic device 1100 for data transmission.
For example, when the electronic device 1100 is a mobile phone, the electronic device 1100 may include the RF circuit 1110 and may further include the WiFi module 1190; when the electronic device 1100 is a computer, the electronic device 1100 may include the communication interface 1180 and may further include the WiFi module 1190; when the electronic device 1100 is a tablet computer, the electronic device 1100 may include the WiFi module.
The memory 1140 may be used to store software programs and modules. The processor 1130 executes the software programs and modules stored in the memory 1140 so as to execute various functional applications and data processing of the electronic device 1100, and when the processor 1130 executes the program codes in the memory 1140, part or all of the processes in fig. 1 according to the embodiments of the present invention can be implemented.
Alternatively, the memory 1140 may mainly include a program storage area and a data storage area. The storage program area can store an operating system, various application programs (such as communication application), a face recognition module and the like; the storage data area may store data (such as various multimedia files like pictures, video files, etc., and face information templates) created according to the use of the terminal, etc.
Further, the memory 1140 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1150 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the electronic device 1100.
Optionally, the input unit 1150 may include a touch panel 1151 and other input terminals 1152.
The touch panel 1151, also called a touch screen, can collect touch operations of a user on or near the touch panel 1151 (for example, operations of a user on or near the touch panel 1151 by using any suitable object or accessory such as a finger or a stylus pen), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 1151 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1130, and can receive and execute commands sent by the processor 1130. In addition, the touch panel 1151 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave.
Optionally, the other input terminals 1152 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1160 may be used to display information input by or provided to a user and various menus of the electronic device 1100. The display unit 1160 is a display system of the electronic device 1100, and is used for presenting an interface to realize human-computer interaction.
The display unit 1160 may include a display panel 1161. Alternatively, the Display panel 1161 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting diode (OLED), or the like.
Further, the touch panel 1151 can cover the display panel 1161, and when the touch panel 1151 detects a touch operation on or near the touch panel 1151, the touch panel is transmitted to the processor 1130 to determine the type of the touch event, and then the processor 1130 provides a corresponding visual output on the display panel 1161 according to the type of the touch event.
Although in fig. 11, the touch panel 1151 and the display panel 1161 are two separate components to implement the input and output functions of the electronic device 1100, in some embodiments, the touch panel 1151 and the display panel 1161 may be integrated to implement the input and output functions of the electronic device 1100.
The processor 1130 is a control center of the electronic device 1100, connects various components using various interfaces and lines, and performs various functions of the electronic device 1100 and processes data by operating or executing software programs and/or modules stored in the memory 1140 and calling data stored in the memory 1140, thereby implementing various services based on the terminal.
Optionally, the processor 1130 may include one or more processing units. Optionally, the processor 1130 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into the processor 1130.
The camera 1170 is configured to implement a shooting function of the electronic device 1100, and shoot a picture or a video. The camera 1170 may also be used to implement a scanning function of the electronic device 1100 to scan a scanned object (two-dimensional code/barcode).
The electronic device 1100 also includes a power supply 1120, such as a battery, for powering the various components. Optionally, the power supply 1120 may be logically connected to the processor 1130 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
Although not shown, the electronic device 1100 may further include at least one sensor, audio circuit, etc., which are not described in detail herein.
As shown in fig. 12, a structural diagram of an electronic device for sorting WiFi lists according to a third embodiment of the present invention is shown, where the electronic device includes: a judging module 1200 and an adjusting module 1210;
the determining module 1200 is configured to: after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
the adjustment module 1210 is configured to: and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
Optionally, the determining module 1200 is further configured to:
if the signal intensity variation amplitude value of the WiFi is determined not to reach the variation threshold value and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
Optionally, the determining module 1200 is further configured to:
and if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
Optionally, the determining module 1200 is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change within the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change reaches the change threshold value, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi.
Optionally, the determining module 1200 is further configured to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change in the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change does not reach the change threshold value, the position of the WiFi in the WiFi list is not adjusted.
Embodiments of the present invention also provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described in fig. 1 above.
The present invention is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the invention. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the present invention may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the invention can take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this document, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for ordering WiFi (wireless fidelity) lists in a wireless local area network is applied to electronic equipment, and is characterized by comprising the following steps:
after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
2. The method of claim 1, wherein after determining whether the signal strength variation amplitude value of the WiFi reaches a variation threshold, further comprising:
if the signal intensity variation amplitude value of the WiFi is determined not to reach the variation threshold value and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
3. The method of claim 2, further comprising:
and if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
4. The method of claim 3, further comprising:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change within the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change reaches the change threshold value, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi.
5. The method of claim 4, further comprising:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change in the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change does not reach the change threshold value, the position of the WiFi in the WiFi list is not adjusted.
6. An electronic device for WiFi list ordering, the electronic device comprising: at least one processing unit and at least one storage unit, wherein the storage unit stores program code, and when the program code is executed by the processing unit, the processing unit is specifically configured to:
after the WiFi signal intensity changes in the WiFi list, judging whether the WiFi signal intensity change amplitude value reaches a change threshold value;
and after the signal intensity variation amplitude value is determined to reach a variation threshold value, adjusting the position of the WiFi in the WiFi list according to the current signal intensity of the WiFi.
7. The electronic device of claim 6, wherein the processing unit is further to:
if the signal intensity variation amplitude value of the WiFi is determined not to reach the variation threshold value and the signal intensity of the WiFi is not changed again within the set time length, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi after the set time length is reached.
8. The electronic device of claim 7, wherein the processing unit is further to:
and if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value and the signal intensity of the WiFi is recovered to the signal intensity before the change within the set time length, not adjusting the position of the WiFi in the WiFi list.
9. The electronic device of claim 7, wherein the processing unit is further to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change within the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change reaches the change threshold value, the position of the WiFi in the WiFi list is adjusted according to the current signal intensity of the WiFi.
10. The electronic device of claim 7, wherein the processing unit is further to:
if the signal intensity change amplitude value of the WiFi is determined not to reach the change threshold value, the signal intensity of the WiFi is not recovered to the signal intensity before the change in the set time length, and the change amplitude value between the current signal intensity of the WiFi and the signal intensity before the change does not reach the change threshold value, the position of the WiFi in the WiFi list is not adjusted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910214300.2A CN111726452B (en) | 2019-03-20 | 2019-03-20 | Wireless local area network WiFi list ordering method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910214300.2A CN111726452B (en) | 2019-03-20 | 2019-03-20 | Wireless local area network WiFi list ordering method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111726452A true CN111726452A (en) | 2020-09-29 |
CN111726452B CN111726452B (en) | 2023-07-18 |
Family
ID=72563042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910214300.2A Active CN111726452B (en) | 2019-03-20 | 2019-03-20 | Wireless local area network WiFi list ordering method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111726452B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102083152A (en) * | 2011-03-07 | 2011-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Method for switching hotspots in wireless local area network (WLAN) and terminal |
CN105376700A (en) * | 2015-11-23 | 2016-03-02 | 努比亚技术有限公司 | An access device and method for a free Wi-Fi network |
CN105813221A (en) * | 2014-12-31 | 2016-07-27 | 张义勇 | WIFI disconnected network reconnection method of intelligent device in WIFI wireless local network environment |
WO2017107383A1 (en) * | 2015-12-25 | 2017-06-29 | 深圳Tcl数字技术有限公司 | Method and device for scanning for and displaying wireless hotspots |
CN107277911A (en) * | 2016-04-08 | 2017-10-20 | 深圳市中兴微电子技术有限公司 | A kind of radio transmitted power method of adjustment and device |
CN107277259A (en) * | 2017-07-05 | 2017-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Signal adjusting method and electronic equipment |
CN108366402A (en) * | 2018-02-01 | 2018-08-03 | 广东欧珀移动通信有限公司 | Switching method, device, storage medium and the electronic equipment of speech business |
CN109150329A (en) * | 2018-08-16 | 2019-01-04 | 珠海格力电器股份有限公司 | Signal display method and device |
-
2019
- 2019-03-20 CN CN201910214300.2A patent/CN111726452B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102083152A (en) * | 2011-03-07 | 2011-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Method for switching hotspots in wireless local area network (WLAN) and terminal |
CN105813221A (en) * | 2014-12-31 | 2016-07-27 | 张义勇 | WIFI disconnected network reconnection method of intelligent device in WIFI wireless local network environment |
CN105376700A (en) * | 2015-11-23 | 2016-03-02 | 努比亚技术有限公司 | An access device and method for a free Wi-Fi network |
WO2017107383A1 (en) * | 2015-12-25 | 2017-06-29 | 深圳Tcl数字技术有限公司 | Method and device for scanning for and displaying wireless hotspots |
CN107277911A (en) * | 2016-04-08 | 2017-10-20 | 深圳市中兴微电子技术有限公司 | A kind of radio transmitted power method of adjustment and device |
CN107277259A (en) * | 2017-07-05 | 2017-10-20 | 宇龙计算机通信科技(深圳)有限公司 | Signal adjusting method and electronic equipment |
CN108366402A (en) * | 2018-02-01 | 2018-08-03 | 广东欧珀移动通信有限公司 | Switching method, device, storage medium and the electronic equipment of speech business |
CN109150329A (en) * | 2018-08-16 | 2019-01-04 | 珠海格力电器股份有限公司 | Signal display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN111726452B (en) | 2023-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115357178B (en) | Control method applied to screen-throwing scene and related equipment | |
CN110837398B (en) | Method and terminal for displaying card of quick application | |
CN111818350B (en) | Method, system, device, electronic equipment and storage medium for displaying information | |
CN108834132B (en) | Data transmission method and equipment and related medium product | |
CN106713799B (en) | Projection equipment control method, projection equipment and intelligent terminal | |
CN112579264B (en) | Application program jumping method, terminal and computer storage medium | |
CN104965641A (en) | Method and apparatus for displaying information | |
CN112118538A (en) | Method and device for device information interaction between terminals | |
CN112691363A (en) | Cross-terminal switching method and related device for cloud games | |
CN107018328A (en) | A kind of image scan method method and image-scanning device | |
CN113489630A (en) | Network distribution method, device, storage medium and electronic terminal | |
CN106254469A (en) | A kind of picture pushes and display packing, server and communication terminal | |
CN106484563B (en) | Data migration method and terminal equipment | |
CN107797723B (en) | Display style switching method and terminal | |
CN110602707A (en) | Method and terminal for connecting wireless network | |
CN109348425B (en) | Positioning information updating method, device, equipment and storage medium | |
CN111314900A (en) | Wireless connection method, wireless connection device and mobile terminal | |
CN111726452B (en) | Wireless local area network WiFi list ordering method and electronic equipment | |
CN110928463B (en) | Method, device and system for controlling remote equipment, service server and storage medium | |
CN107615289A (en) | The determination method, apparatus and terminal device of a kind of right-hand man's pattern | |
CN110851198B (en) | Method and terminal for displaying view of quick application | |
US10110720B2 (en) | Dialing method for user terminal and user terminal | |
CN110996003B (en) | Photographing positioning method and device and mobile terminal | |
CN110096190B (en) | Method and terminal for displaying two-dimensional code | |
CN114126083A (en) | Cross-network-segment wireless screen projection method and device, electronic equipment 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |