WO2012009884A1 - 一种对移动终端wi-fi应用进行处理的方法和装置 - Google Patents

一种对移动终端wi-fi应用进行处理的方法和装置 Download PDF

Info

Publication number
WO2012009884A1
WO2012009884A1 PCT/CN2010/077658 CN2010077658W WO2012009884A1 WO 2012009884 A1 WO2012009884 A1 WO 2012009884A1 CN 2010077658 W CN2010077658 W CN 2010077658W WO 2012009884 A1 WO2012009884 A1 WO 2012009884A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
mobile terminal
communication rate
sleep time
processing
Prior art date
Application number
PCT/CN2010/077658
Other languages
English (en)
French (fr)
Inventor
齐旭亮
段红乐
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012009884A1 publication Critical patent/WO2012009884A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method and apparatus for processing a mobile terminal Wi-Fi application. Background technique
  • Wi-Fi wireless broadband
  • Wi-Fi technology has been widely used in a variety of mobile terminals, and there is also a problem in bringing convenience to people's ordinary life:
  • the application of Wi-Fi technology not only causes the mobile terminal to consume a large amount of power, but also moves
  • the size of the terminal is also large, and the configuration is relatively obvious compared to the personal computer.
  • the Wi-Fi function module in the mobile terminal that is, the Wi-Fi application, consumes a lot of system resources when it is running.
  • the main object of the present invention is to provide a method and apparatus for processing a mobile terminal Wi-Fi application, which can reduce the consumption of system resources by the Wi-Fi application without interrupting the Wi-Fi application.
  • the present invention provides a method for processing a mobile terminal Wi-Fi application, the method package Includes:
  • the mobile terminal detects whether there is a higher-priority application currently in progress, and determines that the application with higher priority is adjusting the occupancy of the system resource according to the application with higher priority. Wi-Fi communication rate.
  • the method for adjusting the Wi-Fi communication rate is: setting a sleep time for the Wi-Fi application, and adjusting the size of the Wi-Fi communication rate by adjusting the length of the sleep time.
  • the longer the sleep time is set the smaller the Wi-Fi communication rate is; the shorter the sleep time is set, the larger the Wi-Fi communication rate is.
  • the method for adjusting the Wi-Fi communication rate by setting the sleep time is: inserting a sleep time before or after the data processing operation during the Wi-Fi application running.
  • the sleep time is not greater than a network communication timeout period, and is not less than a time required by the central processing unit CPU application switching process.
  • the method further includes:
  • the mobile terminal determines that the higher priority application has ended, then adjusts the Wi-Fi communication rate to the original value.
  • the present invention also provides an apparatus for processing a mobile terminal Wi-Fi application, the apparatus comprising: a detection module and an adjustment module;
  • the detecting module is configured to detect whether a higher priority application is currently in progress during the running of the Wi-Fi application, and notify the adjustment module when the application with a higher priority is in progress; the adjustment module, It is used to adjust the Wi-Fi communication rate according to the occupation of system resources according to the higher priority application.
  • the process of adjusting the Wi-Fi communication rate by the adjustment module is:
  • the adjustment module sets the sleep time for the Wi-Fi application and adjusts the Wi-Fi communication rate by adjusting the length of the sleep time.
  • the adjustment module adjusts the Wi-Fi communication rate by setting a sleep time
  • the method is: Inserting sleep time before or after the data processing operation during the running of the Wi-Fi application.
  • the detecting module is further configured to notify the adjustment module when the application with a higher priority has been completed in the detecting process;
  • the adjusting module is further configured to: after receiving the notification of the detecting module, adjust the Wi-Fi communication rate to an original value.
  • the method and device for processing a mobile terminal Wi-Fi application provided by the present invention, during a Wi-Fi application running process, when the mobile terminal detects and determines that an application with a higher priority is simultaneously performed, according to a higher priority application Adjust the Wi-Fi communication rate for the occupancy of system resources.
  • the present invention reduces the Wi-Fi communication rate by extending the sleep time before or after the data processing operation during the operation of the Wi-Fi application, thereby extending the running time of the Wi-Fi application.
  • the Wi-Fi application enters the sleep state, it also gives over the control of the CPU, leaving more CPU resources for the higher priority applications. Therefore, while ensuring that the Wi-Fi application is not interrupted, Ensure that higher priority applications run better.
  • FIG. 1 is a schematic flowchart of a method for processing a mobile terminal Wi-Fi application according to the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for processing a mobile terminal Wi-Fi application according to the present invention. detailed description
  • the basic idea of the present invention is: During the operation of the Wi-Fi application, when the mobile terminal detects and determines that the currently higher priority application is simultaneously performed, the Wi-Fi communication is adjusted according to the occupation of the system resources by the higher priority application. Rate, ensuring that Wi-Fi applications operate at lower communication rates without interruption.
  • the method for adjusting the Wi-Fi communication rate is: setting a sleep time for the Wi-Fi application, that is, setting a sleep operation during the running of the Wi-Fi application, which is equivalent to increasing the running time of the Wi-Fi application. Thereby reducing the Wi-Fi communication rate and reducing the occupation of system resources; The Wi-Fi communication rate can be adjusted correspondingly by adjusting the length of sleep time.
  • the Wi-Fi communication rate can be adjusted to the original value.
  • the occupancy of the system resources may be simply defined as the occupancy of the central processing unit (CPU);
  • the Wi-Fi application is a Wi-Fi function module.
  • FIG. 1 is a schematic flowchart of a method for processing a mobile terminal Wi-Fi application according to the present invention. As shown in FIG. 1 , the implementation steps of the method are as follows:
  • Step 101 During the operation of the Wi-Fi application, the mobile terminal detects whether there is currently a higher priority application, if it is detected, step 102 is performed; if not, step 103 is performed;
  • the mobile terminal detects whether there are other applications with higher priority than the Wi-Fi application in the running process of the Wi-Fi application, and if the application with higher priority is detected, step 102 is performed; If the application with higher priority is not available, go to step 103.
  • the mobile terminal detects that the priority of the application is: the mobile terminal can determine the priority of the parallel application according to the type of the application that is currently in parallel with the Wi-Fi application, because the mobile terminal configures each application when configuring different applications.
  • the priority of different types of applications and the occupation of system resources by different types of applications that is, the occupancy of the CPU, that is, the priority of the mobile terminal for various applications and the occupation of the CPU by various applications have been Master, this content is prior art and will not be described in detail here.
  • Step 102 Adjust the Wi-Fi communication rate according to the occupation of the system resources according to the higher priority application;
  • the Wi-Fi communication rate is adjusted according to the known high-priority application, and the application with higher priority needs to be occupied. More system resources, the Wi-Fi communication rate is adjusted lower, and then executed Step 103: If the higher priority application needs to occupy less system resources, the Wi-Fi communication rate is adjusted to be relatively higher, and step 103 is performed. Of course, regardless of the adjustment here, the resulting Wi-Fi communication rate is less than the value before the adjustment.
  • the method for adjusting the Wi-Fi communication rate according to the present invention is: setting a sleep time for the Wi-Fi application, and adjusting the Wi-Fi communication rate by adjusting the length of the sleep time.
  • the longer the sleep time the Wi The smaller the -Fi communication rate; the shorter the sleep time, the greater the Wi-Fi communication rate.
  • the sleep time should not be too long or too short.
  • the upper limit of the sleep time that is, the maximum value is set to be not greater than the network communication timeout time MaxSleepTime; the lower limit of the sleep time, that is, the minimum value is set to be not less than the CPU application switching process.
  • the time required. The reason for this setting is: If the sleep time is too long, the network communication timeout time MaxSleepTime is exceeded, the network communication will be interrupted, the same as the interrupted Wi-Fi application mentioned in the prior art; if the sleep time is too short, less than the CPU The time required to apply the switching process will increase the CPU load. The CPU usage of the Wi-Fi application will not decrease, but will increase.
  • the allocation of CPU resources is automatically completed by the operating system. As long as the Wi-Fi application goes to sleep, the use of the CPU is abandoned, and the operating system automatically transfers to other applications, so that applications with higher priority will have more. Opportunity to get the right to use the CPU.
  • Wi-Fi application The following describes the specific process of adjusting the Wi-Fi communication rate during Wi-Fi application. First, the working environment of the Wi-Fi function module in the existing mobile terminal, that is, the Wi-Fi application is briefly described.
  • the Wi-Fi application works in the Medium Access Control (MAC) layer of the Transmission Control Protocol (TCP) / Internet Protocol (IP) stack, and is in the upper and lower layers with the IP communication layer, corresponding to the transmission interface and the receiving interface based on the MA C protocol. , here the two interfaces are defined as Wi-Fi sen d and Wi-Fi - recv.
  • MAC Medium Access Control
  • TCP Transmission Control Protocol
  • IP Internet Protocol
  • the Wi-Fi_send is implemented by an IP communication layer, and the Wi-Fi-rec is implemented by a Wi-Fi application.
  • the IP communication layer is discovered by detecting a Wi-Fi-rec action.
  • the communication request initiated by the next is sent to the network side after data processing operations such as encapsulation; on the other hand, the data transmitted from the network side is sent to the IP communication through Wi-Fi send after being parsed and processed by the data processing operation.
  • Floor The Wi-Fi_send is implemented by an IP communication layer, and the Wi-Fi-rec is implemented by a Wi-Fi application.
  • the operation of adjusting the Wi-Fi communication rate is: inserting a sleep time after the data processing operation in the Wi-Fi application running process, and the Wi-Fi application enters a sleep state, specifically:
  • Wi-Fi-rec is called, the IP communication layer sends data downwards via Wi-Fi-rec, and the Wi-Fi function module performs data processing operations such as encapsulation on the data sent by the IP communication layer, and enters sleep according to the set sleep time. Status, after the sleep time is over, send the processed related data to the network side;
  • the Wi-Fi function module After receiving the data sent by the network side, the Wi-Fi function module first performs data processing operations such as parsing the data, and then enters a sleep state. After the sleep time is over, the processed related data is sent to the Wi-Fi_send via Wi-Fi_send. IP communication layer.
  • Step 103 The Wi-Fi communication rate adjustment process ends.
  • the Wi-Fi communication rate can be adjusted to the original value again;
  • the mobile terminal adjusts the Wi-Fi communication rate to the original larger by adjusting the sleep time. value.
  • the mobile terminal can sleep time. Adjust to 0 again.
  • This embodiment relates to two applications, namely: a Wi-Fi application, specifically a Wi-Fi application that downloads files through a network, and a video phone application with a higher priority; the videophone application includes a call setup and Processing of video images, etc.
  • a Wi-Fi application specifically a Wi-Fi application that downloads files through a network
  • a video phone application with a higher priority the videophone application includes a call setup and Processing of video images, etc.
  • the mobile terminal When the mobile terminal is executing the Wi-Fi application of the network download file, the mobile terminal initiates the videophone application, and for the use priority of the mobile terminal, it is desirable to maintain the network download on the basis of ensuring smooth operation of the videophone.
  • the file's Wi-Fi application runs continuously. Since the system configuration of the mobile terminal is not enough to ensure a smooth video call when the Wi-Fi application is working at full speed, there may be a problem of video mosaic or voice quality degradation.
  • the mobile terminal user initiates the videophone service, and the mobile terminal can detect that the videophone application is in progress; the mobile terminal sends a notification to the Wi-Fi application to notify the Wi-Fi application that there is currently The higher priority application is in progress, and the Wi-Fi communication rate needs to be adjusted according to the set sleep time; the Wi-Fi application adjusts the Wi-Fi communication rate according to the sleep time in the notification, and reduces its own occupation rate of the CPU.
  • the notification includes a sleep time set by the mobile terminal according to the occupancy of the system resource by the application with higher priority.
  • the mobile terminal may further send a notification to the Wi-Fi application to notify the Wi-Fi application to re-adjust the Wi-Fi communication rate, for example: the Wi-Fi communication rate can be adjusted to The large Wi-Fi communication rate before the videophone application was triggered.
  • the present invention further provides a device for processing a Wi-Fi application of a mobile terminal.
  • the device includes: a detection module and an adjustment module;
  • the detecting module is configured to detect whether there is a priority in the current running process of the Wi-Fi application.
  • the high-level application is in progress, and when the application with higher priority is determined to be in progress, the adjustment module is notified; the adjustment module is configured to adjust the Wi-Fi communication rate according to the occupation of the system resources according to the application with higher priority.
  • the process of adjusting the Wi-Fi communication rate by the adjustment module is:
  • the adjustment module sets a sleep time for the Wi-Fi application and adjusts the Wi-Fi communication rate by adjusting the length of the sleep time.
  • the adjusting module adjusts the Wi-Fi communication rate by setting a sleep time, specifically: the adjustment module inserts a sleep time before or after the data processing operation during the running of the Wi-Fi application.
  • the detecting module is further configured to notify the adjustment module when the application with higher priority has been completed in the detecting process; correspondingly,
  • the adjustment module is further configured to adjust the Wi-Fi communication rate to an original value after receiving the notification from the detection module.

Landscapes

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

Abstract

本发明公开了一种对移动终端Wi-Fi应用进行处理的方法,包括:在Wi-Fi应用运行过程中,移动终端检测当前是否有优先级较高的应用在进行,确定有优先级较高的应用在进行时,依据优先级较高的应用对系统资源的占用情况调节Wi-Fi通信速率。本发明还同时公开了一种对移动终端Wi-Fi应用进行处理的装置,运用该方法和装置可在不中断Wi-Fi应用的情况下,降低Wi-Fi应用对系统资源的消耗。

Description

一种对移动终端 Wi-Fi应用进行处理的方法和装置 技术领域
本发明涉及移动通信领域,尤其涉及一种对移动终端 Wi-Fi应用进行处 理的方法和装置。 背景技术
随着移动通信技术的发展, Wi-Fi技术已逐渐被人们所熟知。 Wi-Fi可 称为无线宽带, 是一种可以将个人电脑、 手持移动终端等以无线方式互相 连接的技术。 Wi-Fi技术已在多种移动终端中得到广泛应用, 在给人们的曰 常生活带来许多便利的同时也存在一个问题: Wi-Fi技术的应用, 不仅导致 移动终端电量消耗大, 而且移动终端的体积也较大, 其配置相对个人电脑 来说差距还比较明显。更重要的是,移动终端中的 Wi-Fi功能模块,即 Wi-Fi 应用在运行时, 需要消耗大量系统资源。 因此, 当 Wi-Fi应用与其它优先级 更高且也需要不少系统资源的应用同时进行时,需对 Wi-Fi应用的进程进行 调整, 目前常用的方法是: 将 Wi-Fi通信暂停, 即暂时停止 Wi-Fi应用的进 程。 但是, 这种方法对于那些中断后无法再恢复的业务是不适用的, 例如: 不支持断点续传的网络下载等。 发明内容
有鉴于此,本发明的主要目的在于提供一种对移动终端 Wi-Fi应用进行 处理的方法和装置, 可在不中断 Wi-Fi应用的情况下, 降低 Wi-Fi应用对系 统资源的消耗。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明提供了一种对移动终端 Wi-Fi应用进行处理的方法, 该方法包 括:
在 Wi-Fi应用运行过程中,移动终端检测当前是否有优先级较高的应用 在进行, 确定有优先级较高的应用在进行时, 依据优先级较高的应用对系 统资源的占用情况调节 Wi-Fi通信速率。
其中,所述调节 Wi-Fi通信速率的方法为:为 Wi-Fi应用设置睡眠时间, 通过调节睡眠时间的长短来调节 Wi-Fi通信速率的大小。
其中, 所设置的睡眠时间越长, Wi-Fi通信速率越小; 所设置的睡眠时 间越短, Wi-Fi通信速率越大。
其中, 所述通过设置睡眠时间调节 Wi-Fi通信速率的方法为: 在 Wi-Fi 应用运行过程中的数据处理操作之前或之后插入睡眠时间。
其中, 所述睡眠时间不大于网络通信超时时间, 且不小于中央处理单 元 CPU应用切换过程所需的时间。
所述移动终端在检测过程中, 该方法进一步包括:
如果移动终端确定优先级较高的应用已结束,则再将 Wi-Fi通信速率调 节为原来的值。
本发明还提供了一种对移动终端 Wi-Fi应用进行处理的装置,该装置包 括: 检测模块和调节模块; 其中,
所述检测模块,用于在 Wi-Fi应用运行过程中,检测当前是否有优先级 较高的应用在进行, 确定有优先级较高的应用在进行时, 通知调节模块; 所述调节模块, 用于依据优先级较高的应用对系统资源的占用情况调 节 Wi-Fi通信速率。
其中, 所述调节模块调节 Wi-Fi通信速率的过程为:
调节模块为 Wi-Fi应用设置睡眠时间 ,通过调节睡眠时间的长短来调节 Wi-Fi通信速率的大小。
其中,所述调节模块通过设置睡眠时间调节 Wi-Fi通信速率的过程,具 体为: 在 Wi-Fi应用运行过程中的数据处理操作之前或之后插入睡眠时间。 其中, 所述检测模块在检测过程中, 进一步用于确定优先级较高的应 用已结束时, 通知调节模块;
相应的, 所述调节模块, 进一步用于收到检测模块的通知后, 将 Wi-Fi 通信速率调节为原来的值。
本发明提供的对移动终端 Wi-Fi应用进行处理的方法和装置, Wi-Fi应 用运行过程中, 移动终端检测并确定当前有优先级较高的应用同时进行时, 依据优先级较高的应用对系统资源的占用情况调节 Wi-Fi通信速率。本发明 通过在 Wi-Fi应用运行过程中的数据处理操作之前或之后插入睡眠时间,起 到延长 Wi-Fi应用的运行时间的作用, 从而降低了 Wi-Fi通信速率。 Wi-Fi 应用进入睡眠状态时, 也就相应交出了 CPU的控制权, 给优先级较高的应 用留出更多的 CPU资源, 因此, 在确保 Wi-Fi应用不中断的同时, 也可保 证优先级较高的应用更好地运行。 附图说明
图 1为本发明对移动终端 Wi-Fi应用进行处理的方法实现流程示意图; 图 2为本发明对移动终端 Wi-Fi应用进行处理的装置结构示意图。 具体实施方式
本发明的基本思想是: Wi-Fi应用运行过程中, 移动终端检测并确定当 前有优先级较高的应用同时进行时, 依据优先级较高的应用对系统资源的 占用情况调节 Wi-Fi通信速率,保证 Wi-Fi应用在较低通信速率下运行不中 断。
其中, 所述调节 Wi-Fi通信速率的方法为: 为 Wi-Fi应用设置一个睡眠 时间, 即在 Wi-Fi应用运行过程中设置一个睡眠操作, 相当于增加了 Wi-Fi 应用的运行时间, 从而降低了 Wi-Fi通信速率, 减少了对系统资源的占用; 通过调节睡眠时间的长短可对应调节 Wi-Fi通信速率。
进一步地, 当移动终端确定优先级较高的应用已结束时, 可再将 Wi-Fi 通信速率调节为原来的值。
本发明中, 所述对系统资源的占用情况可简单定义为对中央处理单元 ( CPU ) 的占用情况; 所述 Wi-Fi应用即 Wi-Fi功能模块。
下面结合附图及具体实施例对本发明作进一步详细说明。
图 1为本发明对移动终端 Wi-Fi应用进行处理的方法实现流程示意图, 如图 1所示, 该方法的实现步骤如下:
步骤 101 : Wi-Fi应用运行过程中, 移动终端检测当前是否有优先级较 高的应用在进行, 如果检测到, 则执行步骤 102; 如果检测不到, 则执行步 骤 103;
具体为: 移动终端在 Wi-Fi应用运行过程中,检测当前是否还有其它优 先级比 Wi-Fi应用高的应用在运行,如果检测到优先级较高的应用,则执行 步骤 102; 如果检测不到优先级较高的应用, 则执行步骤 103。
这里, 所述移动终端检测应用的优先级为: 移动终端依据当前与 Wi-Fi 应用并行的应用的类型可确定该并行应用的优先级, 因为, 移动终端在配 置不同应用时, 已相应配置各不同类型应用的优先级以及各不同类型应用 对系统资源的占用情况, 即对 CPU的占用情况, 也就是说, 移动终端对各 种应用的优先级和各种应用对 CPU的占用情况已有所掌握, 该内容为现有 技术, 此处不再详述。
步骤 102: 依据优先级较高的应用对系统资源的占用情况调节 Wi-Fi通 信速率;
具体为: 移动终端检测到有优先级较高的应用在进行时, 依据已知的 优先级较高的应用对系统资源的占用情况调节 Wi-Fi通信速率,如果优先级 较高的应用需占用较多的系统资源,则将 Wi-Fi通信速率调节较低,之后执 行步骤 103; 如果优先级较高的应用需占用较少的系统资源, 则将 Wi-Fi通 信速率调节地相对高些, 并执行步骤 103。 当然, 这里不管怎样调节, 最终 所得的 Wi-Fi通信速率都小于调节前的值。
本发明所述调节 Wi-Fi通信速率的方法为:为 Wi-Fi应用设置一个睡眠 时间, 通过调节睡眠时间的长短来调节 Wi-Fi通信速率的大小, 简单来说, 睡眠时间越长, Wi-Fi通信速率越小; 睡眠时间越短, Wi-Fi通信速率越大。
但睡眠时间不可太长, 也不可太短, 这里, 将睡眠时间的上限, 即最 大值设为不大于网络通信超时时间 MaxSleepTime; 将睡眠时间的下限, 即 最小值设为不小于 CPU应用切换过程所需的时间。 这样设置的原因为: 如 果睡眠时间太长, 超过了网络通信超时时间 MaxSleepTime, 网络通信将会 中断, 与现有技术中提到的中断 Wi-Fi应用情况相同; 如果睡眠时间太短, 小于 CPU应用切换过程所需的时间, 反而会增大 CPU的负担, Wi-Fi应用 对 CPU的占用率不但不会下降, 反而会增加。
这里, CPU资源的分配是由操作系统自动完成的, 只要 Wi-Fi应用进 入睡眠状态, 则放弃 CPU的使用, 操作系统会自动转入其它应用, 这样, 优先级较高的应用将有更多机会获得 CPU的使用权。
本发明中, 不考虑睡眠时间已达到 MaxSleepTime时, Wi-Fi应用所释 放出的 CPU资源仍不够优先级较高的应用所需求的情况, 因为移动终端会 限制两个应用的并发, 因此肯定不存在 CPU资源不够用的情况。
下面对 Wi-Fi应用过程中调节 Wi-Fi通信速率的具体流程进行描述。 首先对现有移动终端中 Wi-Fi功能模块,即 Wi-Fi应用的工作环境进行 简单描述。
Wi-Fi应用工作在传输控制协议(TCP ) /因特网互联协议(IP )栈的介 质访问控制 (MAC )层, 与 IP通信层处于上下层关系, 分别对应基于 MA C协议的发送接口和接收接口, 这里将所述两个接口分别定义为 Wi-Fi sen d和 Wi-Fi— recv。
其中, 所述 Wi-Fi— send由 IP通信层实现, Wi-Fi— recv由 Wi-Fi应用实 现, 对于 Wi-Fi应用来说, 通过侦测 Wi-Fi— recv的动作发现 IP通信层向下 发起的通信要求, 经过封装等数据处理操作之后, 将相关数据发送到网络 侧; 另一方面, 从网络侧传输来的数据经解析等数据处理操作后, 通过 Wi -Fi send发送给 IP通信层。
本发明中, 所述的调节 Wi-Fi通信速率的操作为: 在 Wi-Fi应用运行过 程中的数据处理操作之后插入睡眠时间,令 Wi-Fi应用进入睡眠状态,具体 为:
Wi-Fi— recv被调用, IP通信层经 Wi-Fi— recv向下发送数据, Wi-Fi功能 模块对 IP通信层下发的数据执行封装等数据处理操作, 并依据设置的睡眠 时间进入睡眠状态, 睡眠时间结束后, 再将处理后的相关数据发送到网络 侧;
Wi-Fi功能模块接收到网络侧发来的数据后, 首先对数据执行解析等数 据处理操作, 之后进入睡眠状态, 睡眠时间结束后, 再将处理后的相关数 据通过 Wi-Fi— send发送给 IP通信层。
此外, 也可在上述执行数据处理操作之前先进入睡眠状态, 之后再执 行数据处理操作。
步骤 103: Wi-Fi通信速率调节过程结束。
进一步地, 如果移动终端确定优先级较高的应用已结束, 则可再将 Wi-Fi通信速率调节为原来的值;
具体的, 如果移动终端检测到优先级较高的应用已结束、 或优先级较 高的应用结束后可通知移动终端, 移动终端再通过调节睡眠时间将 Wi-Fi 通信速率调节为原来的较大值。
这里,如果原来 Wi-Fi应用中没有睡眠操作,移动终端则可将睡眠时间 再调节为 0。
下面结合一具体实施例对本发明的方法进行描述。
本实施例涉及两个应用, 分别为: Wi-Fi应用, 特指通过网络下载文件 的 Wi-Fi应用, 以及优先级较高的可视电话应用; 所述可视电话应用包括通 话的建立和视频图像的处理等。 移动终端为了提高 Wi-Fi用户的体验效果, 针对自身的资源配置, 已尽量提高 Wi-Fi的通信速度, 在 Wi-Fi应用全速工 作时, CPU的消耗很大。
当移动终端正在执行网络下载文件的 Wi-Fi应用时,移动终端发起可视 电话应用, 对于该移动终端的使用优先级来说, 希望在保证可视电话流畅 工作的基础上, 能维持网络下载文件的 Wi-Fi应用持续运行。 由于该移动终 端的系统配置并不足以保证在 Wi-Fi应用全速工作的情况下,完成流畅的视 频通话, 有可能会产生视频马赛克或通话音质下降的问题。 该实施例的方 法流程如下:
Wi-Fi应用运行过程中, 移动终端用户发起可视电话业务, 此时移动终 端则可检测到可视电话应用在进行; 移动终端向 Wi-Fi应用发送一个通知, 通知 Wi-Fi应用当前有优先级更高的应用在进行,需依据设置的睡眠时间调 节 Wi-Fi通信速率; Wi-Fi应用依据通知中的睡眠时间实现对 Wi-Fi通信速 率的调节, 减少自身对 CPU的占有率。 其中, 所述通知中包括移动终端依 据优先级较高的应用对系统资源的占用情况设置的睡眠时间。
进一步地, 当可视电话业务结束后,移动终端可再向 Wi-Fi应用发送一 个通知, 通知 Wi-Fi应用可重新调节 Wi-Fi通信速率, 例如: 可再将 Wi-Fi 通信速率调节为原来可视电话应用触发前的较大 Wi-Fi通信速率。
为实现上述方法,本发明还提供了一种对移动终端 Wi-Fi应用进行处理 的装置, 如图 2所示, 该装置包括: 检测模块和调节模块; 其中,
所述检测模块,用于 Wi-Fi应用运行过程中,检测当前是否有优先级较 高的应用在进行, 确定有优先级较高的应用在进行时, 通知调节模块; 所述调节模块, 用于依据优先级较高的应用对系统资源的占用情况调 节 Wi-Fi通信速率。
所述调节模块调节 Wi-Fi通信速率的过程为:
调节模块为 Wi-Fi应用设置一个睡眠时间 ,通过调节睡眠时间的长短来 调节 Wi-Fi通信速率的大小。
所述调节模块通过设置睡眠时间调节 Wi-Fi通信速率的过程, 具体为: 调节模块在 Wi-Fi应用运行过程中的数据处理操作之前或之后插入睡 眠时间。
所述检测模块在检测过程中, 进一步用于确定优先级较高的应用已结 束时, 通知调节模块; 相应的,
所述调节模块,进一步用于收到检测模块的通知后,将 Wi-Fi通信速率 调节为原来的值。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种对移动终端 Wi-Fi应用进行处理的方法, 其特征在于, 该方法 包括:
在 Wi-Fi应用运行过程中,移动终端检测当前是否有优先级较高的应用 在进行, 确定有优先级较高的应用在进行时, 依据优先级较高的应用对系 统资源的占用情况调节 Wi-Fi通信速率。
2、 根据权利要求 1所述的对移动终端 Wi-Fi应用进行处理的方法, 其 特征在于, 所述调节 Wi-Fi通信速率的方法为:
为 Wi-Fi应用设置睡眠时间, 通过调节睡眠时间的长短来调节 Wi-Fi 通信速率的大小。
3、 根据权利要求 2所述的对移动终端 Wi-Fi应用进行处理的方法, 其 特征在于, 所设置的睡眠时间越长, Wi-Fi通信速率越小; 所设置的睡眠时 间越短, Wi-Fi通信速率越大。
4、根据权利要求 2或 3所述的对移动终端 Wi-Fi应用进行处理的方法, 其特征在于, 所述通过设置睡眠时间调节 Wi-Fi通信速率的方法为:
在 Wi-Fi应用运行过程中的数据处理操作之前、 或之后插入睡眠时间。
5、根据权利要求 2或 3所述的对移动终端 Wi-Fi应用进行处理的方法, 其特征在于, 所述睡眠时间不大于网络通信超时时间, 且不小于中央处理 单元 CPU应用切换过程所需的时间。
6、根据权利要求 1、 2或 3所述的对移动终端 Wi-Fi应用进行处理的方 法, 其特征在于, 所述移动终端在检测过程中, 该方法进一步包括:
如果移动终端确定优先级较高的应用已结束,则再将 Wi-Fi通信速率调 节为原来的值。
7、 一种对移动终端 Wi-Fi应用进行处理的装置, 其特征在于, 该装置 包括: 检测模块和调节模块; 其中, 所述检测模块,用于在 Wi-Fi应用运行过程中,检测当前是否有优先级 较高的应用在进行, 确定有优先级较高的应用在进行时, 通知调节模块; 所述调节模块, 用于依据优先级较高的应用对系统资源的占用情况调 节 Wi-Fi通信速率。
8、 根据权利要求 7所述的对移动终端 Wi-Fi应用进行处理的装置, 其 特征在于, 所述调节模块调节 Wi-Fi通信速率的过程为:
调节模块为 Wi-Fi应用设置睡眠时间 ,通过调节睡眠时间的长短来调节 Wi-Fi通信速率的大小。
9、 根据权利要求 8所述的对移动终端 Wi-Fi应用进行处理的装置, 其 特征在于,所述调节模块通过设置睡眠时间调节 Wi-Fi通信速率的过程,为: 在 Wi-Fi应用运行过程中的数据处理操作之前、 或之后插入睡眠时间。
10、 根据权利要求 7、 8或 9所述的对移动终端 Wi-Fi应用进行处理的 装置, 其特征在于, 所述检测模块在检测过程中, 进一步用于确定优先级 较高的应用已结束时, 通知调节模块;
相应的, 所述调节模块, 进一步用于收到检测模块的通知后, 将 Wi-Fi 通信速率调节为原来的值。
PCT/CN2010/077658 2010-07-22 2010-10-11 一种对移动终端wi-fi应用进行处理的方法和装置 WO2012009884A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010236790.5 2010-07-22
CN2010102367905A CN101896000A (zh) 2010-07-22 2010-07-22 一种对移动终端Wi-Fi应用进行处理的方法和装置

Publications (1)

Publication Number Publication Date
WO2012009884A1 true WO2012009884A1 (zh) 2012-01-26

Family

ID=43105015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/077658 WO2012009884A1 (zh) 2010-07-22 2010-10-11 一种对移动终端wi-fi应用进行处理的方法和装置

Country Status (2)

Country Link
CN (1) CN101896000A (zh)
WO (1) WO2012009884A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005027431A1 (fr) * 2003-09-16 2005-03-24 Utstarcom (China) Co. Ltd. Procede permettant de commander un acces hertzien fonde sur une priorite multi-services dans un systeme universel de telecommunication mobile (systeme umts)
WO2005034444A1 (en) * 2003-10-03 2005-04-14 Fujitsu Limited Virtually centralized uplink scheduling
CN101557652A (zh) * 2008-04-11 2009-10-14 深圳富泰宏精密工业有限公司 提高手机无线传输速率的装置及方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005027431A1 (fr) * 2003-09-16 2005-03-24 Utstarcom (China) Co. Ltd. Procede permettant de commander un acces hertzien fonde sur une priorite multi-services dans un systeme universel de telecommunication mobile (systeme umts)
WO2005034444A1 (en) * 2003-10-03 2005-04-14 Fujitsu Limited Virtually centralized uplink scheduling
CN101557652A (zh) * 2008-04-11 2009-10-14 深圳富泰宏精密工业有限公司 提高手机无线传输速率的装置及方法

Also Published As

Publication number Publication date
CN101896000A (zh) 2010-11-24

Similar Documents

Publication Publication Date Title
EP2524478B1 (en) Explicit congestion notification based rate adaptation using binary marking in communication systems
EP3981190B1 (en) Method and apparatus for enforcement of maximum number of protocol data unit sessions per network slice in a communication system
WO2022001175A1 (zh) 数据包发送的方法、装置
WO2020038132A1 (zh) 数据传输方法及相关装置
WO2017054286A1 (zh) 一种语音通话承载方法及装置
JP6595112B2 (ja) データ送信方法及び装置並びに端末
WO2015172376A1 (zh) 语音业务的用户设备接入网络的方法和装置
JP5517951B2 (ja) Tcp送信制御装置及びtcp送信制御方法
WO2021242430A1 (en) Connected isochronous stream swapping
WO2013178108A1 (zh) 一种基于wlan网络的速率控制系统和方法
US8792437B2 (en) Synchronized use of a wireless channel by multiple applications
US20160242228A1 (en) RRC Status Control Method, Apparatus and Device
EP2403292B1 (en) Application-based wireless device initiated radio resource management
KR101434339B1 (ko) 무선 통신을 위한 전력 소비의 최적화 및 mips조건의감소를 위한 방법 및 시스템
JP2005080309A (ja) 携帯端末機のパケット受信方法
WO2020074003A1 (zh) 一种移动终端共享网络连接的方法及移动终端
WO2012009884A1 (zh) 一种对移动终端wi-fi应用进行处理的方法和装置
WO2010130230A1 (zh) 一种向用户提供服务的方法及装置
CA3205155A1 (en) Method and apparatus for survival time and communication service availability
WO2023179019A1 (zh) 支持低时延业务的用户面配置方法、系统、基站及介质
WO2024065524A1 (zh) 分组数据汇聚协议实体建立、分组数据汇聚协议实体建立指示装置以及方法
TW200930111A (en) Method for distributing network resource and user equipment thereof
WO2013078637A1 (zh) 去激活用户承载的方法和装置
WO2014206136A1 (zh) 一种终端能力的协商方法、确定方法和终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10854914

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10854914

Country of ref document: EP

Kind code of ref document: A1