[go: up one dir, main page]

CN107087283A - A method and terminal for monitoring beacon frames - Google Patents

A method and terminal for monitoring beacon frames Download PDF

Info

Publication number
CN107087283A
CN107087283A CN201710433111.5A CN201710433111A CN107087283A CN 107087283 A CN107087283 A CN 107087283A CN 201710433111 A CN201710433111 A CN 201710433111A CN 107087283 A CN107087283 A CN 107087283A
Authority
CN
China
Prior art keywords
interval
beacon
network environment
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.)
Granted
Application number
CN201710433111.5A
Other languages
Chinese (zh)
Other versions
CN107087283B (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

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to communication technical field there is provided a kind of method and terminal for monitoring beacon frame, to solve the problem of data cube computation stability is poor.This method includes:Obtain beacon interval, the business transferring configured information cycle of access point, and network environment parameters;According to the network environment parameters, the beacon interval and the business transferring configured information cycle, the listening intervals of beacon frame are determined;According to the listening intervals, beacon frame is monitored.So, when network environment changes, terminal can be adjusted according to network environment parameters to the listening intervals of beacon frame, so as to improve the stability of data cube computation.

Description

一种监听信标帧的方法及终端A method and terminal for monitoring beacon frames

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种监听信标帧的方法及终端。The invention relates to the field of communication technology, in particular to a method and terminal for monitoring beacon frames.

背景技术Background technique

WIFI(Wireless Fidelity,无线保真)是一种可以将终端设备以无线方式接入无线局域网络的技术。随着WIFI技术的发展,WIFI的热点随处可见,例如,商场、家里和办公楼等等,给人们的工作和生活带来了极大的便利。同时,人们对WIFI的连接稳定性以及数据传输效率等方面提出了更高的要求。WIFI (Wireless Fidelity, wireless fidelity) is a technology that can connect a terminal device to a wireless local area network in a wireless manner. With the development of WIFI technology, WIFI hotspots can be seen everywhere, such as shopping malls, homes and office buildings, etc., bringing great convenience to people's work and life. At the same time, people put forward higher requirements on the connection stability and data transmission efficiency of WIFI.

目前,WIFI技术主要是通过接入点发送Beacon(信标)帧进行数据传输。当终端设备处于待机状态时,接入点每隔Beacon-Interval(信标间隔)发送信标帧。每个信标帧中包含用于通知关联的终端设备是否存在缓存信息位的传输指示信息(TIM,TrafficIndication Message),每隔固定周期的信标帧中包含用于通知存在组播数据缓存信息的传递业务指示信息(DTIM,Delivery Traffic Indication Message)。终端设备以Beacon-Interval的整数倍为监听间隔接收信标帧,并解码其中的缓存信息位,以确定是否有数据被缓存。但是,当信号较弱或者信道质量较差时,监听间隔时间较长可能会导致终端连接断线,从而不能及时接收数据。At present, the WIFI technology mainly transmits data by sending Beacon (beacon) frames through the access point. When the terminal device is in the standby state, the access point sends a beacon frame every Beacon-Interval (beacon interval). Each beacon frame contains transmission indication information (TIM, TrafficIndication Message) for notifying the associated terminal equipment whether there is a buffer information bit, and the beacon frame of each fixed period contains a message for notifying the existence of multicast data buffer information Delivery Traffic Indication Message (DTIM, Delivery Traffic Indication Message). The terminal device receives the beacon frame at an integer multiple of the Beacon-Interval as the monitoring interval, and decodes the buffer information bits in it to determine whether there is data buffered. However, when the signal is weak or the channel quality is poor, a long monitoring interval may cause the terminal connection to be disconnected, so that data cannot be received in time.

可见,按照现有的监听间隔接收信标帧,数据连接的稳定性差。It can be seen that if the beacon frame is received according to the existing monitoring interval, the stability of the data connection is poor.

发明内容Contents of the invention

本发明实施例提供一种监听信标帧的方法及终端,以解决在进行数据连接时,稳定性差的问题。Embodiments of the present invention provide a method and a terminal for monitoring beacon frames, so as to solve the problem of poor stability during data connection.

第一方面,本发明实施例提供了一种监听信标帧的方法,包括:In a first aspect, an embodiment of the present invention provides a method for monitoring beacon frames, including:

获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;Obtain the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters;

根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;Determine the listening interval of beacon frames according to the network environment parameters, the beacon interval, and the delivery service indication information period;

按照所述监听间隔,监听信标帧。According to the monitoring interval, beacon frames are monitored.

第二方面,本发明实施例还提供一种终端,包括:In a second aspect, an embodiment of the present invention further provides a terminal, including:

第一获取模块,用于获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;The first obtaining module is used to obtain the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters;

确定模块,用于根据所述第一获取模块获取的所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;A determination module, configured to determine a beacon frame monitoring interval according to the network environment parameters, the beacon interval, and the delivery service indication information period acquired by the first acquisition module;

监听模块,用于按照所述确定模块确定的所述监听间隔,监听信标帧。A monitoring module, configured to monitor beacon frames according to the monitoring interval determined by the determining module.

第三方面,本发明实施例还提供一种终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的监听信标帧的方法中的步骤。In the third aspect, an embodiment of the present invention also provides a terminal, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above-mentioned computer program when executing the computer program. The steps in the method of listening for beacon frames.

第四方面,本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上所述的监听信标帧的方法中的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the method for listening to beacon frames as described above are implemented.

这样,本发明实施例中,获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。这样,当网络环境发生变化时,终端可以根据网络环境参数对信标帧的监听间隔进行调整,从而能够提高数据连接的稳定性。In this way, in the embodiment of the present invention, the beacon interval of the access point, the period of transmitting service indication information, and the network environment parameters are obtained; according to the network environment parameters, the beacon interval and the period of transmitting service indication information, determine The monitoring interval of the beacon frame; according to the monitoring interval, the beacon frame is monitored. In this way, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, thereby improving the stability of the data connection.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明实施例提供的一种监听信标帧的方法的流程图;FIG. 1 is a flow chart of a method for monitoring beacon frames provided by an embodiment of the present invention;

图2是本发明实施例提供的监听信标帧的示意图;FIG. 2 is a schematic diagram of a listening beacon frame provided by an embodiment of the present invention;

图3是本发明实施例提供的另一种监听信标帧的方法的流程图;FIG. 3 is a flow chart of another method for monitoring beacon frames provided by an embodiment of the present invention;

图4是本发明实施例提供的终端的结构第一示意图;FIG. 4 is a first schematic diagram of a terminal structure provided by an embodiment of the present invention;

图5是本发明实施例提供的终端的结构第二示意图;FIG. 5 is a second schematic diagram of the structure of a terminal provided by an embodiment of the present invention;

图6是本发明实施例提供的终端的结构第三示意图;FIG. 6 is a third schematic diagram of a terminal structure provided by an embodiment of the present invention;

图7是本发明实施例提供的终端的结构第四示意图;FIG. 7 is a fourth schematic diagram of a terminal structure provided by an embodiment of the present invention;

图8是本发明实施例提供的终端的结构第五示意图;FIG. 8 is a fifth schematic diagram of a terminal structure provided by an embodiment of the present invention;

图9是本发明实施例提供的终端的结构第六示意图。FIG. 9 is a sixth schematic diagram of a structure of a terminal provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,图1是本发明实施例提供的监听信标帧的方法的流程图,该方法应用于终端,如图1所示,包括以下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of a method for listening to a beacon frame provided by an embodiment of the present invention. The method is applied to a terminal, as shown in FIG. 1, and includes the following steps:

步骤101、获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数。Step 101. Obtain the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters.

可选的,在此步骤中,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。Optionally, in this step, the network environment parameters include at least one of data traffic, signal strength, and channel quality.

该步骤可以在终端处于休眠状态时执行。在该状态下,终端可以将所有运行的实时数据存储到硬盘上,并且关闭一切不必要的硬件以省电。上述接入点可以是与终端关联的接入点,当终端与接入点关联成功时,终端与接入点之间可以进行数据传输,这样,可以通过信标帧获取接入点的信标间隔和传递业务指示信息周期。This step can be performed when the terminal is in a dormant state. In this state, the terminal can store all running real-time data on the hard disk, and turn off all unnecessary hardware to save power. The above access point may be an access point associated with the terminal. When the terminal is successfully associated with the access point, data transmission can be performed between the terminal and the access point. In this way, the beacon of the access point can be obtained through the beacon frame Interval and delivery cycle of service indication information.

如图2所示,接入点A每隔信标间隔T1发送信标帧1,终端B每隔监听间隔接收信标帧1。每隔固定周期的信标帧1中包含用于通知存在组播数据缓存信息的传递业务指示信息2,该固定周期可以称为传递业务指示信息周期T2。例如,如图2所示,T2为3,则三个信标帧信息包含一次传递业务指示信息。As shown in FIG. 2, access point A sends beacon frame 1 every beacon interval T1, and terminal B receives beacon frame 1 every listening interval. Beacon frame 1 at a fixed period contains delivery service indication information 2 for notifying the existence of multicast data buffer information, and this fixed period may be referred to as delivery service indication information period T2. For example, as shown in FIG. 2 , if T2 is 3, then the information of three beacon frames includes the indication information of one delivery service.

上述网络环境参数可以理解为影响网络连接稳定性或数据接收效率等的参数。具体地,网络环境参数可以是数据流量、信号强度、信道质量中的任意一项或者是数据流量、信号强度、信道质量的任意组合。例如,网络环境参数包括信号强度和信道质量;又如,网络环境参数包括数据流量、信号强度和信道质量。The foregoing network environment parameters may be understood as parameters that affect network connection stability or data receiving efficiency. Specifically, the network environment parameter may be any one of data traffic, signal strength, and channel quality or any combination of data traffic, signal strength, and channel quality. For example, the network environment parameters include signal strength and channel quality; in another example, the network environment parameters include data traffic, signal strength, and channel quality.

终端可以获取在预设时间内的网络环境参数的值或者平均值。例如,获取1秒内的数据流量,并将该流量作为网络的数据流量;又如,获取5秒内网络的信号强度的多个值,并获取多个值的平均值,将该平均值作为网络的信号强度值。The terminal can obtain the value or average value of the network environment parameter within a preset time. For example, obtain the data traffic within 1 second, and use this traffic as the data traffic of the network; another example, obtain multiple values of the signal strength of the network within 5 seconds, and obtain the average value of multiple values, and use the average value as The signal strength value of the network.

步骤102、根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Step 102: Determine a beacon frame listening interval according to the network environment parameters, the beacon interval, and the delivery service indication information cycle.

在此步骤中,终端可以将获取的网络环境参数的值、信标间隔以及传递业务指示信息周期按照预设方式进行计算后,将计算结果作为信标帧的监听间隔。这样,当网络环境变化时,监听间隔可以发生相应的变化,使监听间隔与网络环境相适应,从而提高网络连接的稳定性以及数据接收的效率。In this step, the terminal may calculate the obtained network environment parameter values, beacon interval and service indication information transmission period according to a preset method, and use the calculation result as the listening interval of the beacon frame. In this way, when the network environment changes, the monitoring interval can be changed accordingly, so that the monitoring interval can adapt to the network environment, thereby improving the stability of the network connection and the efficiency of data reception.

步骤103、按照所述监听间隔,监听信标帧。Step 103, monitor beacon frames according to the monitoring interval.

在此步骤中,终端每隔上述监听间隔监听信标帧。这样,当网络环境发生变化时,计算的监听间隔也随之变化,直到终端与接入点断开连接。In this step, the terminal monitors the beacon frame every the above-mentioned listening interval. In this way, when the network environment changes, the calculated listening interval also changes accordingly until the terminal is disconnected from the access point.

本发明实施例中,上述监听信标帧的方法可以应用于终端,例如:计算机、服务器、手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned method for listening to beacon frames can be applied to terminals, such as: computers, servers, mobile phones, tablet computers (Tablet Personal Computer), laptop computers (Laptop Computer), personal digital assistants (personal digital assistant) , referred to as PDA), mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device) and so on.

本发明实施例的监听信标帧的方法,获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。这样,当网络环境发生变化时,终端可以根据网络环境参数对信标帧的监听间隔进行调整,从而能够提高数据连接的稳定性,且能够降低终端的功耗。The method for listening to beacon frames in the embodiment of the present invention obtains the beacon interval of the access point, the period of the delivery service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the delivery service indication The information period determines the monitoring interval of the beacon frame; according to the monitoring interval, the beacon frame is monitored. In this way, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, thereby improving the stability of the data connection and reducing the power consumption of the terminal.

参见图3,本实施例与上述实施例的主要区别在于根据网络环境参数的等级确定信标帧的监听间隔。图3是本发明实施例提供的监听信标帧的方法的流程图,如图3所示,包括以下步骤:Referring to FIG. 3 , the main difference between this embodiment and the foregoing embodiments is that the monitoring 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 to a beacon frame provided by an embodiment of the present invention, as shown in Fig. 3 , including the following steps:

步骤301、获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数。Step 301. Obtain the beacon interval of the access point, the period for transmitting service indication information, and network environment parameters.

该步骤可以在终端处于休眠状态时执行,在该状态下,终端可以将所有运行的实时数据存储到硬盘上,并且关闭一切不必要的硬件以省电。上述接入点可以是与终端关联的接入点,当终端与接入点关联成功时,终端与接入点之间可以进行数据传输,这样,可以通过信标帧获取接入点的信标间隔和传递业务指示信息周期。This step can be performed when the terminal is in a dormant state. In this state, the terminal can store all running real-time data on the hard disk, and turn off all unnecessary hardware to save power. The above access point may be an access point associated with the terminal. When the terminal is successfully associated with the access point, data transmission can be performed between the terminal and the access point. In this way, the beacon of the access point can be obtained through the beacon frame Interval and delivery cycle of service indication information.

如图2所示,接入点A每隔信标间隔T1发送信标帧1,终端B每隔监听间隔接收信标帧1。每隔固定周期的信标帧1中包含用于通知存在组播数据缓存信息的传递业务指示信息2,该固定周期可以称为传递业务指示信息周期T2。例如,如图2所示,T2为3,则三个信标帧信息包含一次传递业务指示信息。As shown in FIG. 2, access point A sends beacon frame 1 every beacon interval T1, and terminal B receives beacon frame 1 every listening interval. Beacon frame 1 at a fixed period contains delivery service indication information 2 for notifying the existence of multicast data buffer information, and this fixed period may be referred to as delivery service indication information period T2. For example, as shown in FIG. 2 , if T2 is 3, then the information of three beacon frames includes the indication information of one delivery service.

上述网络环境参数可以理解为影响网络连接稳定性或数据接收效率等的参数。例如,信号强度,信道质量,数据流量大小等等。The foregoing network environment parameters may be understood as parameters that affect network connection stability or data receiving efficiency. For example, signal strength, channel quality, data traffic size, etc.

终端可以获取在预设时间内的网络环境参数的值或者平均值。例如,获取2秒内的数据流量,并将该流量作为网络的数据流量;又如,获取5秒内网络的信号强度的多个值,并获取多个值的平均值,将该平均值作为网络的信号强度值。此处仅仅是举例。The terminal can obtain the value or average value of the network environment parameter within a preset time. For example, obtain the data traffic within 2 seconds, and use this traffic as the data traffic of the network; another example, obtain multiple values of the signal strength of the network within 5 seconds, and obtain the average value of multiple values, and use the average value as The signal strength value of the network. This is just an example.

步骤302、获取所述网络环境参数在预设网络环境参数等级中的目标参数等级。Step 302. Obtain 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, the first target level of the data traffic of the network where the terminal is located is obtained among the preset traffic levels, and the network environment parameters where the terminal is located are obtained. The signal strength of the network is at the second target level among the preset signal levels, and the channel quality of the network where the terminal is located is at the third target level among the preset channel levels.

在此步骤之前,可以预先将网络环境参数划分为多个等级,并将多个等级以及多个等级分别对应的参数范围存储至终端。当获取网络环境参数时,可以根据预先划分的网络环境参数等级,确定网络环境参数在预设网络环境参数等级中的目标等级。当网络环境较好时,可以设置网络环境参数所在的等级较高;当网络环境较差时,可以设置网络环境参数所在的等级较低。Before this step, the network environment parameters may be divided into multiple levels in advance, and the multiple levels and the parameter ranges corresponding to the multiple levels are stored in the terminal. When acquiring the network environment parameter, the target level of the network environment parameter in the preset network environment parameter level may be determined according to the pre-divided network environment parameter level. When the network environment is good, the network environment parameters can be set at a higher level; when the network environment is poor, the network environment parameters can be set at a lower level.

具体地,可以分别设置数据流量、信号强度和信道质量的多个等级以及多个等级分别对应的参数范围,终端可以根据网络环境参数对网络环境的影响设置等级的高低。例如,当网络的信号强度越强时,说明网络环境较好,可以设置信号强度的等级越高;当信号强度越弱时,说明网络环境差,可以设置信号强度的等级越低。又如,当数据流量越少时,说明网络环境较好,可以设置数据流量的等级越高;当数据流量越大时,说明网络环境较差,可以设置数据流量的等级越低。Specifically, multiple levels of data traffic, signal strength, and channel quality and the parameter ranges corresponding to the multiple levels can be set respectively, and the terminal can set the level according to the impact of network environment parameters on the network environment. For example, when the signal strength of the network is stronger, it means that the network environment is better, and the level of signal strength can be set higher; when the signal strength is weaker, it means that the network environment is poor, and the level of signal strength can be set lower. For another example, when the data traffic is less, it means that the network environment is better, and the level of data traffic can be set higher; when the data traffic is larger, it means that the network environment is poor, and the level of data traffic can be set lower.

当获取网络的数据流量值、信号强度值以及可以表示信道质量好坏的信道质量值时,可以根据预设的等级和参数范围,确定数据流量值所在的第一目标等级,信号强度值所在的第二目标等级,以及信道质量值所在的第三目标等级。When acquiring network data traffic values, signal strength values, and channel quality values that can indicate channel quality, the first target level where the data traffic value is located and the first target level where the signal strength value is located can be determined according to the preset level and parameter range. The second target level, and the third target level where the channel quality value is located.

例如,将数据流量范围为0k至100k设为第三等级;将数据流量范围为100k至200k设为第二等级;将数据流量范围为200k至300k设为第一等级。当获取的数据流量为50k时,确定数据流量的等级为3。For example, set the data flow range from 0k to 100k as the third level; set the data flow range from 100k to 200k as the second level; set the data flow range from 200k to 300k as the first level. When the acquired data traffic is 50k, the level of the data traffic is determined to be 3.

上述数据流量值、信号强度值以及信道质量值可以是获取的预设时间内的值,也可以是预设时间内获取的多个值的平均值。The foregoing data traffic value, signal strength value, and channel quality value may be values acquired within a preset time, or may be an average value of multiple values acquired within a preset time.

本实施方式中,获取网络的数据流量、信号强度和信道质量在预设等级中的目标等级。这样,当网络环境较好,获取的目标等级越高,从而可以延长监听间隔,达到降低终端的功耗的有益效果;当网络环境较差时,获取的目标等级越低,从而可以缩短监听间隔,达到提高网络连接的稳定性的有益效果。In this embodiment, the target level of the network data traffic, signal strength, and channel quality among the preset levels is acquired. In this way, when the network environment is good, the higher the target level is, the monitoring interval can be extended to achieve the beneficial effect of reducing the power consumption of the terminal; when the network environment is poor, the lower the target level is, so that the monitoring interval can be shortened , to achieve the beneficial effect of improving the stability of the network connection.

步骤303、根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Step 303 : Determine a beacon frame monitoring interval according to the target parameter level, the beacon interval, and the delivery 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 delivering service indication information is obtained;

判断所述第一乘积是否大于预设值;judging whether the first product is greater than a preset value;

若所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。If the first product is less than or equal to the preset value, the first product is used as the listening interval of the beacon frame.

终端可以将获取的网络环境所在的目标参数等级、信标间隔以及传递业务指示信息周期按照预设方式计算之后的计算结果作为信标帧的监听间隔。The terminal may use the acquired target parameter level of the network environment, the beacon interval, and the period for transmitting service indication information calculated in a preset manner as the listening interval of the beacon frame.

具体地,终端可以计算第一目标等级、第二目标等级、第三目标等级、信标间隔和传递业务指示信息周期的乘积,并判断该乘积是否大于预先设置的监听间隔的上限值,即预设值。具体可以按照如下方式计算:Specifically, the terminal may calculate the product of the first target level, the second target level, the third target level, the beacon interval, and the period for delivering service indication information, and judge whether the product is greater than the upper limit value of the preset listening interval, that is, default value. Specifically, it can be calculated as follows:

L1=BI1×DTIM1×Fn×Rn×QnL1=BI1×DTIM1×Fn×Rn×Qn

其中,L1为第一乘积的计算值,BI1为信标间隔,DTIM1为传递业务指示信息周期,Fn为第一目标等级,Rn为第二目标等级,Qn为第三目标等级。Among them, L1 is the calculated value of the first product, BI1 is the beacon interval, DTIM1 is the period of transmitting service indication information, Fn is the first target level, Rn is the second target level, and Qn is the third target level.

假设信标间隔为k,传递业务指示信息周期为3,当第一目标等级为2,第二目标等级为1,第三目标等级为1时,计算的第一乘积为k×3×2×1×1=6k。Assuming that the beacon interval is k, and the cycle of transmitting service 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 calculated first product is k×3×2× 1×1=6k.

当第一乘积的计算值小于或者等于上述预设值时,则将第一乘积的计算值作为监听间隔。When the calculated value of the first product is less than or equal to the preset value, the calculated value of the first product is used 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 can be changed accordingly, so that the listening interval can adapt to the network environment. When the network environment is good, the higher the target parameter level is, the monitoring interval can be extended, thereby reducing the power consumption of the terminal; when the network environment is poor, the lower the target parameter level is, the monitoring interval can be shortened, thereby improving The stability of the network connection.

可选的,在所述判断所述第一乘积是否大于预设值的步骤之后,所述方法还包括:Optionally, after the step of judging whether the first product is greater than a preset value, the method further includes:

若所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;If the first product is greater than the preset value, obtain the second product of the beacon interval and the delivery service indication information period, calculate the ratio of the preset value to the second product, and follow the Carry out rounding to the described ratio in the way of rounding down to obtain the rounded value;

将所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。A third product of the second product and the rounded value is used as the listening interval of the beacon frame.

在该实施方式中,当计算的第一乘积大于预设值时,可以重新计算监听间隔。具体地,可以采用以下计算公式计算:In this embodiment, when the calculated first product is greater than a preset value, the monitoring interval may be recalculated. Specifically, the following calculation formula can be used for calculation:

L2=LI1×[L3/LI1],LI1=BI1×DTIM1,其中,L2为监听间隔,LI1为第二乘积,L3为预设值,BI1为信标间隔,DTIM1为传递业务指示信息周期。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 cycle for delivering service indication information.

需要注意的是,在计算L3与LI1的比值后,将该比值按照向下取整的方式获取取整值,然后将该取整值与LI1相乘,从而获得第三乘积。例如,L3为8,LI1为3,则L2=3×(8/3)=3×2=6。It should be noted that after the ratio of L3 to LI1 is calculated, the ratio is rounded down to obtain a rounded value, and then the rounded value is multiplied by LI1 to obtain the third product. For example, L3 is 8, LI1 is 3, then L2=3×(8/3)=3×2=6.

这样,当计算的第一乘积超过预设值时,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;将所述第二乘积与所述取整值的第三乘积作为所述信标帧的监听间隔,这样,使信标帧的监听间隔处于一定的范围内,从而保证数据连接的稳定性。In this way, when the calculated first product exceeds the preset value, the second product of the beacon interval and the delivery service indication information period is obtained, the ratio of the preset value to the second product is calculated, and according to The ratio is rounded down to obtain a rounded value; the third product of the second product and the rounded value is used as the listening interval of the beacon frame, so that the beacon The monitoring interval of the frame is within a certain range, so as to ensure the stability of the data connection.

步骤304、按照所述监听间隔,监听信标帧。Step 304, monitor beacon frames according to the monitoring interval.

在此步骤中,终端每隔上述监听间隔监听信标帧。当网络环境发生变化时,计算的监听间隔也随之变化,直到终端与接入点断开连接。In this step, the terminal monitors the beacon frame every the above-mentioned 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 listening to beacon frames in the embodiment of the present invention determines the listening interval of beacon frames according to the target parameter level where the network environment parameters are located, the beacon interval, and the cycle of transmitting service indication information. In this way, when the network environment changes, the listening interval can be changed accordingly, so that the listening interval can adapt to the network environment. When the network environment is good, the monitoring interval can be extended, thereby reducing the power consumption of the terminal; when the network environment is poor, the monitoring interval can be shortened, thereby improving the stability of the network connection.

参见图4,图4是本发明实施例提供的终端的结构示意图,如图4所示,终端400包括:第一获取模块401、确定模块402和监听模块403。其中,第一获取模块401和确定模块402连接,确定模块402和监听模块403连接。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. Wherein, the first acquisition module 401 is connected with the determination module 402 , and the determination module 402 is connected with the monitoring module 403 .

第一获取模块401,用于获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;The first acquiring module 401 is configured to acquire the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters;

确定模块402,用于根据所述第一获取模块401获取的所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;A determining module 402, configured to determine the listening interval of beacon frames according to the network environment parameters acquired by the first acquiring module 401, the beacon interval and the delivery service indication information period;

监听模块403,用于按照所述确定模块402确定的所述监听间隔,监听信标帧。The monitoring module 403 is configured to monitor beacon frames according to the monitoring interval determined by the determining module 402 .

可选的,如图5所示,所述终端400还包括:Optionally, as shown in FIG. 5, the terminal 400 further includes:

第二获取模块404,用于获取所述第一获取模块401获取的所述网络环境参数在预设网络环境参数等级中的目标参数等级;The second obtaining module 404 is configured to obtain the target parameter level of the network environment parameter obtained by the first obtaining module 401 in the preset network environment parameter level;

所述确定模块402具体用于根据所述第二获取模块404获取的所述目标参数等级、所述第一获取模块401获取的所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。The determining module 402 is specifically configured to determine a beacon 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 delivery service indication information cycle. Frame monitoring interval.

可选的,如图6所示,所述网络环境参数包括数据流量、信号强度和信道质量,所述第二获取模块404具体用于获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;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 data traffic of the network where the terminal is located in a preset traffic level the first target level, obtaining the second target level of the signal strength of the network where the terminal is located in the preset signal level, and acquiring the third target level of the channel quality of the network where the terminal is located in the preset channel level;

所述确定模块402包括:The determination module 402 includes:

第一获取子模块4021,用于获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;The first obtaining submodule 4021 is configured to obtain a first product of the first target level, the second target level, the third target level, the beacon interval and the delivery service indication information period;

判断子模块4022,用于判断所述第一获取子模块获取的所述第一乘积是否大于预设值;A judging submodule 4022, configured to judge whether the first product acquired by the first acquiring submodule is greater than a preset value;

第一确定子模块4023,用于若所述判断子模块判断所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。The first determining sub-module 4023 is configured to use the first product as the listening interval of the beacon frame if the judging sub-module judges that the first product is less than or equal to the preset value.

可选的,如图7所示,所述确定模块402还包括:Optionally, as shown in FIG. 7, the determining module 402 further includes:

第二获取子模块4024,用于若所述判断子模块判断所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;The second acquiring submodule 4024 is configured to acquire the second product of the beacon interval and the delivery service indication information cycle if the judging submodule judges that the first product is greater than the preset value, and calculate the The ratio of the preset value to the second product, and rounding the ratio according to the way of rounding down to obtain the rounded value;

第二确定子模块4025,用于将所述第二获取子模块获取的所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。The second determining submodule 4025 is configured to use the third product of the second product obtained by the second obtaining submodule and the rounded value as the listening interval of the beacon frame.

可选的,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。Optionally, the network environment parameters include at least one of data traffic, signal strength, and channel quality.

终端400能够实现图1和图3对应的方法实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal 400 can implement various processes implemented by the terminal in the method embodiments corresponding to FIG. 1 and FIG. 3 , and details are not repeated here to avoid repetition.

本发明实施例的终端400,获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。这样,当网络环境发生变化时,终端可以根据网络环境参数对信标帧的监听间隔进行调整,从而能够提高数据连接的稳定性。The terminal 400 in the embodiment of the present invention acquires the beacon interval of the access point, the period of delivering service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of delivering service indication information, determine The monitoring interval of the beacon frame; according to the monitoring interval, the beacon frame is monitored. In this way, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, thereby improving the stability of the data connection.

参见图8,图8是本发明实施例提供的终端的结构示意图,如图8所示,终端800包括:至少一个处理器801、存储器802、至少一个网络接口804和用户接口803。终端800中的各个组件通过总线系统805耦合在一起。可理解,总线系统805用于实现这些组件之间的连接通信。总线系统805除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图8中将各种总线都标为总线系统805。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. Various components in the terminal 800 are coupled together through a bus system 805 . It can be understood that the bus system 805 is used to realize connection and communication between these components. In addition to the data bus, the bus system 805 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 805 in FIG. 8 for clarity of illustration.

其中,用户接口803可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(track ball)、触感板或者触摸屏等。Wherein, the user interface 803 may include a display, a keyboard or a pointing device (for example, a mouse, a track ball (track ball), a touch panel or a touch screen, and the like.

可以理解,本发明实施例中的存储器802可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable P ROM,EPROM)、电可擦除可编程只读存储器(Electrically EP ROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous D RAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSD RAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SD RAM,ESDRAM)、同步连接动态随机存取存储器(Synch link D RAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器802旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 802 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable P ROM, EPROM), electronic Erasable programmable read-only memory (Electrically EP ROM, EEPROM) or flash memory. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM) , SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SD RAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SD RAM, ESDRAM), synchronous connection dynamic random access memory (Synch link D RAM, SLDRAM) and Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). Memory 802 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器802存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统8021和应用程序8022。In some implementations, the memory 802 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 8021 and an application program 8022 .

其中,操作系统8021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序8022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序8022中。Among them, the operating system 8021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing 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), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 8022 .

在本发明实施例中,通过调用存储器802存储的程序或指令,具体的,可以是应用程序8022中存储的程序或指令,处理器801用于:In this 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 used to:

获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。Obtain the beacon interval of the access point, the period of transmitting service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of transmitting service indication information, determine the monitoring interval of the beacon frame; according to The monitoring interval is to monitor beacon frames.

上述本发明实施例揭示的方法可以应用于处理器801中,或者由处理器801实现。处理器801可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器801中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器801可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器802,处理器801读取存储器802中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 801 or implemented by the processor 801 . The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 801 or instructions in the form of software. The above-mentioned processor 801 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in 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 can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选的,处理器801还用于:获取所述网络环境参数在预设网络环境参数等级中的目标参数等级;根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Optionally, the processor 801 is further configured to: acquire the target parameter level of the network environment parameter in the preset network environment parameter level; , to determine the listening interval of the beacon frame.

可选的,处理器801还用于:获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;判断所述第一乘积是否大于预设值;若所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。Optionally, the processor 801 is further configured to: acquire the first target level of the data traffic of the network where the terminal is located among the preset traffic levels, and acquire the second target level of the signal strength of the network where the terminal is located among the preset signal levels. target level, and obtain the third target level of the channel quality of the network where the terminal is located in the preset channel level; obtain the first target level, the second target level, the third target level, the signal The first product of the standard interval and the period of the delivery service indication information; judge whether the first product is greater than the preset value; if the first product is less than or equal to the preset value, then use the first product as The listening interval for beacon frames.

可选的,处理器801还用于:若所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;将所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。Optionally, the processor 801 is further configured to: if the first product is greater than the preset value, obtain a second product of the beacon interval and the delivery service indication information period, and calculate the preset value and The ratio of the second product, and round the ratio according to the way of rounding down to obtain the rounded value; use the third product of the second product and the rounded value as the beacon frame Listening interval.

可选的,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。Optionally, the network environment parameters include at least one of data traffic, signal strength, and channel quality.

终端800能够实现前述实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal 800 can implement various processes implemented by the terminal in the foregoing embodiments, and to avoid repetition, details are not described here.

本发明实施例的终端800,获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。这样,当网络环境发生变化时,终端可以根据网络环境参数对信标帧的监听间隔进行调整,从而能够提高数据连接的稳定性。The terminal 800 in the embodiment of the present invention acquires the beacon interval of the access point, the period of delivering service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of delivering service indication information, determine The monitoring interval of the beacon frame; according to the monitoring interval, the beacon frame is monitored. In this way, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, thereby improving the stability of the data connection.

参见图9,图9是本发明实施例提供的终端的结构示意图。具体地,图9中的终端900可以为计算机、手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)或车载电脑等。Referring to FIG. 9, FIG. 9 is a schematic structural diagram of a terminal provided by 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 (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

如图9所示,终端900包括射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、处理器950、音频电路960、通信模块970和电源980。As shown in FIG. 9 , a terminal 900 includes a radio frequency (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 .

其中,输入单元930可用于接收用户输入的数字或字符信息,以及产生与终端900的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元930可以包括触控面板931。触控面板931,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器950,并能接收处理器950发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 930 can be used to receive digital or character information input by the user, and generate signal input related to the user setting 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, can collect user's touch operations on or near it (such as the user's operation on the touch panel 931 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 931 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 950, and can receive and execute commands sent by the processor 950. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 931, the input unit 930 may also include other input devices 932, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元940可用于显示由用户输入的信息或提供给用户的信息以及终端900的各种菜单界面。显示单元940可包括显示面板941,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。Wherein, the display unit 940 can 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. Optionally, the display panel 941 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板931可以覆盖显示面板941,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器950以确定触摸事件的类型,随后处理器950根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 931 can cover the display panel 941 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 950 to determine the type of the touch event, and then the processor The 950 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。本发明实施例的触摸屏为柔性屏,柔性屏的两个面均贴有碳纳米管的有机透明导电膜。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons. The touch screen in the embodiment of the present invention is a flexible screen, and both sides of the flexible screen are pasted with an organic transparent conductive film of carbon nanotubes.

其中处理器950是终端900的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在第一存储器921内的软件程序和/或模块,以及调用存储在第二存储器922内的数据,执行终端900的各种功能和处理数据,从而对终端900进行整体监控。可选的,处理器950可包括一个或多个处理单元。Wherein the processor 950 is the control center of the terminal 900, which uses various interfaces and lines to connect various parts of the entire terminal, by running or executing the software programs and/or modules stored in the first memory 921, and calling the software programs and/or modules stored in the second memory 921. The data in 922 executes various functions of the terminal 900 and processes data, so as to monitor the terminal 900 as a whole. Optionally, the processor 950 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器921内的软件程序和/或模块和/或该第二存储器922内的数据,处理器950用于:In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 921 and/or the data in the second memory 922, the processor 950 is used to:

获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。Obtain the beacon interval of the access point, the period of transmitting service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of transmitting service indication information, determine the monitoring interval of the beacon frame; according to The monitoring interval is to monitor beacon frames.

可选的,处理器950还用于:获取所述网络环境参数在预设网络环境参数等级中的目标参数等级;根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Optionally, the processor 950 is further configured to: acquire the target parameter level of the network environment parameter in the preset network environment parameter level; , to determine the listening interval of the beacon frame.

可选的,处理器950还用于:获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;判断所述第一乘积是否大于预设值;若所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。Optionally, the processor 950 is further configured to: obtain the first target level of the data traffic of the network where the terminal is located among the preset traffic levels, and acquire the second target level of the signal strength of the network where the terminal is located among the preset signal levels. target level, and obtain the third target level of the channel quality of the network where the terminal is located in the preset channel level; obtain the first target level, the second target level, the third target level, the signal The first product of the standard interval and the period of the delivery service indication information; judge whether the first product is greater than the preset value; if the first product is less than or equal to the preset value, then use the first product as The listening interval for beacon frames.

可选的,处理器950还用于:若所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;将所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。Optionally, the processor 950 is further configured to: if the first product is greater than the preset value, obtain a second product of the beacon interval and the delivery service indication information period, and calculate the preset value and The ratio of the second product, and round the ratio according to the way of rounding down to obtain the rounded value; use the third product of the second product and the rounded value as the beacon frame Listening interval.

可选的,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。Optionally, the network environment parameters include at least one of data traffic, signal strength, and channel quality.

终端900能够实现前述实施例中终端实现的各个过程,为避免重复,这里不再赘述。The terminal 900 can implement various processes implemented by the terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例的终端900,获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。这样,当网络环境发生变化时,终端可以根据网络环境参数对信标帧的监听间隔进行调整,从而能够提高数据连接的稳定性。The terminal 900 in the embodiment of the present invention acquires the beacon interval of the access point, the period of delivering service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of delivering service indication information, determine The monitoring interval of the beacon frame; according to the monitoring interval, the beacon frame is monitored. In this way, when the network environment changes, the terminal can adjust the monitoring interval of the beacon frame according to the network environment parameters, thereby improving the stability of the data connection.

本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序(指令),该程序(指令)被处理器执行时实现以下步骤:The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program (instruction) is stored, and when the program (instruction) is executed by a processor, the following steps are implemented:

获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;按照所述监听间隔,监听信标帧。Obtain the beacon interval of the access point, the period of transmitting service indication information, and the network environment parameters; according to the network environment parameters, the beacon interval and the period of transmitting service indication information, determine the monitoring interval of the beacon frame; according to The monitoring interval is to monitor beacon frames.

可选的,该程序(指令)被处理器执行时实现以下步骤:Optionally, the following steps are implemented when the program (instruction) is executed by the processor:

获取所述网络环境参数在预设网络环境参数等级中的目标参数等级;根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Acquire the target parameter level of the network environment parameter in the preset network environment parameter level; determine the listening interval of the beacon frame according to the target parameter level, the beacon interval and the transmission service indication information cycle.

可选的,该程序(指令)被处理器执行时实现以下步骤:Optionally, the following steps are implemented when the program (instruction) is executed by the processor:

获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;判断所述第一乘积是否大于预设值;若所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。Acquiring the first target level of the data traffic of the network where the terminal is located in the preset traffic level, acquiring the second target level of the signal strength of the network where the terminal is located in the preset signal level, and acquiring the data traffic of the network where the terminal is located The third target level of channel quality in the preset channel level; obtaining the first target level, the second target level, the third target level, the beacon interval and the delivery service indication information period The first product: judging whether the first product is greater than a preset value; if the first product is less than or equal to the preset value, using the first product as a listening interval of a beacon frame.

可选的,该程序(指令)被处理器执行时实现以下步骤:Optionally, the following steps are implemented when the program (instruction) is executed by the processor:

若所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;将所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。If the first product is greater than the preset value, obtain the second product of the beacon interval and the delivery service indication information period, calculate the ratio of the preset value to the second product, and follow the The ratio is rounded down to obtain a rounded value; a third product of the second product and the rounded value is used as the listening interval of the beacon frame.

可选的,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。Optionally, the network environment parameters include at least one of data traffic, signal strength, and channel quality.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. 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 Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part 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, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (12)

1.一种监听信标帧的方法,其特征在于,应用于终端,包括:1. A method for monitoring beacon frames, characterized in that it is applied to a terminal, including: 获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;Obtain the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters; 根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;Determine the listening interval of beacon frames according to the network environment parameters, the beacon interval, and the delivery service indication information period; 按照所述监听间隔,监听信标帧。According to the monitoring interval, beacon frames are monitored. 2.根据权利要求1所述的方法,其特征在于,在所述获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数的步骤之后,在所述根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔的步骤之前,所述方法还包括:2. The method according to claim 1, characterized in that, after the step of obtaining the beacon interval of the access point, the period of transmitting service indication information, and the network environment parameter, after the step of obtaining the access point according to the network environment parameter , the beacon interval and the delivery service indication information period, before the step of determining the listening interval of the beacon frame, the method also includes: 获取所述网络环境参数在预设网络环境参数等级中的目标参数等级;Obtaining the target parameter level of the network environment parameter in the preset network environment parameter level; 所述根据所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔的步骤,包括:The step of determining the listening interval of the beacon frame according to the network environment parameters, the beacon interval and the delivery service indication information cycle includes: 根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。Determine the listening interval of beacon frames according to the target parameter level, the beacon interval, and the period of delivering service indication information. 3.根据权利要求2所述的方法,其特征在于,所述网络环境参数包括数据流量、信号强度和信道质量,所述获取所述网络环境参数在预设网络环境参数等级中的目标参数等级的步骤,包括:3. The method according to claim 2, wherein the network environment parameters include data flow, signal strength and channel quality, and the acquisition of the target parameter level of the network environment parameters in the preset network environment parameter levels steps, including: 获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;Acquiring the first target level of the data traffic of the network where the terminal is located in the preset traffic level, acquiring the second target level of the signal strength of the network where the terminal is located in the preset signal level, and acquiring the data traffic of the network where the terminal is located a third target level of channel quality among preset channel levels; 所述根据所述目标参数等级、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔的步骤,包括:The step of determining the monitoring interval of the beacon frame according to the target parameter level, the beacon interval and the delivery service indication information cycle includes: 获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;Acquiring a first product of the first target level, the second target level, the third target level, the beacon interval, and the delivery traffic indication information period; 判断所述第一乘积是否大于预设值;judging whether the first product is greater than a preset value; 若所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。If the first product is less than or equal to the preset value, the first product is used as the listening interval of the beacon frame. 4.根据权利要求3所述的方法,其特征在于,在所述判断所述第一乘积是否大于预设值的步骤之后,所述方法还包括:4. The method according to claim 3, characterized in that, after the step of judging whether the first product is greater than a preset value, the method further comprises: 若所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;If the first product is greater than the preset value, obtain the second product of the beacon interval and the delivery service indication information period, calculate the ratio of the preset value to the second product, and follow the Carry out rounding to the described ratio in the way of rounding down to obtain the rounded value; 将所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。A third product of the second product and the rounded value is used as the listening interval of the beacon frame. 5.根据权利要求1所述的方法,其特征在于,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。5. The method according to claim 1, wherein the network environment parameters include at least one of data traffic, signal strength, and channel quality. 6.一种终端,其特征在于,包括:6. A terminal, characterized in that, comprising: 第一获取模块,用于获取接入点的信标间隔、传递业务指示信息周期,以及网络环境参数;The first obtaining module is used to obtain the beacon interval of the access point, the cycle of transmitting service indication information, and network environment parameters; 确定模块,用于根据所述第一获取模块获取的所述网络环境参数、所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔;A determination module, configured to determine a beacon frame monitoring interval according to the network environment parameters, the beacon interval, and the delivery service indication information period acquired by the first acquisition module; 监听模块,用于按照所述确定模块确定的所述监听间隔,监听信标帧。A monitoring module, configured to monitor beacon frames according to the monitoring interval determined by the determining module. 7.根据权利要求6所述的终端,其特征在于,所述终端还包括:7. The terminal according to claim 6, further comprising: 第二获取模块,用于获取所述第一获取模块获取的所述网络环境参数在预设网络环境参数等级中的目标参数等级;The second acquiring module is configured to acquire the target parameter level of the network environment parameter acquired by the first acquiring module in the preset network environment parameter level; 所述确定模块具体用于根据所述第二获取模块获取的所述目标参数等级、所述第一获取模块获取的所述信标间隔和所述传递业务指示信息周期,确定信标帧的监听间隔。The determining module is specifically configured to determine the monitoring of beacon frames according to the target parameter level obtained by the second obtaining module, the beacon interval obtained by the first obtaining module, and the delivery service indication information cycle interval. 8.根据权利要求7所述的终端,其特征在于,所述网络环境参数包括数据流量、信号强度和信道质量,所述第二获取模块具体用于获取所述终端所在网络的数据流量在预设流量等级中的第一目标等级,获取所述终端所在网络的信号强度在预设信号等级中的第二目标等级,并获取所述终端所在网络的信道质量在预设信道等级中的第三目标等级;8. The terminal according to claim 7, wherein the network environment parameters include data traffic, signal strength and channel quality, and the second obtaining module is specifically used to obtain the data traffic of the network where the terminal is located in the preset Set the first target level in the traffic level, obtain the second target level of the signal strength of the network where the terminal is located in the preset signal level, and obtain the third target level of the channel quality of the network where the terminal is located in the preset channel level. target level; 所述确定模块包括:The determination module includes: 第一获取子模块,用于获取所述第一目标等级、所述第二目标等级、所述第三目标等级、所述信标间隔和所述传递业务指示信息周期的第一乘积;A first acquiring submodule, configured to acquire a first product of the first target level, the second target level, the third target level, the beacon interval, and the delivery service indication information period; 判断子模块,用于判断所述第一获取子模块获取的所述第一乘积是否大于预设值;A judging submodule, configured to judge whether the first product obtained by the first obtaining submodule is greater than a preset value; 第一确定子模块,用于若所述判断子模块判断所述第一乘积小于或者等于所述预设值,则将所述第一乘积作为信标帧的监听间隔。The first determining submodule is configured to use the first product as the listening interval of the beacon frame if the judging submodule judges that the first product is less than or equal to the preset value. 9.根据权利要求8所述的终端,其特征在于,所述确定模块还包括:9. The terminal according to claim 8, wherein the determining module further comprises: 第二获取子模块,用于若所述判断子模块判断所述第一乘积大于所述预设值,获取所述信标间隔和所述传递业务指示信息周期的第二乘积,计算所述预设值与所述第二乘积的比值,并按照向下取整的方式对所述比值进行取整,得到取整值;The second obtaining submodule is used to obtain the second product of the beacon interval and the delivery service indication information cycle if the judging submodule judges that the first product is greater than the preset value, and calculate the predicted value. Setting the ratio of the value to the second product, and rounding the ratio by rounding down to obtain a rounded value; 第二确定子模块,用于将所述第二获取子模块获取的所述第二乘积与所述取整值的第三乘积作为信标帧的监听间隔。The second determining submodule is configured to use the third product of the second product obtained by the second obtaining submodule and the rounded value as the listening interval of the beacon frame. 10.根据权利要求6所述的终端,其特征在于,所述网络环境参数包括数据流量、信号强度、信道质量中的至少一项。10. The terminal according to claim 6, wherein the network environment parameters include at least one of data traffic, signal strength, and channel quality. 11.一种终端,其特征在于,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至5任一项所述的监听信标帧的方法中的步骤。11. A terminal, characterized in that it comprises: a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program, any of claims 1 to 5 can be realized. A step in the method for listening to beacon frames. 12.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1至5任一项所述的监听信标帧的方法中的步骤。12. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps in the method for listening to beacon frames according to any one of claims 1 to 5 are realized .
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 true CN107087283A (en) 2017-08-22
CN107087283B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770852A (en) * 2017-09-19 2018-03-06 联发科技(新加坡)私人有限公司 Wireless communications method, communication equipment and the device with store function
CN108924902A (en) * 2018-06-12 2018-11-30 Oppo广东移动通信有限公司 Wireless network disconnects method, apparatus and electronic device
CN110461031A (en) * 2019-08-26 2019-11-15 维沃移动通信有限公司 The control method and terminal device of terminal device
WO2022134936A1 (en) * 2020-12-21 2022-06-30 Oppo广东移动通信有限公司 Radio link monitoring method and apparatus, 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

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770852A (en) * 2017-09-19 2018-03-06 联发科技(新加坡)私人有限公司 Wireless communications method, communication equipment and the device with store function
CN107770852B (en) * 2017-09-19 2021-07-27 联发科技(新加坡)私人有限公司 Wireless communication method, communication device and device with storage function
US11304136B2 (en) 2017-09-19 2022-04-12 Mediatek Singapore Pte. Ltd. Wireless communication method and communication device
CN108924902A (en) * 2018-06-12 2018-11-30 Oppo广东移动通信有限公司 Wireless network disconnects method, apparatus and electronic device
CN108924902B (en) * 2018-06-12 2021-09-14 Oppo广东移动通信有限公司 Wireless network disconnection method and device and electronic device
CN110461031A (en) * 2019-08-26 2019-11-15 维沃移动通信有限公司 The control method and terminal device of terminal device
CN110461031B (en) * 2019-08-26 2021-04-13 维沃移动通信有限公司 Terminal device control method and terminal device
US12096366B2 (en) 2019-08-26 2024-09-17 Vivo Mobile Communication Co., Ltd. Terminal device control method and terminal device
WO2022134936A1 (en) * 2020-12-21 2022-06-30 Oppo广东移动通信有限公司 Radio link monitoring method and apparatus, wireless terminal, and storage medium

Also Published As

Publication number Publication date
CN107087283B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN106374969A (en) Antenna switching method and mobile terminal
CN108430101A (en) Antenna closing method, device, storage medium and electronic equipment
CN106406892A (en) A shortcut function display method and device for applications and a terminal apparatus
CN106327166A (en) Information processing method and mobile terminal
US10705649B2 (en) Pressure touch control method and electronic device
CN105306682A (en) Method and device for automatically disconnecting network connection
CN103389863A (en) Display control method and device
CN107566616A (en) A kind of display methods of information, terminal and computer-readable recording medium
CN107087283A (en) A method and terminal for monitoring beacon frames
WO2014036817A1 (en) Terminal and method for dynamically loading application program interface
WO2018049905A1 (en) Data migration method and related devices
CN105187653B (en) Network connection switchs method for closing and device
CN104238900A (en) Page positioning method and device
CN106791084A (en) Synchronization method of personalized parameters and mobile terminal
CN105933944A (en) Optimized use method, device and mobile terminal of 4G network
CN106209608B (en) Method and device for distinguishing and synchronizing chat information
CN106455033A (en) Data message transmission method and device
CN106445739B (en) Data migration method and terminal equipment
CN107145386A (en) Data migration method, terminal device and computer-readable recording medium
CN107819922A (en) Relaying method of adjustment, wireless headset and the mobile terminal of a kind of wireless headset
CN105162930B (en) The way of recording and device of mobile terminal
CN106161601A (en) Method and device for data request
CN104238931B (en) Information input method and device and electronic equipment
CN106527846A (en) Displaying method, displaying device and terminal equipment
CN108112022A (en) A kind of system information block transmission method, terminal and network side equipment

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