CN111935754A - AP hot spot channel automatic selection method, device, storage medium and terminal equipment - Google Patents
AP hot spot channel automatic selection method, device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN111935754A CN111935754A CN202010900611.7A CN202010900611A CN111935754A CN 111935754 A CN111935754 A CN 111935754A CN 202010900611 A CN202010900611 A CN 202010900611A CN 111935754 A CN111935754 A CN 111935754A
- Authority
- CN
- China
- Prior art keywords
- channel
- acs
- weight evaluation
- weight
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/382—Monitoring; Testing of propagation channels for resource allocation, admission control or handover
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses an AP hot spot channel automatic selection method, device, storage medium and terminal equipment based on an android system, wherein the method comprises the following steps: modifying the native AOSP source code of the android system, so that when a user starts an AP function of the android system, a preset configuration item is contained in a dynamically generated hostap. Calling an ACS program to start; the started ACS program carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of the multiple measurements are obtained; respectively carrying out weight evaluation processing on the surfy data measured for multiple times; and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results. In the embodiment of the invention, the automatic finding of a clean channel or a channel with relatively low interference and the dynamic switching to the best channel are realized according to the actual situation.
Description
Technical Field
The invention relates to the technical field of communication, in particular to an AP hot spot channel automatic selection method and device based on an android system, a storage medium and terminal equipment.
Background
The terminal device usually uses a portable hotspot function of an android system to open a wireless hotspot so as to provide access to other devices, and uses a screen projection function on the terminal device to transmit pictures, videos and the like of other devices to the terminal device through the hotspot for display.
The android native portable hotspot function can only use a default specific WIFI channel each time the android native portable hotspot function is started; if the surrounding environment has a plurality of hot spots with the same channel, the hot spot signals sent by the terminal equipment become poor and the throughput is greatly reduced due to WIFI co-channel interference, so that the screen projection effect of the terminal equipment is influenced, and the problems of screen projection blocking, disconnection and the like occur.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides an AP hot spot channel automatic selection method, device, storage medium and terminal equipment based on an android system, so that a clean channel or a channel with relatively low interference is automatically found out according to actual conditions and is dynamically switched to an optimal channel, the co-frequency interference of AP hot spots is reduced, AP hot spot signals are stronger, the data throughput is larger, and the use experience of a user is improved.
In order to solve the above technical problem, an embodiment of the present invention provides an AP hotspot channel automatic selection method based on an android system, where the method includes:
modifying a native AOSP source code of the android system, so that a preset configuration item is contained in a dynamically generated hostap.
Calling an ACS program to start based on a preset configuration item in a hostop. conf file;
the started ACS program carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
respectively carrying out weight evaluation processing on the surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
Optionally, the hostap. conf file has a preset configuration item as an automatic channel switching.
Optionally, the ACS program is a program that is in an open state by modifying the driver and the ACS function configuration item in the android native hostapd process.
Optionally, the modifying the ACS function configuration item in the driver and the android native hostapd process to an open state includes:
adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS in Makefile in the driver; and adding CONFIG _ ACS in android system under the modified source code, and modifying the ACS function configuration item to be in an open state.
Optionally, the surveyy data includes WiFi list status, channel busy time and channel receiving times;
the measurement interface is an NL80211_ CMD _ GET _ reserve interface.
Optionally, the performing weight evaluation processing on the surfy data measured multiple times in the current environment respectively to obtain multiple weight evaluation results in the surfy data measured multiple times in the current environment includes:
calculating the proportion of busy time to total time in each surfey data in the surfey data measured for many times in the current environment according to the total time, the receiving time, the transmitting time and the busy time of the detection process of data storage returned by different WiFi drives, and obtaining the proportion of the busy time to the total time of each surfey data;
determining each weight evaluation result based on the proportion of the busy time of each survey data to the total time;
and obtaining multiple weight evaluation results in the surfey data measured multiple times in the current environment based on the each weight evaluation result.
Optionally, the ACS program selects a channel with an optimal weight to open the AP based on the multiple weight evaluation result, including:
performing arithmetic mean comprehensive calculation on the multiple times of weight evaluation results to obtain comprehensive mean weight evaluation results;
and the ACS program starts the AP by taking the channel with the optimal weight based on the comprehensive average weight evaluation result.
In addition, an embodiment of the present invention further provides an AP hotspot channel automatic selection apparatus based on an android system, where the apparatus includes:
and a modification module: the android system AP hotspot function modification method comprises the steps that a native AOSP source code of an android system is modified, so that a preset configuration item is contained in a dynamically generated hostap.
The module is started: the method comprises the steps of calling an ACS program to start based on a hostap. conf file with a preset configuration item;
a measurement module: the ACS program used for starting carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
a weight evaluation module: the system comprises a weight evaluation unit, a weight evaluation unit and a weight calculation unit, wherein the weight evaluation unit is used for respectively carrying out weight evaluation processing on surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
a selection module: and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the AP hotspot channel automatic selection method described in any one of the above.
In addition, an embodiment of the present invention further provides a terminal device, which includes:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: executing any one of the above described automatic selection methods for AP hotspot channels.
In the embodiment of the invention, the automatic finding of a clean channel or a channel with relatively low interference according to actual conditions and the dynamic switching to the optimal channel are realized, the co-frequency interference of AP hot spots is reduced, so that the AP hot spot signal is stronger, the data throughput is higher, when the terminal equipment performs screen projection, a better screen projection effect is realized, and the situations of screen projection blocking, disconnection and the like can not occur; and the scene of various data high throughput demands of the user is met, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an AP hotspot channel automatic selection method based on an android system in an embodiment of the present invention;
fig. 2 is a schematic structural composition diagram of an AP hotspot channel automatic selection device based on an android system in an embodiment of the present invention;
fig. 3 is a schematic structural component diagram of the device terminal in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and 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.
Examples
Referring to fig. 1, fig. 1 is a schematic flowchart of an AP hot spot channel automatic selection method based on an android system in an embodiment of the present invention.
As shown in fig. 1, an AP hotspot channel automatic selection method based on an android system includes:
s11: modifying a native AOSP source code of the android system, so that a preset configuration item is contained in a dynamically generated hostap.
In the specific implementation process of the invention, the hostap. conf file is provided with a preset configuration item as an automatic switching channel.
Specifically, first, a native system source code (native AOSP source code) of the android system is modified, and when a user starts an AP hotspot function in the android system running on a terminal device, a preset configuration item is included in a hostap _ conf file dynamically generated by the android system, that is, an original channel ═ x (x denotes a specific channel) of the hostap _ conf file is changed to channel ═ acs _ surfey or channel ═ 0; that is, after being turned on, the AP hotspot does not designate a specific channel within the android system, but changes to automatic channel selection.
S12: calling an ACS program to start based on a preset configuration item in a hostop. conf file;
in the specific implementation process of the invention, the ACS program is a program in an open state by modifying the ACS function configuration item in the driver and the android native hostapd process.
Further, the modifying the ACS function configuration item in the driver and the android native hostapd process to be in an on state includes: adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS in Makefile in the driver; and adding CONFIG _ ACS in android system under the modified source code, and modifying the ACS function configuration item to be in an open state.
Specifically, on the basis that the hostap. conf file is provided with the preset configuration item, the driver of the AP hot spot and the native hostapd process of the android system are modified, so that the functional configuration item of the ACS is modified to be in an open state; wherein, ACS is Auto Channel Selection, i.e. automatic Channel Selection.
The method comprises the steps of modifying a driver of an AP hot spot and a native HOSTAPD process of an android system into a Makefile in the driver of the AP hot spot, adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS, and adding CONFIG _ ACS ═ y to android in the android system under a modified source code, so that the ACS function configuration item can be modified into an open state.
S13: the started ACS program carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
in the specific implementation process of the invention, the surveyy data comprises the WiFi list state, the channel busy time and the channel receiving times; the measurement interface is an NL80211_ CMD _ GET _ reserve interface.
Specifically, after the ACS program is started, the ACS program drives a measurement interface provided by the WIFI, where the measurement interface is an NL80211_ CMD _ GET _ surfey interface; the measurement interface can be used for obtaining the surfy data such as the WIFI list state, the channel busy time, the channel receiving times and the like in the current environment.
S14: respectively carrying out weight evaluation processing on the surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
in a specific implementation process of the present invention, the performing weight evaluation processing on the surfy data measured multiple times in the current environment respectively to obtain multiple weight evaluation results in the surfy data measured multiple times in the current environment includes: calculating the proportion of busy time to total time in each surfey data in the surfey data measured for many times in the current environment according to the total time, the receiving time, the transmitting time and the busy time of the detection process of data storage returned by different WiFi drives, and obtaining the proportion of the busy time to the total time of each surfey data; determining each weight evaluation result based on the proportion of the busy time of each survey data to the total time; and obtaining multiple weight evaluation results in the surfey data measured multiple times in the current environment based on the each weight evaluation result.
Specifically, measuring the situation in the current environment for multiple times, namely obtaining surfey data of the multiple measurements in the current environment; calculating the proportion of busy time to total time of the surfey data obtained by each measurement according to the total time, the receiving time, the transmitting time and the busy time of the detection process of storing the data returned by different WiFi drives, so as to obtain the proportion of the busy time to the total time of the surfey data each time; the busy time of the surfy data measured for multiple times accounts for the total time by correspondingly calculating the surfy data measured for each time; then determining each weight evaluation result according to the proportion of the busy time of each survey data to the total time; namely, the multiple weight evaluation results in the surfy data measured multiple times in the current environment can be obtained through each weight evaluation result.
The interference degree of the channel can be obtained by calculating the proportion of the busy time to the total time; if the proportion is lower, the channel is considered to be relatively pure, and the channel weight is higher; otherwise, the higher the ratio is, the more the channel is considered to be interfered by other APs, and the lower the channel weight is.
S15: and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
In a specific implementation process of the present invention, the ACS program selects a channel with an optimal weight to open the AP based on the multiple weight evaluation result, including: performing arithmetic mean comprehensive calculation on the multiple times of weight evaluation results to obtain comprehensive mean weight evaluation results; and the ACS program starts the AP by taking the channel with the optimal weight based on the comprehensive average weight evaluation result.
Specifically, when multiple weight evaluation results are obtained, arithmetic mean comprehensive calculation needs to be performed on the multiple weight evaluation results, and a comprehensive mean weight evaluation result is obtained; then, an ACS program is changed to obtain a channel with the optimal weight to start the AP through the comprehensive average weight evaluation result; therefore, the accuracy of the data can be ensured; and the ACS program uses the channel with the optimal weight to start the AP according to the weight value of each current available channel obtained by integrating the average weight evaluation result, and at the moment, the portable hotspot started by the android system works on the channel with relatively less interference in the current environment.
In the embodiment of the invention, the automatic finding of a clean channel or a channel with relatively low interference according to actual conditions and the dynamic switching to the optimal channel are realized, the co-frequency interference of AP hot spots is reduced, so that the AP hot spot signal is stronger, the data throughput is higher, when the terminal equipment performs screen projection, a better screen projection effect is realized, and the situations of screen projection blocking, disconnection and the like can not occur; and the scene of various data high throughput demands of the user is met, and the use experience of the user is improved.
Examples
Referring to fig. 2, fig. 2 is a schematic structural composition diagram of an AP hot spot channel automatic selection apparatus based on an android system in an embodiment of the present invention.
As shown in fig. 2, an AP hotspot channel automatic selection apparatus based on the android system includes:
the modification module 21: the android system AP hotspot function modification method comprises the steps that a native AOSP source code of an android system is modified, so that a preset configuration item is contained in a dynamically generated hostap.
In the specific implementation process of the invention, the hostap. conf file is provided with a preset configuration item as an automatic switching channel.
Specifically, first, a native system source code (native AOSP source code) of the android system is modified, and when a user starts an AP hotspot function in the android system running on a terminal device, a preset configuration item is included in a hostap _ conf file dynamically generated by the android system, that is, an original channel ═ x (x denotes a specific channel) of the hostap _ conf file is changed to channel ═ acs _ surfey or channel ═ 0; that is, after being turned on, the AP hotspot does not designate a specific channel within the android system, but changes to automatic channel selection.
The opening module 22: the method comprises the steps of calling an ACS program to start based on a hostap. conf file with a preset configuration item;
in the specific implementation process of the invention, the ACS program is a program in an open state by modifying the ACS function configuration item in the driver and the android native hostapd process.
Further, the modifying the ACS function configuration item in the driver and the android native hostapd process to be in an on state includes: adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS in Makefile in the driver; and adding CONFIG _ ACS in android system under the modified source code, and modifying the ACS function configuration item to be in an open state.
Specifically, on the basis that the hostap. conf file is provided with the preset configuration item, the driver of the AP hot spot and the native hostapd process of the android system are modified, so that the functional configuration item of the ACS is modified to be in an open state; wherein, ACS is Auto Channel Selection, i.e. automatic Channel Selection.
The method comprises the steps of modifying a driver of an AP hot spot and a native HOSTAPD process of an android system into a Makefile in the driver of the AP hot spot, adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS, and adding CONFIG _ ACS ═ y to android in the android system under a modified source code, so that the ACS function configuration item can be modified into an open state.
The measurement module 23: the ACS program used for starting carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
in the specific implementation process of the invention, the surveyy data comprises the WiFi list state, the channel busy time and the channel receiving times; the measurement interface is an NL80211_ CMD _ GET _ reserve interface.
Specifically, after the ACS program is started, the ACS program drives a measurement interface provided by the WIFI, where the measurement interface is an NL80211_ CMD _ GET _ surfey interface; the measurement interface can be used for obtaining the surfy data such as the WIFI list state, the channel busy time, the channel receiving times and the like in the current environment.
The weight evaluation module 24: the system comprises a weight evaluation unit, a weight evaluation unit and a weight calculation unit, wherein the weight evaluation unit is used for respectively carrying out weight evaluation processing on surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
in a specific implementation process of the present invention, the performing weight evaluation processing on the surfy data measured multiple times in the current environment respectively to obtain multiple weight evaluation results in the surfy data measured multiple times in the current environment includes: calculating the proportion of busy time to total time in each surfey data in the surfey data measured for many times in the current environment according to the total time, the receiving time, the transmitting time and the busy time of the detection process of data storage returned by different WiFi drives, and obtaining the proportion of the busy time to the total time of each surfey data; determining each weight evaluation result based on the proportion of the busy time of each survey data to the total time; and obtaining multiple weight evaluation results in the surfey data measured multiple times in the current environment based on the each weight evaluation result.
Specifically, measuring the situation in the current environment for multiple times, namely obtaining surfey data of the multiple measurements in the current environment; calculating the proportion of busy time to total time of the surfey data obtained by each measurement according to the total time, the receiving time, the transmitting time and the busy time of the detection process of storing the data returned by different WiFi drives, so as to obtain the proportion of the busy time to the total time of the surfey data each time; the busy time of the surfy data measured for multiple times accounts for the total time by correspondingly calculating the surfy data measured for each time; then determining each weight evaluation result according to the proportion of the busy time of each survey data to the total time; namely, the multiple weight evaluation results in the surfy data measured multiple times in the current environment can be obtained through each weight evaluation result.
The interference degree of the channel can be obtained by calculating the proportion of the busy time to the total time; if the proportion is lower, the channel is considered to be relatively pure, and the channel weight is higher; otherwise, the higher the ratio is, the more the channel is considered to be interfered by other APs, and the lower the channel weight is.
The selection module 25: and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
In a specific implementation process of the present invention, the ACS program selects a channel with an optimal weight to open the AP based on the multiple weight evaluation result, including: performing arithmetic mean comprehensive calculation on the multiple times of weight evaluation results to obtain comprehensive mean weight evaluation results; and the ACS program starts the AP by taking the channel with the optimal weight based on the comprehensive average weight evaluation result.
Specifically, when multiple weight evaluation results are obtained, arithmetic mean comprehensive calculation needs to be performed on the multiple weight evaluation results, and a comprehensive mean weight evaluation result is obtained; then, an ACS program is changed to obtain a channel with the optimal weight to start the AP through the comprehensive average weight evaluation result; therefore, the accuracy of the data can be ensured; and the ACS program uses the channel with the optimal weight to start the AP according to the weight value of each current available channel obtained by integrating the average weight evaluation result, and at the moment, the portable hotspot started by the android system works on the channel with relatively less interference in the current environment.
In the embodiment of the invention, the automatic finding of a clean channel or a channel with relatively low interference according to actual conditions and the dynamic switching to the optimal channel are realized, the co-frequency interference of AP hot spots is reduced, so that the AP hot spot signal is stronger, the data throughput is higher, when the terminal equipment performs screen projection, a better screen projection effect is realized, and the situations of screen projection blocking, disconnection and the like can not occur; and the scene of various data high throughput demands of the user is met, and the use experience of the user is improved.
In an embodiment of the present invention, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the AP hotspot channel automatic selection method in any one of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the automatic AP hotspot channel selection method in any one of the embodiments.
In addition, fig. 3 is a schematic structural composition diagram of the terminal device in the embodiment of the present invention.
An embodiment of the present invention further provides a terminal device, as shown in fig. 3. The terminal device includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the device configuration means shown in fig. 3 do not constitute a limitation of all devices and may include more or less components than those shown, or some components in combination. The memory 303 may be used to store the application 301 and various functional modules, and the processor 302 executes the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal or external memory, or include both internal and external memory. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The disclosed memory is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of signals and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory.
As an embodiment, the terminal device includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and wherein the one or more applications 301 are configured to perform the AP hotspot channel automatic selection method in any of the above embodiments.
In the embodiment of the invention, the automatic finding of a clean channel or a channel with relatively low interference according to actual conditions and the dynamic switching to the optimal channel are realized, the co-frequency interference of AP hot spots is reduced, so that the AP hot spot signal is stronger, the data throughput is higher, when the terminal equipment performs screen projection, a better screen projection effect is realized, and the situations of screen projection blocking, disconnection and the like can not occur; and the scene of various data high throughput demands of the user is met, and the use experience of the user is improved.
In addition, the method, the apparatus, the storage medium, and the terminal device for automatically selecting an AP hot spot channel based on an android system provided in the embodiments of the present invention are described in detail above, a specific example should be adopted herein to explain the principle and the implementation manner of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. An AP hot spot channel automatic selection method based on an android system is characterized by comprising the following steps:
modifying a native AOSP source code of the android system, so that a preset configuration item is contained in a dynamically generated hostap.
Calling an ACS program to start based on a preset configuration item in a hostop. conf file;
the started ACS program carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
respectively carrying out weight evaluation processing on the surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
2. The AP hot spot channel automatic selection method according to claim 1, wherein the hostap. conf file with preset configuration items is an automatic switching channel.
3. The AP hot spot channel automatic selection method of claim 1, wherein the ACS program is a program configured to be in an on state by modifying a driver and an ACS function configuration item in an android native hostapd process.
4. The method of claim 3, wherein the modifying the ACS function configuration items in the driver and android native hostapd process to an on state comprises:
adding an option EXTRA _ CFLAGS + -DCONFIG _ RTW _ HOSTAPD _ ACS in Makefile in the driver; and adding CONFIG _ ACS in android system under the modified source code, and modifying the ACS function configuration item to be in an open state.
5. The AP hotspot channel automatic selection method of claim 1, wherein the survey data comprises WiFi list status, channel busy time and channel receiving times;
the measurement interface is an NL80211_ CMD _ GET _ reserve interface.
6. The method according to claim 1, wherein the performing weight evaluation processing on the surfy data measured multiple times in the current environment respectively to obtain multiple weight evaluation results in the surfy data measured multiple times in the current environment includes:
calculating the proportion of busy time to total time in each surfey data in the surfey data measured for many times in the current environment according to the total time, the receiving time, the transmitting time and the busy time of the detection process of data storage returned by different WiFi drives, and obtaining the proportion of the busy time to the total time of each surfey data;
determining each weight evaluation result based on the proportion of the busy time of each survey data to the total time;
and obtaining multiple weight evaluation results in the surfey data measured multiple times in the current environment based on the each weight evaluation result.
7. The method according to claim 1, wherein the ACS program selects a channel with an optimal weight to start the AP based on the multiple weight evaluation results, and the method comprises:
performing arithmetic mean comprehensive calculation on the multiple times of weight evaluation results to obtain comprehensive mean weight evaluation results;
and the ACS program starts the AP by taking the channel with the optimal weight based on the comprehensive average weight evaluation result.
8. An AP hotspot channel automatic selection device based on an android system, which is characterized by comprising:
and a modification module: the android system AP hotspot function modification method comprises the steps that a native AOSP source code of an android system is modified, so that a preset configuration item is contained in a dynamically generated hostap.
The module is started: the method comprises the steps of calling an ACS program to start based on a hostap. conf file with a preset configuration item;
a measurement module: the ACS program used for starting carries out multiple measurements through a measurement interface provided by WiFi drive, and surfey data of multiple measurements in the current environment are obtained;
a weight evaluation module: the system comprises a weight evaluation unit, a weight evaluation unit and a weight calculation unit, wherein the weight evaluation unit is used for respectively carrying out weight evaluation processing on surfy data measured for multiple times in the current environment to obtain multiple weight evaluation results in the surfy data measured for multiple times in the current environment;
a selection module: and the ACS program selects a channel with the optimal weight to open the AP based on the multiple weight evaluation results.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the AP hotspot channel automatic selection method according to any one of claims 1 to 7.
10. A terminal device, characterized in that it comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to: performing the AP hotspot channel automatic selection method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900611.7A CN111935754A (en) | 2020-08-31 | 2020-08-31 | AP hot spot channel automatic selection method, device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010900611.7A CN111935754A (en) | 2020-08-31 | 2020-08-31 | AP hot spot channel automatic selection method, device, storage medium and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111935754A true CN111935754A (en) | 2020-11-13 |
Family
ID=73308972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010900611.7A Pending CN111935754A (en) | 2020-08-31 | 2020-08-31 | AP hot spot channel automatic selection method, device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111935754A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117896794A (en) * | 2024-03-18 | 2024-04-16 | 上海朗力半导体有限公司 | Channel automatic selection method, device, AP equipment and storage medium |
WO2024179033A1 (en) * | 2023-02-27 | 2024-09-06 | 中兴通讯股份有限公司 | Wireless hotspot enabling method, set-top box, communication system and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050265288A1 (en) * | 2004-05-27 | 2005-12-01 | Jiewen Liu | Apparatus and method capable of automatic allocation of operating channels in a wireless network |
US20060094371A1 (en) * | 2004-10-29 | 2006-05-04 | Colubris Networks, Inc. | Wireless access point (AP) automatic channel selection |
CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
CN106604403A (en) * | 2017-01-12 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Miracast-protocol-based channel selection method and system |
CN107395297A (en) * | 2017-07-07 | 2017-11-24 | 广州视源电子科技股份有限公司 | Channel selection method, system and storage medium for WiFi hotspot |
CN108055671A (en) * | 2017-12-13 | 2018-05-18 | 深圳创维-Rgb电子有限公司 | More equipment communication means, device, equipment and storage medium |
CN108184245A (en) * | 2018-01-31 | 2018-06-19 | 广东欧珀移动通信有限公司 | Hotspot connection control method, device, storage medium and terminal device |
CN110401954A (en) * | 2019-08-06 | 2019-11-01 | 北京百佑科技有限公司 | Realize the method and Android terminal of double wifi |
-
2020
- 2020-08-31 CN CN202010900611.7A patent/CN111935754A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050265288A1 (en) * | 2004-05-27 | 2005-12-01 | Jiewen Liu | Apparatus and method capable of automatic allocation of operating channels in a wireless network |
US20060094371A1 (en) * | 2004-10-29 | 2006-05-04 | Colubris Networks, Inc. | Wireless access point (AP) automatic channel selection |
CN102781115A (en) * | 2012-08-03 | 2012-11-14 | 西安电子科技大学 | Automatic channel selection method based on channel order in dense wireless fidelity (WiFi) |
CN106604403A (en) * | 2017-01-12 | 2017-04-26 | 惠州Tcl移动通信有限公司 | Miracast-protocol-based channel selection method and system |
CN107395297A (en) * | 2017-07-07 | 2017-11-24 | 广州视源电子科技股份有限公司 | Channel selection method, system and storage medium for WiFi hotspot |
CN108055671A (en) * | 2017-12-13 | 2018-05-18 | 深圳创维-Rgb电子有限公司 | More equipment communication means, device, equipment and storage medium |
CN108184245A (en) * | 2018-01-31 | 2018-06-19 | 广东欧珀移动通信有限公司 | Hotspot connection control method, device, storage medium and terminal device |
CN110401954A (en) * | 2019-08-06 | 2019-11-01 | 北京百佑科技有限公司 | Realize the method and Android terminal of double wifi |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024179033A1 (en) * | 2023-02-27 | 2024-09-06 | 中兴通讯股份有限公司 | Wireless hotspot enabling method, set-top box, communication system and storage medium |
CN117896794A (en) * | 2024-03-18 | 2024-04-16 | 上海朗力半导体有限公司 | Channel automatic selection method, device, AP equipment and storage medium |
CN117896794B (en) * | 2024-03-18 | 2024-05-28 | 上海朗力半导体有限公司 | Channel automatic selection method, device, AP equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11397590B2 (en) | Method for preloading application, storage medium, and terminal | |
CN107466077B (en) | Network switching method and mobile terminal | |
CN108415739B (en) | Hook method and device for dynamic link library function and storage medium | |
US20220244814A1 (en) | Method for displaying multiple application windows by mobile terminal, and mobile terminal | |
CN108430101B (en) | Antenna closing method and device, storage medium and electronic equipment | |
CN109062467B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
US11237703B2 (en) | Method for user-operation mode selection and terminals | |
EP4016273A1 (en) | Side toolbar display method and device, terminal, and storage medium | |
CN106658652B (en) | Method and device for connecting WiFi hotspot | |
CN105580392B (en) | Seamless call handover | |
WO2022001341A1 (en) | Application program tag generation method, application interface display method and device | |
CN107483092B (en) | Antenna switching method, device and terminal | |
CN108958627B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN108388671B (en) | Information sharing method and device, mobile terminal and computer readable medium | |
CN108700985A (en) | A kind of icon display method and device | |
EP3196751A1 (en) | Gesture identification method and device | |
CN109857477A (en) | Transition optimization method, device and equipment are applied in mixing | |
CN111935754A (en) | AP hot spot channel automatic selection method, device, storage medium and terminal equipment | |
CN112749074B (en) | Test case recommending method and device | |
CN110955614B (en) | Method and device for recovering file cache, storage medium and terminal | |
CN105630376A (en) | Terminal control method and device | |
CN105357378A (en) | Method and mobile terminal for automatically opening WIFI (Wireless Fidelity) list and connecting WIFI | |
US20140155099A1 (en) | Method and apparatus for displaying location information of call service area in mobile terminal | |
CN108984097B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN107040892B (en) | Location information acquisition method, device and the mobile terminal of mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201113 |