CN107087283B - Method and terminal for monitoring beacon frame - Google Patents

Method and terminal for monitoring beacon frame Download PDF

Info

Publication number
CN107087283B
CN107087283B CN201710433111.5A CN201710433111A CN107087283B CN 107087283 B CN107087283 B CN 107087283B CN 201710433111 A CN201710433111 A CN 201710433111A CN 107087283 B CN107087283 B CN 107087283B
Authority
CN
China
Prior art keywords
interval
network environment
beacon
product
terminal
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.)
Active
Application number
CN201710433111.5A
Other languages
Chinese (zh)
Other versions
CN107087283A (en
Inventor
阳林军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710433111.5A priority Critical patent/CN107087283B/en
Publication of CN107087283A publication Critical patent/CN107087283A/en
Application granted granted Critical
Publication of CN107087283B publication Critical patent/CN107087283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Abstract

The invention relates to the technical field of communication, and provides a method and a terminal for monitoring a beacon frame, which aim to solve the problem of poor stability of data connection. The method comprises the following steps: acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved.

Description

Method and terminal for monitoring beacon frame
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal for monitoring a beacon frame.
Background
WIFI (Wireless Fidelity) is a technology that can wirelessly access a terminal device to a Wireless local area network. With the development of the WIFI technology, the WIFI hotspots are visible everywhere, for example, in shopping malls, homes, office buildings and the like, which brings great convenience to the work and life of people. Meanwhile, people put forward higher requirements on the connection stability of WIFI, the data transmission efficiency and the like.
At present, the WIFI technology mainly transmits Beacon (Beacon) frames through an access point for data transmission. When the terminal device is in a standby state, the access point transmits a Beacon frame every Beacon-Interval. Each beacon frame includes transmission Indication information (TIM) for notifying the associated terminal device of the presence of a cache information bit, and every other beacon frame includes Delivery Traffic Indication information (DTIM) for notifying the presence of multicast data cache information. The terminal equipment receives the Beacon frame by taking the integral multiple of Beacon-Interval as a monitoring Interval, and decodes the cache information bit in the Beacon frame to determine whether data is cached or not. However, when the signal is weak or the channel quality is poor, the long listening interval may cause the terminal connection to be disconnected, so that data cannot be received in time.
It can be seen that receiving the beacon frame according to the existing listening interval results in poor stability of the data connection.
Disclosure of Invention
The embodiment of the invention provides a method and a terminal for monitoring a beacon frame, which aim to solve the problem of poor stability during data connection.
In a first aspect, an embodiment of the present invention provides a method for listening to a beacon frame, including:
acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point;
determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period;
and monitoring the beacon frame according to the monitoring interval.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the first acquisition module is used for acquiring a beacon interval of an access point, a transmission service indication information period and network environment parameters;
a determining module, configured to determine a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval, and the period of the indication information of the service delivery, which are acquired by the first acquiring module;
and the monitoring module is used for monitoring the beacon frame according to the monitoring interval determined by the determining module.
In a third aspect, an embodiment of the present invention further provides a terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method of listening for beacon frames as described above when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps in the method for listening for beacon frames as described above.
Thus, in the embodiment of the invention, the beacon interval of the access point, the period of transmitting the service indication information and the network environment parameters are obtained; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for listening to a beacon frame according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a listening beacon frame according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for listening for beacon frames according to an embodiment of the present invention;
fig. 4 is a first schematic diagram of a structure of a terminal according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of a structure of a terminal according to an embodiment of the present invention;
fig. 6 is a third schematic diagram of a structure of a terminal according to an embodiment of the present invention;
fig. 7 is a fourth schematic diagram of a structure of a terminal according to an embodiment of the present invention;
fig. 8 is a fifth schematic diagram of a structure of a terminal according to an embodiment of the present invention;
fig. 9 is a sixth schematic diagram of a structure of a terminal according to an 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 some, not all, embodiments of the present invention. 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.
Referring to fig. 1, fig. 1 is a flowchart of a method for listening for a beacon frame according to an embodiment of the present invention, where the method is applied to a terminal, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a beacon interval of an access point, a period of transmitting service indication information, and a network environment parameter.
Optionally, in this step, the network environment parameter includes at least one of data traffic, signal strength, and channel quality.
This step may be performed while the terminal is in a sleep state. In this state, the terminal can store all running real-time data onto the hard disk and turn off all unnecessary hardware to save power. The access point may be an access point associated with the terminal, and when the association between the terminal and the access point is successful, data transmission may be performed between the terminal and the access point, so that a beacon interval of the access point and a period of transmitting the service indication information may be obtained through a beacon frame.
As shown in fig. 2, the access point a transmits a beacon frame 1 every beacon interval T1, and the terminal B receives the beacon frame 1 every listening interval. The beacon frame 1 at every fixed period includes the delivery service indication information 2 for notifying the existence of the multicast data cache information, and the fixed period may be referred to as a delivery service indication information period T2. For example, as shown in fig. 2, T2 is 3, and three pieces of beacon frame information include once-delivered traffic indication information.
The above-mentioned network environment parameter may be understood as a parameter that affects network connection stability or data reception efficiency, etc. Specifically, the network environment parameter may be any one of or any combination of data traffic, signal strength, and channel quality. For example, network environment parameters include signal strength and channel quality; as another example, network environment parameters include data traffic, signal strength, and channel quality.
The terminal may acquire a value or an average value of the network environment parameter within a preset time. For example, data traffic within 1 second is acquired, and the traffic is taken as data traffic of the network; for another example, a plurality of values of the signal strength of the network within 5 seconds are obtained, and an average value of the plurality of values is obtained as the signal strength value of the network.
And step 102, determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period.
In this step, the terminal may calculate the obtained values of the network environment parameters, the beacon interval, and the period of the transmission service indication information according to a preset manner, and then use the calculation result as the monitoring interval of the beacon frame. Therefore, when the network environment changes, the monitoring interval can correspondingly change, so that the monitoring interval is adaptive to the network environment, and the stability of network connection and the efficiency of data receiving are improved.
And 103, monitoring the beacon frame according to the monitoring interval.
In this step, the terminal listens for beacon frames at every listening interval. Thus, when the network environment changes, the calculated listening interval also changes until the terminal disconnects from the access point.
In this embodiment of the present invention, the method for monitoring a beacon frame may be applied to a terminal, for example: a Computer, a server, a Mobile phone, a Tablet Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
The method for monitoring the beacon frame of the embodiment of the invention obtains the beacon interval of the access point, the period of transmitting the service indication information and the network environment parameters; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved, and the power consumption of the terminal can be reduced.
Referring to fig. 3, the present embodiment is mainly different from the above-described embodiments in that the listening interval of the beacon frame is determined according to the level of the network environment parameter. Fig. 3 is a flowchart of a method for listening for a beacon frame according to an embodiment of the present invention, as shown in fig. 3, including the following steps:
step 301, obtaining a beacon interval of the access point, a period of transmitting service indication information, and a network environment parameter.
This step may be performed while the terminal is in a sleep state, in which the terminal may store all running real-time data onto the hard disk and turn off all unnecessary hardware to save power. The access point may be an access point associated with the terminal, and when the association between the terminal and the access point is successful, data transmission may be performed between the terminal and the access point, so that a beacon interval of the access point and a period of transmitting the service indication information may be obtained through a beacon frame.
As shown in fig. 2, the access point a transmits a beacon frame 1 every beacon interval T1, and the terminal B receives the beacon frame 1 every listening interval. The beacon frame 1 at every fixed period includes the delivery service indication information 2 for notifying the existence of the multicast data cache information, and the fixed period may be referred to as a delivery service indication information period T2. For example, as shown in fig. 2, T2 is 3, and three pieces of beacon frame information include once-delivered traffic indication information.
The above-mentioned network environment parameter may be understood as a parameter that affects network connection stability or data reception efficiency, etc. Such as signal strength, channel quality, data traffic size, etc.
The terminal may acquire a value or an average value of the network environment parameter within a preset time. For example, data traffic within 2 seconds is acquired, and the traffic is taken as data traffic of the network; for another example, a plurality of values of the signal strength of the network within 5 seconds are obtained, and an average value of the plurality of values is obtained as the signal strength value of the network. This is by way of example only.
Step 302, obtaining a target parameter level of the network environment parameter in preset network environment parameter levels.
Optionally, in this step, the network environment parameters include data traffic, signal strength, and channel quality, a first target level of the data traffic of the network where the terminal is located in a preset traffic level is obtained, a second target level of the signal strength of the network where the terminal is located in a preset signal level is obtained, and a third target level of the channel quality of the network where the terminal is located in a preset channel level is obtained.
Before this step, the network environment parameters may be divided into a plurality of levels in advance, and parameter ranges corresponding to the plurality of levels and the plurality of levels respectively may be stored in the terminal. When the network environment parameter is obtained, the target level of the network environment parameter in the preset network environment parameter level can be determined according to the pre-divided network environment parameter level. When the network environment is better, the level of the network environment parameter can be set to be higher; when the network environment is poor, the level at which the network environment parameter is located may be set to be low.
Specifically, multiple levels of data traffic, signal strength, and channel quality and parameter ranges corresponding to the multiple levels may be set, respectively, and the terminal may set the level according to the influence of the network environment parameters on the network environment. For example, when the signal strength of the network is stronger, which indicates that the network environment is better, the level of the signal strength may be set to be higher; when the signal strength is weaker, indicating that the network environment is poor, the level of the signal strength may be set lower. For another example, when the data traffic is less, it indicates that the network environment is better, and the level of the data traffic can be set to be higher; when the data traffic is larger, the network environment is poor, and the level of the data traffic can be set to be lower.
When the data traffic value, the signal strength value and the channel quality value which can represent that the channel quality is good or bad of the network are obtained, a first target grade where the data traffic value is located, a second target grade where the signal strength value is located and a third target grade where the channel quality value is located can be determined according to preset grades and parameter ranges.
For example, a data traffic range of 0k to 100k is set as the third level; setting the data flow range of 100k to 200k as a second level; the data traffic range of 200k to 300k is set as the first level. When the acquired data traffic is 50k, the rank of the data traffic is determined to be 3.
The data traffic value, the signal strength value, and the channel quality value may be obtained values within a preset time, or may be an average value of a plurality of values obtained within the preset time.
In this embodiment, target levels of data traffic, signal strength, and channel quality of the network among the preset levels are obtained. Therefore, when the network environment is better, the obtained target level is higher, so that the monitoring interval can be prolonged, and the beneficial effect of reducing the power consumption of the terminal is achieved; when the network environment is poor, the obtained target level is lower, so that the monitoring interval can be shortened, and the beneficial effect of improving the stability of network connection is achieved.
Step 303, determining a monitoring interval of a beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period.
Optionally, in this step, a first product of the first target level, the second target level, the third target level, the beacon interval, and the period of transmitting the service indication information is obtained;
judging whether the first product is larger than a preset value or not;
and if the first product is smaller than or equal to the preset value, taking the first product as the monitoring interval of the beacon frame.
The terminal may use a calculation result obtained after the target parameter level where the network environment is located, the beacon interval, and the period of the transmission service indication information are calculated according to a preset manner as the monitoring interval of the beacon frame.
Specifically, the terminal may calculate a product of the first target level, the second target level, the third target level, the beacon interval, and the period of transmitting the traffic indication information, and determine whether the product is greater than an upper limit value, i.e., a preset value, of a preset listening interval. Specifically, the calculation can be performed as follows:
L1=BI1×DTIM1×Fn×Rn×Qn
wherein, L1 is a calculated value of the first product, BI1 is a beacon interval, DTIM1 is a period for transferring traffic indication information, Fn is a first target level, Rn is a second target level, and Qn is a third target level.
Assuming that the beacon interval is k and the period for transferring the traffic indication information is 3, when the first target level is 2, the second target level is 1, and the third target level is 1, the first product calculated is k × 3 × 2 × 1 × 1 — 6 k.
And when the calculated value of the first product is smaller than or equal to the preset value, taking the calculated value of the first product as the monitoring interval.
In this embodiment, the listening interval is calculated according to the network environment parameters, so that when the network environment changes, the listening interval may change accordingly, so that the listening interval is adapted to the network environment. When the network environment is better, the higher the grade of the obtained target parameter is, the monitoring interval can be prolonged, so that the power consumption of the terminal can be reduced; when the network environment is poor, the lower the level of the acquired target parameter is, the shorter the monitoring interval can be, so that the stability of network connection can be improved.
Optionally, after the step of determining whether the first product is greater than a preset value, the method further includes:
if the first product is larger than the preset value, acquiring a second product of the beacon interval and the period of the service transmission indication information, calculating a ratio of the preset value to the second product, and rounding the ratio in a downward rounding mode to obtain a rounded value;
and taking a third product of the second product and the rounded value as a monitoring interval of the beacon frame.
In this embodiment, the listening interval may be recalculated when the calculated first product is greater than a preset value. Specifically, the following calculation formula can be adopted for calculation:
l2 ═ LI1 × [ L3/LI1], LI1 ═ BI1 × DTIM1, where L2 is the listening interval, LI1 is the second product, L3 is the preset value, BI1 is the beacon interval, and DTIM1 is the delivery traffic indication information period.
It should be noted that after calculating the ratio of L3 to LI1, the ratio is rounded down to obtain a rounded value, and the rounded value is multiplied by LI1 to obtain a third product. For example, if L3 is 8 and LI1 is 3, then L2 is 3 × (8/3) is 3 × 2 is 6.
Thus, when the calculated first product exceeds a preset value, a second product of the beacon interval and the period of transmitting the service indication information is obtained, the ratio of the preset value to the second product is calculated, and the ratio is rounded in a downward rounding mode to obtain a rounded value; and taking the third product of the second product and the rounded value as the monitoring interval of the beacon frame, so that the monitoring interval of the beacon frame is in a certain range, and the stability of data connection is ensured.
And step 304, monitoring the beacon frame according to the monitoring interval.
In this step, the terminal listens for beacon frames at every listening interval. When the network environment changes, the calculated listening interval also changes until the terminal is disconnected from the access point.
The method for monitoring the beacon frame of the embodiment of the invention determines the monitoring interval of the beacon frame according to the target parameter level of the network environment parameter, the beacon interval and the period of the transmission service indication information. Thus, when the network environment changes, the listening interval can change correspondingly, so that the listening interval is adapted to the network environment. When the network environment is good, the monitoring interval can be prolonged, so that the power consumption of the terminal can be reduced; when the network environment is poor, the listening interval can be shortened, so that the stability of network connection can be improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 4, the terminal 400 includes: a first acquisition module 401, a determination module 402 and a listening module 403. The first obtaining module 401 is connected to the determining module 402, and the determining module 402 is connected to the monitoring module 403.
A first obtaining module 401, configured to obtain a beacon interval of an access point, a period of transmitting service indication information, and a network environment parameter;
a determining module 402, configured to determine a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval, and the period of the transmission service indication information acquired by the first acquiring module 401;
a monitoring module 403, configured to monitor a beacon frame according to the monitoring interval determined by the determining module 402.
Optionally, as shown in fig. 5, the terminal 400 further includes:
a second obtaining module 404, configured to obtain a target parameter level of the network environment parameter obtained by the first obtaining module 401 in a preset network environment parameter level;
the determining module 402 is specifically configured to determine a monitoring interval of a beacon frame according to the target parameter level acquired by the second acquiring module 404, the beacon interval acquired by the first acquiring module 401, and the transmission service indication information period.
Optionally, as shown in fig. 6, the network environment parameters include data traffic, signal strength, and channel quality, and the second obtaining module 404 is specifically configured to obtain a first target level of the data traffic of the network where the terminal is located in a preset traffic level, obtain a second target level of the signal strength of the network where the terminal is located in a preset signal level, and obtain a third target level of the channel quality of the network where the terminal is located in a preset channel level;
the determining module 402 comprises:
a first obtaining sub-module 4021, configured to obtain a first product of the first target level, the second target level, the third target level, the beacon interval, and the period of transmitting the service indication information;
the determining sub-module 4022 is configured to determine whether the first product obtained by the first obtaining sub-module is greater than a preset value;
the first determining sub-module 4023 is configured to determine, if the determining sub-module determines that the first product is smaller than or equal to the preset value, that the first product is used as a monitoring interval of a beacon frame.
Optionally, as shown in fig. 7, the determining module 402 further includes:
a second obtaining sub-module 4024, configured to, if the determining sub-module determines that the first product is greater than the preset value, obtain a second product of the beacon interval and the period of transmitting the service indication information, calculate a ratio of the preset value to the second product, and round the ratio in a downward rounding manner to obtain a rounded value;
the second determining submodule 4025 is configured to use a third product of the second product and the rounded value obtained by the second obtaining submodule as a listening interval of a beacon frame.
Optionally, the network environment parameter includes at least one of data traffic, signal strength, and channel quality.
The terminal 400 can implement each process implemented by the terminal in the method embodiments corresponding to fig. 1 and fig. 3, and is not described herein again to avoid repetition.
The terminal 400 of the embodiment of the present invention obtains the beacon interval of the access point, the period of transmitting the service indication information, and the network environment parameters; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 8, the terminal 800 includes: at least one processor 801, memory 802, at least one network interface 804, and a user interface 803. The various components in terminal 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8.
The user interface 803 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, track ball, touch pad, or touch screen, etc.).
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically Erasable Programmable ROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous D RAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr Data RateSD RAM, ddr SDRAM), Enhanced Synchronous SD RAM (ESDRAM), Synchronous link Dynamic random access memory (Synch link D RAM, SLDRAM), and Direct memory bus random access memory (DRRAM). The memory 802 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 8021 and application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, the processor 801 is configured to:
acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 801 is further configured to: acquiring a target parameter grade of the network environment parameter in preset network environment parameter grades; and determining the monitoring interval of the beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period.
Optionally, the processor 801 is further configured to: acquiring a first target level of data traffic of a network where the terminal is located in a preset traffic level, acquiring a second target level of signal strength of the network where the terminal is located in a preset signal level, and acquiring a third target level of channel quality of the network where the terminal is located in a preset channel level; obtaining a first product of the first target level, the second target level, the third target level, the beacon interval and the period of the transmission service indication information; judging whether the first product is larger than a preset value or not; and if the first product is smaller than or equal to the preset value, taking the first product as the monitoring interval of the beacon frame.
Optionally, the processor 801 is further configured to: if the first product is larger than the preset value, acquiring a second product of the beacon interval and the period of the service transmission indication information, calculating a ratio of the preset value to the second product, and rounding the ratio in a downward rounding mode to obtain a rounded value; and taking a third product of the second product and the rounded value as a monitoring interval of the beacon frame.
Optionally, the network environment parameter includes at least one of data traffic, signal strength, and channel quality.
The terminal 800 can implement each process implemented by the terminal in the foregoing embodiments, and details are not described here to avoid repetition.
The terminal 800 of the embodiment of the present invention obtains the beacon interval of the access point, the period of transmitting the service indication information, and the network environment parameters; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention. Specifically, the terminal 900 in fig. 9 may be a computer, a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
As shown in fig. 9, the terminal 900 includes a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a processor 950, an audio circuit 960, a communication module 970, and a power supply 980.
The input unit 930 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the terminal 900. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (for example, a user may operate the touch panel 931 by using a finger, a stylus pen, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, 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 950, and can receive and execute commands sent from the processor 950. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, and the other input devices 932 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.
Among other things, the display unit 940 may be used to display information input by the user or information provided to the user and various menu interfaces of the terminal 900. The display unit 940 may include a display panel 941, and the display panel 941 may be optionally configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 931 may cover the display panel 941 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen is transmitted to the processor 950 to determine the type of the touch event, and then the processor 950 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like. The touch screen is a flexible screen, and the two surfaces of the flexible screen are both pasted with the organic transparent conductive films of the carbon nanotubes.
Wherein the processor 950 is a control center of the terminal 900, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal 900 and processes data by operating or executing software programs and/or modules stored in the first memory 921 and calling data stored in the second memory 922, thereby integrally monitoring the terminal 900. Optionally, processor 950 may include one or more processing units.
In an embodiment of the present invention, the processor 950 is configured to, by invoking software programs and/or modules stored in the first memory 921 and/or data stored in the second memory 922:
acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval.
Optionally, the processor 950 is further configured to: acquiring a target parameter grade of the network environment parameter in preset network environment parameter grades; and determining the monitoring interval of the beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period.
Optionally, the processor 950 is further configured to: acquiring a first target level of data traffic of a network where the terminal is located in a preset traffic level, acquiring a second target level of signal strength of the network where the terminal is located in a preset signal level, and acquiring a third target level of channel quality of the network where the terminal is located in a preset channel level; obtaining a first product of the first target level, the second target level, the third target level, the beacon interval and the period of the transmission service indication information; judging whether the first product is larger than a preset value or not; and if the first product is smaller than or equal to the preset value, taking the first product as the monitoring interval of the beacon frame.
Optionally, the processor 950 is further configured to: if the first product is larger than the preset value, acquiring a second product of the beacon interval and the period of the service transmission indication information, calculating a ratio of the preset value to the second product, and rounding the ratio in a downward rounding mode to obtain a rounded value; and taking a third product of the second product and the rounded value as a monitoring interval of the beacon frame.
Optionally, the network environment parameter includes at least one of data traffic, signal strength, and channel quality.
The terminal 900 can implement the processes implemented by the terminal in the foregoing embodiments, and in order to avoid repetition, the descriptions are omitted here.
The terminal 900 of the embodiment of the present invention obtains the beacon interval of the access point, the period of transmitting the service indication information, and the network environment parameters; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval. Therefore, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, so that the stability of data connection can be improved.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program (instructions), which when executed by a processor, implement the steps of:
acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point; determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period; and monitoring the beacon frame according to the monitoring interval.
Optionally, the program (instructions) when executed by the processor implement the steps of:
acquiring a target parameter grade of the network environment parameter in preset network environment parameter grades; and determining the monitoring interval of the beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period.
Optionally, the program (instructions) when executed by the processor implement the steps of:
acquiring a first target level of data traffic of a network where the terminal is located in a preset traffic level, acquiring a second target level of signal strength of the network where the terminal is located in a preset signal level, and acquiring a third target level of channel quality of the network where the terminal is located in a preset channel level; obtaining a first product of the first target level, the second target level, the third target level, the beacon interval and the period of the transmission service indication information; judging whether the first product is larger than a preset value or not; and if the first product is smaller than or equal to the preset value, taking the first product as the monitoring interval of the beacon frame.
Optionally, the program (instructions) when executed by the processor implement the steps of:
if the first product is larger than the preset value, acquiring a second product of the beacon interval and the period of the service transmission indication information, calculating a ratio of the preset value to the second product, and rounding the ratio in a downward rounding mode to obtain a rounded value; and taking a third product of the second product and the rounded value as a monitoring interval of the beacon frame.
Optionally, the network environment parameter includes at least one of data traffic, signal strength, and channel quality.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for monitoring beacon frames, applied to a terminal, includes:
acquiring a beacon interval, a transmission service indication information period and network environment parameters of an access point;
determining a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period;
monitoring beacon frames according to the monitoring intervals;
wherein the network environment parameter comprises at least one of data traffic, signal strength, and channel quality;
after the step of obtaining the beacon interval of the access point, the period of transmitting the service indication information, and the network environment parameter, and before the step of determining the listening interval of the beacon frame according to the network environment parameter, the beacon interval, and the period of transmitting the service indication information, the method further includes:
acquiring a target parameter grade of the network environment parameter in preset network environment parameter grades;
the step of determining the monitoring interval of the beacon frame according to the network environment parameter, the beacon interval and the transmission service indication information period includes:
determining a monitoring interval of a beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period;
the network environment parameters comprise data flow, signal strength and channel quality, and the step of acquiring the target parameter level of the network environment parameters in the preset network environment parameter levels comprises the following steps:
acquiring a first target level of data traffic of a network where the terminal is located in a preset traffic level, acquiring a second target level of signal strength of the network where the terminal is located in a preset signal level, and acquiring a third target level of channel quality of the network where the terminal is located in a preset channel level;
the step of determining the monitoring interval of the beacon frame according to the target parameter level, the beacon interval and the transmission service indication information period includes:
obtaining a first product of the first target level, the second target level, the third target level, the beacon interval and the period of the transmission service indication information;
judging whether the first product is larger than a preset value or not;
and if the first product is smaller than or equal to the preset value, taking the first product as the monitoring interval of the beacon frame.
2. The method of claim 1, wherein after the step of determining whether the first product is greater than a predetermined value, the method further comprises:
if the first product is larger than the preset value, acquiring a second product of the beacon interval and the period of the service transmission indication information, calculating a ratio of the preset value to the second product, and rounding the ratio in a downward rounding mode to obtain a rounded value;
and taking a third product of the second product and the rounded value as a monitoring interval of the beacon frame.
3. A terminal, comprising:
the first acquisition module is used for acquiring a beacon interval of an access point, a transmission service indication information period and network environment parameters;
a determining module, configured to determine a monitoring interval of a beacon frame according to the network environment parameter, the beacon interval, and the period of the indication information of the service delivery, which are acquired by the first acquiring module;
a monitoring module, configured to monitor a beacon frame according to the monitoring interval determined by the determining module;
wherein the network environment parameter comprises at least one of data traffic, signal strength, and channel quality;
the terminal further comprises:
the second acquisition module is used for acquiring a target parameter grade of the network environment parameter acquired by the first acquisition module in preset network environment parameter grades;
the determining module is specifically configured to determine a monitoring interval of a beacon frame according to the target parameter level obtained by the second obtaining module, the beacon interval obtained by the first obtaining module, and the transmission service indication information period;
the second obtaining module is specifically configured to obtain a first target level of data traffic of a network where the terminal is located in a preset traffic level, obtain a second target level of signal strength of the network where the terminal is located in a preset signal level, and obtain a third target level of channel quality of the network where the terminal is located in a preset channel level;
the determining module comprises:
a first obtaining sub-module, configured to obtain a first product of the first target level, the second target level, the third target level, the beacon interval, and the period of the transmission service indication information;
the judgment submodule is used for judging whether the first product acquired by the first acquisition submodule is larger than a preset value or not;
and the first determining submodule is used for taking the first product as the monitoring interval of the beacon frame if the judging submodule judges that the first product is smaller than or equal to the preset value.
4. The terminal of claim 3, wherein the determining module further comprises:
a second obtaining sub-module, configured to, if the determining sub-module determines that the first product is greater than the preset value, obtain a second product of the beacon interval and the period of transmitting the service indication information, calculate a ratio between the preset value and the second product, and round the ratio in a downward rounding manner to obtain a rounded value;
and the second determining submodule is used for taking the second product acquired by the second acquiring submodule and the third product of the rounding value as the monitoring interval of the beacon frame.
5. A terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps in the method of listening for beacon frames as claimed in claim 1 or 2.
6. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of listening for beacon frames as claimed in claim 1 or 2.
CN201710433111.5A 2017-06-09 2017-06-09 Method and terminal for monitoring beacon frame Active CN107087283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710433111.5A CN107087283B (en) 2017-06-09 2017-06-09 Method and terminal for monitoring beacon frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710433111.5A CN107087283B (en) 2017-06-09 2017-06-09 Method and terminal for monitoring beacon frame

Publications (2)

Publication Number Publication Date
CN107087283A CN107087283A (en) 2017-08-22
CN107087283B true CN107087283B (en) 2020-02-14

Family

ID=59605774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710433111.5A Active CN107087283B (en) 2017-06-09 2017-06-09 Method and terminal for monitoring beacon frame

Country Status (1)

Country Link
CN (1) CN107087283B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490261A (en) 2017-09-19 2021-10-08 联发科技(新加坡)私人有限公司 Wireless communication method, communication device and device with storage function
CN108924902B (en) * 2018-06-12 2021-09-14 Oppo广东移动通信有限公司 Wireless network disconnection method and device and electronic device
CN110461031B (en) * 2019-08-26 2021-04-13 维沃移动通信有限公司 Terminal device control method and terminal device
CN114650587B (en) * 2020-12-21 2023-09-08 Oppo广东移动通信有限公司 Method and device for monitoring wireless link, wireless terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809008A (en) * 2005-01-21 2006-07-26 捷讯研究有限公司 Handling broadcast and multicast traffic as unicast traffic in a wireless network
CN101969605A (en) * 2010-10-11 2011-02-09 杭州华三通信技术有限公司 Method and equipment for determining DTIM interval by AP
TWI410086B (en) * 2009-04-06 2013-09-21 Univ Nat Sun Yat Sen Fully adaptive power management methods and systems for wireless ad hoc network, and related computer program products
CN103460767A (en) * 2011-03-31 2013-12-18 摩托罗拉解决方案公司 Adaptive power saving for mobile subscriber unit in wireless communication network
CN103916890A (en) * 2013-01-09 2014-07-09 宏碁股份有限公司 Method for calibrating monitoring period and monitoring interval and control module thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1809008A (en) * 2005-01-21 2006-07-26 捷讯研究有限公司 Handling broadcast and multicast traffic as unicast traffic in a wireless network
CN101399676A (en) * 2005-01-21 2009-04-01 捷讯研究有限公司 Power saving and handling broadcast as unicast traffic in a wlan
TWI410086B (en) * 2009-04-06 2013-09-21 Univ Nat Sun Yat Sen Fully adaptive power management methods and systems for wireless ad hoc network, and related computer program products
CN101969605A (en) * 2010-10-11 2011-02-09 杭州华三通信技术有限公司 Method and equipment for determining DTIM interval by AP
CN103460767A (en) * 2011-03-31 2013-12-18 摩托罗拉解决方案公司 Adaptive power saving for mobile subscriber unit in wireless communication network
CN103916890A (en) * 2013-01-09 2014-07-09 宏碁股份有限公司 Method for calibrating monitoring period and monitoring interval and control module thereof

Also Published As

Publication number Publication date
CN107087283A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
US10754520B2 (en) Method and apparatus for managing an application being executed in a portable terminal
US9658757B2 (en) Method and device for managing progress indicator display
CN107087283B (en) Method and terminal for monitoring beacon frame
US10725646B2 (en) Method and apparatus for switching screen interface and terminal
US20160110005A1 (en) Tapping Control Method and Terminal
CN109271014B (en) Method and equipment for adjusting screen brightness
CN107241784B (en) Internet of things access method and device
CN104778055B (en) Method and device for displaying progress bar
CN107277213B (en) Contact person classification processing method, cloud device and mobile terminal
WO2014086218A1 (en) Interface adjustment method, device and terminal
KR20130007737A (en) Method and apparatus for resource allocation
CN106445340B (en) Method and device for displaying stereoscopic image by double-screen terminal
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN107132941B (en) Pressure touch method and electronic equipment
WO2014000632A1 (en) Method, device and apparatus for acquiring security state of mobile terminal
WO2015032245A1 (en) Method and device for managing progress indicator display
CN109189260B (en) Touch detection method and device
CN109151843B (en) Data transmission method, mobile terminal, base station, and computer-readable storage medium
CN105245432B (en) Unread message counting method and device and terminal
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN108564539B (en) Method and device for displaying image
CN106302101B (en) Message reminding method, terminal and server
CN109660445B (en) Message processing method, device and storage medium
CN107622234B (en) Method and device for displaying budding face gift
CN107728898B (en) Information processing method and 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
GR01 Patent grant
GR01 Patent grant