[go: up one dir, main page]

CN107547745A - Resource allocation method and Related product - Google Patents

Resource allocation method and Related product Download PDF

Info

Publication number
CN107547745A
CN107547745A CN201710771367.7A CN201710771367A CN107547745A CN 107547745 A CN107547745 A CN 107547745A CN 201710771367 A CN201710771367 A CN 201710771367A CN 107547745 A CN107547745 A CN 107547745A
Authority
CN
China
Prior art keywords
network
destination application
target application
scene
operating system
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
CN201710771367.7A
Other languages
Chinese (zh)
Other versions
CN107547745B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710771367.7A priority Critical patent/CN107547745B/en
Publication of CN107547745A publication Critical patent/CN107547745A/en
Application granted granted Critical
Publication of CN107547745B publication Critical patent/CN107547745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例公开了一种资源配置方法及相关产品。方法包括:移动终端的操作系统接收正在运行的目标应用程序发送的场景数据包,场景数据包包括目标应用程序的场景关联信息;操作系统根据场景关联信息确定目标应用程序的网络资源优化策略;操作系统按照网络资源优化策略调整目标应用程序的无线保真Wi‑Fi网络资源的分配。本申请实施例有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。

The embodiment of the present application discloses a resource configuration method and related products. The method includes: the operating system of the mobile terminal receives a scene data packet sent by a running target application, and the scene data packet includes scene association information of the target application; the operating system determines the network resource optimization strategy of the target application according to the scene association information; the operating system adjusts the allocation of wireless fidelity Wi‑Fi network resources of the target application according to the network resource optimization strategy. The embodiment of the present application is conducive to improving the real-time and accuracy of the mobile terminal controlling the target application to optimize the network performance.

Description

资源配置方法及相关产品Resource allocation method and related products

技术领域technical field

本申请涉及移动终端技术领域,具体涉及资源配置方法及相关产品。This application relates to the technical field of mobile terminals, in particular to resource allocation methods and related products.

背景技术Background technique

随着智能手机相关技术的快速发展,越来越多的应用被安装在用户手机中,如阅读类应用、支付类应用、游戏类应用、音乐类应用等,人们的衣食住行已经与手机密不可分。With the rapid development of smart phone-related technologies, more and more applications are installed in users' mobile phones, such as reading applications, payment applications, game applications, music applications, etc. People's basic necessities of life are already inseparable from mobile phones.

发明内容Contents of the invention

本申请实施例提供了一种资源配置方法及相关产品,以期提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。Embodiments of the present application provide a resource configuration method and related products, in order to improve the real-time performance and accuracy of network performance optimization by controlling target application programs of mobile terminals.

第一方面,本申请实施例提供一种资源配置方法,应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,所述方法包括:In the first aspect, the embodiment of the present application provides a method for configuring resources, which is applied to a mobile terminal, where an operating system and one or more application programs run on the mobile terminal, and the method includes:

所述操作系统接收正在运行的目标应用程序发送的场景数据包,所述场景数据包包括所述目标应用程序的场景关联信息;The operating system receives a scene data packet sent by a target application that is running, and the scene data packet includes scene association information of the target application;

所述操作系统根据所述场景关联信息确定所述目标应用程序的网络资源优化策略;The operating system determines the network resource optimization policy of the target application program according to the scene association information;

所述操作系统按照所述网络资源优化策略调整所述目标应用程序的无线保真Wi-Fi网络资源。The operating system adjusts the Wi-Fi network resources of the target application program according to the network resource optimization policy.

第二方面,本申请实施例提供一种资源配置装置,应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,所述资源配置装置包括处理单元和通信单元,In the second aspect, the embodiment of the present application provides a resource configuration device, which is applied to a mobile terminal, where an operating system and one or more application programs run on the mobile terminal, and the resource configuration device includes a processing unit and a communication unit,

所述处理单元,用于通过所述通信单元接收正在运行的目标应用程序发送的场景数据包,所述场景数据包包括所述目标应用程序的场景关联信息;以及根据所述场景关联信息确定所述目标应用程序的网络资源优化策略;以及按照所述网络资源优化策略调整所述目标应用程序的无线保真Wi-Fi网络资源。The processing unit is configured to receive, through the communication unit, a scene data packet sent by a running target application, where the scene data packet includes scene association information of the target application; and determine the scene data packet according to the scene association information. The network resource optimization strategy of the target application program; and adjust the wireless fidelity Wi-Fi network resources of the target application program according to the network resource optimization strategy.

第三方面,本申请实施例提供一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured by The processor executes, and the program includes instructions for executing the steps in any method of the first aspect of the embodiments of the present application.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤,所述计算机包括移动终端。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables the computer to execute the For example, part or all of the steps described in any method of the first aspect, the computer includes a mobile terminal.

第五方面,本申请实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括移动终端。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the Part or all of the steps described in any method of the first aspect of the application embodiment. The computer program product may be a software installation package, and the computer includes a mobile terminal.

可以看出,本申请实施例中,移动终端的操作系统空间的操作系统首先接收正在运行的目标应用程序发送的场景数据包,场景数据包包括正在运行的目标应用程序的场景关联信息,其次,操作系统根据场景关联信息确定正在运行的目标应用程序的网络资源优化策略,最后,操作系统按照网络资源优化策略调整正在运行的目标应用程序的Wi-Fi网络资源的分配。有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。It can be seen that in the embodiment of the present application, the operating system in the operating system space of the mobile terminal first receives the scene data packet sent by the running target application, and the scene data packet includes the scene related information of the running target application, and secondly, The operating system determines the network resource optimization strategy of the running target application program according to the scene association information, and finally, the operating system adjusts the allocation of Wi-Fi network resources of the running target application program according to the network resource optimization strategy. The method is beneficial to improving the real-time performance and accuracy of network performance optimization for the mobile terminal to control the target application program.

附图说明Description of drawings

下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings involved in the embodiments of the present application will be briefly introduced below.

图1A是一种智能手机的程序运行空间的示意图;FIG. 1A is a schematic diagram of a program running space of a smart phone;

图1B是一种安卓系统的系统架构图;FIG. 1B is a system architecture diagram of an Android system;

图2是本申请实施例提供的一种资源配置方法的流程示意图;FIG. 2 is a schematic flowchart of a resource allocation method provided by an embodiment of the present application;

图3是本申请实施例公开的一种资源配置方法的流程示意图;FIG. 3 is a schematic flowchart of a resource allocation method disclosed in an embodiment of the present application;

图4是本申请实施例公开的一种资源配置方法的流程示意图;FIG. 4 is a schematic flowchart of a resource allocation method disclosed in an embodiment of the present application;

图5是本申请实施例公开的一种移动终端的结构示意图;FIG. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;

图6是本申请实施例公开的一种资源配置装置的功能单元组成框图;FIG. 6 is a block diagram of functional units of a resource configuration device disclosed in an embodiment of the present application;

图7是本申请实施例公开的一种智能手机的结构示意图。FIG. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。本发明实施例所涉及到的操作系统是对硬件资源进行统一管理,并向用户提供业务接口的软件系统。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals. The operating system involved in the embodiments of the present invention is a software system that uniformly manages hardware resources and provides service interfaces to users.

如图1A所示,目前智能手机等移动终端一般设置有程序运行空间,该程序运行空间包括用户空间和操作系统空间,其中,用户空间运行有一个或多个应用程序,该一个或多个应用程序为移动终端安装的第三方应用程序,操作系统空间运行有移动终端的操作系统。该移动终端具体可以运行安卓Android系统、苹果公司开发的移动操作系统iOS等,此处不做唯一限定。如图1B所示,以所述移动终端运行有Android系统为例,对应的用户空间包括该Android系统中的应用层(Applications),操作系统空间可以包括该Android系统中的应用程序框架层(Application Framework)、系统运行库层(包括系统运行库层Libraries和Android运行时Android Runtime)、Linux内核层(Linux Kernel)。其中,应用层上包括各类与用户直接交互的应用程序,或由Java语言编写的运行于后台的服务程序。例如,智能手机上实现的常见基本功能的程序,诸如短消息业务(Short Messaging Service,SMS)短信,电话拨号,图片浏览器,日历,游戏,地图,万维网(World Wide Web,Web)浏览器等程序,以及开发人员开发的其他应用程序。应用程序框架层提供开发Android应用程序所需的一系列类库,能够用于重用组件,也可以通过继承实现个性化的扩展。系统运行库层是应用程序框架的支撑,为Android系统中的各个组件提供服务。系统运行库层由系统类库和Android运行时构成。Android运行时包含核心库和Dalvik虚拟机两部分。Linux内核层用于实现硬件设备驱动,进程和内存管理,网络协议栈,电源管理,无线通信等核心功能。As shown in Figure 1A, at present, mobile terminals such as smart phones are generally provided with a program running space, and the program running space includes a user space and an operating system space, wherein, the user space runs one or more application programs, and the one or more application programs The program is a third-party application program installed on the mobile terminal, and the operating system space runs the operating system of the mobile terminal. Specifically, the mobile terminal can run the Android system, the mobile operating system iOS developed by Apple, etc., and there is no exclusive limitation here. As shown in Figure 1B, with the Android system running on the mobile terminal as an example, the corresponding user space includes the application layer (Applications) in the Android system, and the operating system space can include the application framework layer (Applications) in the Android system. Framework), system runtime library layer (including system runtime library layer Libraries and Android runtime Android Runtime), Linux kernel layer (Linux Kernel). Among them, the application layer includes various application programs that directly interact with users, or service programs written in Java language that run in the background. For example, programs of common basic functions implemented on smart phones, such as short message service (Short Messaging Service, SMS) text messages, telephone dialing, picture browsers, calendars, games, maps, World Wide Web (World Wide Web, Web) browsers, etc. programs, and other applications developed by developers. The application framework layer provides a series of class libraries required for developing Android applications, which can be used to reuse components, and can also implement personalized extensions through inheritance. The system runtime layer is the support of the application framework and provides services for various components in the Android system. The system runtime layer consists of the system class library and the Android runtime. The Android runtime consists of two parts, the core library and the Dalvik virtual machine. The Linux kernel layer is used to implement core functions such as hardware device drivers, process and memory management, network protocol stack, power management, and wireless communication.

所述第三方应用程序所创建的进程一开始是运行在用户空间的,当它要执行网络发送数据、读取磁盘资源等动作时,必须通过调用write、send等由操作系统提供的标准接口函数来完成,即由CPU调用操作系统空间的代码来完成用户的请求操作。可见,第三方应用程序想要调用操作系统提供的功能,只能调用其提供的标准接口函数。同时,操作系统不知道第三方应用程序具体在执行哪些功能,目标应用程序也不能命令操作系统执行特殊的操作,这两者是相互独立的,这使得操作系统无法区分目标应用程序的内部运行场景,只能使用一套标准的参数去适配,无法针对目标应用程序的内部运行场景进行针对性的性能优化。The process created by the third-party application initially runs in user space. When it wants to perform operations such as sending data over the network and reading disk resources, it must call write, send, and other standard interface functions provided by the operating system. To complete, that is, the CPU calls the code in the operating system space to complete the user's requested operation. It can be seen that if a third-party application wants to call the functions provided by the operating system, it can only call the standard interface functions provided by it. At the same time, the operating system does not know what functions the third-party application program is performing, and the target application program cannot command the operating system to perform special operations. The two are independent of each other, which makes it impossible for the operating system to distinguish the internal operating scenarios of the target application program , can only use a set of standard parameters to adapt, and cannot perform targeted performance optimization for the internal operating scenarios of the target application.

针对所述情况,本申请实施例提出一种针对移动终端的目标应用程序的资源配置方法,该方法中,操作系统接收正在运行的目标应用程序发送的场景数据包,场景数据包包括目标应用程序的场景关联信息;操作系统根据场景关联信息确定目标应用程序的网络资源优化策略;操作系统按照网络资源优化策略调整目标应用程序的Wi-Fi网络资源的分配。实现由操作系统针对目标应用程序在运行过程中的Wi-Fi网络的性能进行优化,有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。In view of the above situation, the embodiment of the present application proposes a resource configuration method for the target application program of the mobile terminal. In this method, the operating system receives the scene data packet sent by the running target application program, and the scene data package includes the target application program. The scene related information; the operating system determines the network resource optimization strategy of the target application program according to the scene related information; the operating system adjusts the allocation of Wi-Fi network resources of the target application program according to the network resource optimization strategy. Realizing that the operating system optimizes the performance of the Wi-Fi network during the operation of the target application program, which is conducive to improving the real-time and accuracy of network performance optimization for the mobile terminal to control the target application program.

下面结合附图对本申请实施例进行介绍。Embodiments of the present application will be described below in conjunction with the accompanying drawings.

请参阅图2,图2是本申请实施例提供了一种资源配置方法的流程示意图,应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,如图所示,本资源配置方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a resource configuration method provided by an embodiment of the present application, which is applied to a mobile terminal, and the mobile terminal runs an operating system and one or more application programs. As shown in the figure, This resource allocation method includes:

S201,所述操作系统接收正在运行的所述目标应用程序发送的场景数据包,所述场景数据包包括目标应用程序的场景关联信息。S201. The operating system receives a scene data packet sent by the running target application, where the scene data packet includes scene association information of the target application.

其中,目标应用程序是指安装在移动终端的用户空间的第三方应用程序,该第三方应用程序例如可以是即时通讯类应用、游戏类应用等,该第三方应用程序可以由用户安装,也可以由开发人员在移动终端出厂前预装,此处不做唯一限定。The target application program refers to a third-party application program installed in the user space of the mobile terminal. The third-party application program may be an instant messaging application, a game application, etc., and the third-party application program may be installed by the user or may be It is pre-installed by the developer before the mobile terminal leaves the factory, and there is no unique limitation here.

其中,场景数据包可以包括正在运行的目标应用程序的场景关联信息,还可以包括以下至少一种:关键性能参数、数据格式标识、启动信息、资源更新信息、账号登陆信息、界面类型信息、目标应用程序的行为信息(如数据发送行为信息、数据接收行为信息等)等,此处不做唯一限定。此外,场景数据包的格式例如可以是Java脚本对象标记(JavaScriptObject Notation,JSON)、协议缓冲区(ProtocolBuffer,Protobuf)、自定义格式等数据传输格式,此处不做唯一限定。Wherein, the scene data packet may include scene association information of the running target application program, and may also include at least one of the following: key performance parameters, data format identification, startup information, resource update information, account login information, interface type information, target The behavior information of the application program (such as data sending behavior information, data receiving behavior information, etc.) is not limited here. In addition, the format of the scene data packet may be, for example, a data transmission format such as JavaScript Object Notation (JSON), Protocol Buffer (ProtocolBuffer, Protobuf), a custom format, etc., which is not limited here.

在一个可能的示例中,所述目标应用程序和所述操作系统之间包括预设数据通道;所述操作系统接收正在运行的所述目标应用程序发送的场景数据包,包括:所述操作系统接收通过所述预设数据通道接收所述正在运行的所述目标应用程序发送的场景数据包。In a possible example, a preset data channel is included between the target application program and the operating system; the operating system receives the scene data packet sent by the running target application program, including: the operating system receiving the scene data packet sent by the running target application program through the preset data channel.

其中,所述预设数据通道为目标应用程序正在运行时,目标应用程序与操作系统之间建立的有效的数据传输链路,目标应用程序不在运行后,该数据传输链路会被清除。Wherein, the preset data channel is an effective data transmission link established between the target application program and the operating system when the target application program is running, and the data transmission link will be cleared when the target application program is not running.

在本可能的示例中,所述目标应用程序包括数据连接模块,所述操作系统包括数据连接管理模块;所述方法还包括:所述数据连接管理模块与所述数据连接模块建立所述预设数据通道。In this possible example, the target application program includes a data connection module, and the operating system includes a data connection management module; the method further includes: the data connection management module and the data connection module establish the preset data channel.

在本可能的示例中,目标应用程序还可以包括数据收集模块、数据整理模块、优先级管理模块、数据接收模块,其中,数据收集模块用于收集目标应用程序在运行时的关键信息;数据整理模块用于整理收集到的关键信息,如合并重复的信息,删除冗余的信息等;优先级管理模块用于根据关键信息的重要程度对收集到的关键信息进行分类,优先处理优先级高的关键信息,过滤优先级较低的关键信息,或者在数据包生成过程中减少优先级较低的关键信息的使用;数据接收模块用于接收并解析操作系统发送的数据,并将其传递给目标应用程序内部。In this possible example, the target application program may also include a data collection module, a data collation module, a priority management module, and a data receiving module, wherein the data collection module is used to collect key information of the target application program at runtime; data collation The module is used to organize the collected key information, such as merging duplicate information, deleting redundant information, etc.; the priority management module is used to classify the collected key information according to the importance of the key information, and prioritize the high priority Key information, filter key information with lower priority, or reduce the use of key information with lower priority during packet generation; the data receiving module is used to receive and parse the data sent by the operating system, and deliver it to the target inside the application.

S202,所述操作系统根据所述场景关联信息确定所述目标应用程序的网络资源优化策略。S202. The operating system determines a network resource optimization policy of the target application program according to the scene association information.

其中,网络资源优化策略是指用于提高所述正在运行的目标应用程序的网络运行性能的资源配置策略,如网络带宽的调整量、CPU资源调整策略及GPU资源调整策略,此处不做唯一限定。Wherein, the network resource optimization strategy refers to a resource allocation strategy for improving the network operation performance of the running target application program, such as the adjustment amount of the network bandwidth, the CPU resource adjustment strategy and the GPU resource adjustment strategy, which are not unique here limited.

S203,所述操作系统按照所述网络资源优化策略调整所述目标应用程序的Wi-Fi网络资源的分配。S203. The operating system adjusts the allocation of Wi-Fi network resources of the target application according to the network resource optimization policy.

其中,操作系统可以通过间接通信方式与操作系统空间的内核层通信,调整该目标应用程序的Wi-Fi网络资源的配置,间接通信方式是指通过调用代理服务来间接通信,如网络资源中的Wi-Fi子系统与操作系统不运行在同一个系统内,需要通过一些代理的方式,间接访问这些系统资源,操作系统中提供了Wi-Fi的代理服务,通过调用该代理服务的接口来间接和Wi-Fi子系统通信。Among them, the operating system can communicate with the kernel layer of the operating system space through indirect communication to adjust the configuration of the Wi-Fi network resources of the target application program. The indirect communication means indirect communication by calling proxy services, such as The Wi-Fi subsystem and the operating system do not run in the same system, and need to indirectly access these system resources through some proxy methods. Communicate with the Wi-Fi subsystem.

可以看出,本申请实施例中,移动终端的操作系统空间的操作系统首先接收正在运行的目标应用程序发送的场景数据包,场景数据包包括正在运行的目标应用程序的场景关联信息,其次,操作系统根据场景关联信息确定正在运行的目标应用程序的网络资源优化策略,最后,操作系统按照网络资源优化策略调整正在运行的目标应用程序的Wi-Fi网络资源的分配。由于场景数据包包括目标应用程序的场景关联信息,且场景数据包由正在运行的目标应用程序发送,操作系统能够根据场景关联信息精细化确定目标应用程序的当前的运行场景的网络资源优化策略,并由操作系统按照该网络资源优化策略实时调整目标应用程序的Wi-Fi网络资源的配置,从而实现由操作系统对运行过程中的目标应用程序进行实时的性能优化,有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。It can be seen that in the embodiment of the present application, the operating system in the operating system space of the mobile terminal first receives the scene data packet sent by the running target application, and the scene data packet includes the scene related information of the running target application, and secondly, The operating system determines the network resource optimization strategy of the running target application program according to the scene association information, and finally, the operating system adjusts the allocation of Wi-Fi network resources of the running target application program according to the network resource optimization strategy. Since the scene data packet includes the scene association information of the target application program, and the scene data packet is sent by the running target application program, the operating system can finely determine the network resource optimization strategy of the current running scene of the target application program according to the scene association information, And the operating system adjusts the Wi-Fi network resource configuration of the target application program in real time according to the network resource optimization strategy, so as to realize the real-time performance optimization of the target application program in the running process by the operating system, which is conducive to improving the control target of the mobile terminal. The real-time and precision of network performance optimization for applications.

在一个可能的示例中,所述操作系统包括管理模块和多个策略模块,每个策略模块用于确定一个应用程序的网络资源优化策略;所述场景关联信息包括所述目标应用程序的应用标识;所述操作系统根据所述场景关联信息确定所述目标应用程序的网络资源优化策略,包括:所述管理模块获取所述场景数据包中的所述场景关联信息;所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块;所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略。In a possible example, the operating system includes a management module and a plurality of policy modules, and each policy module is used to determine a network resource optimization policy of an application program; the scene association information includes the application identification of the target application program The operating system determines the network resource optimization policy of the target application program according to the scene association information, including: the management module acquires the scene association information in the scene data packet; the management module determines the A policy module corresponding to the application identifier among the plurality of policy modules; the policy module determines the network resource optimization policy of the target application program according to the scene association information.

其中,多个策略模块中的每个策略模块可适用于一个应用程序,如第一策略模块适用于第一游戏应用程序,第二策略模块适用于第二游戏应用程序等。Wherein, each of the multiple strategy modules is applicable to one application, for example, the first strategy module is applicable to the first game application, the second strategy module is applicable to the second game application, and so on.

其中,所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块,包括:所述管理模块以应用标识为查询标识,查询预设的策略模块和应用标识之间的映射关系,确定场景数据包中的应用标识对应的策略模块。Wherein, the management module determines the policy module corresponding to the application identification among the plurality of policy modules, including: the management module uses the application identification as a query identification, and queries the mapping between the preset policy module and the application identification relationship, and determine the policy module corresponding to the application identifier in the scene data package.

可见,本示例中,通过划分多个策略模块能够实现对不同类型应用的精细化控制,且移动终端无需同时加载全部策略模块,仅需要加载移动终端前台运行的目标应用程序对应的策略模块,有利于降低资源占用,提高资源利用率和控制效率。It can be seen that in this example, fine control of different types of applications can be achieved by dividing multiple policy modules, and the mobile terminal does not need to load all the policy modules at the same time, but only needs to load the policy modules corresponding to the target applications running in the foreground of the mobile terminal. It is beneficial to reduce resource occupation, improve resource utilization and control efficiency.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和Wi-Fi网络的网络信息;所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略,包括:所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes the freeze information of the target application program and the network information of the Wi-Fi network; the policy module determines the network resources of the target application program according to the scene association information The optimization strategy includes: the strategy module determines the network resource optimization strategy of the target application program according to the network information and the freeze information.

在一个可能的示例中,所述Wi-Fi网络的网络信息包括移动终端当前接入的Wi-Fi网络的第一网络带宽,以及所述移动终端分配给所述目标应用程序的第二网络带宽;所述卡顿信息包括卡顿界面的界面标识和卡顿时长;所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略,包括:所述策略模块根据所述第一网络带宽、所述第二网络带宽以及所述卡顿时长,确定所述目标应用程序的网络带宽的第一参考调整量;所述策略模块根据所述界面标识确定所述目标应用程序的网络带宽的第二参考调整量;所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the network information of the Wi-Fi network includes the first network bandwidth of the Wi-Fi network currently accessed by the mobile terminal, and the second network bandwidth allocated to the target application by the mobile terminal The freeze information includes the interface identifier and freeze duration of the freeze interface; the strategy module determines the network resource optimization strategy of the target application program according to the network information and the freeze information, including: the strategy The module determines the first reference adjustment amount of the network bandwidth of the target application program according to the first network bandwidth, the second network bandwidth and the freeze duration; the policy module determines the The second reference adjustment amount of the network bandwidth of the target application program; the policy module determines the adjustment amount of the network bandwidth of the target application program according to the first reference adjustment amount and the second reference adjustment amount; the policy module A network resource optimization policy of the target application program is determined according to the adjustment amount.

所述策略模块根据所述界面标识确定所述目标应用程序的网络带宽的第二参考调整量,包括:所述策略模块确定界面标识所属的运行场景,以该运行场景为查询标识,查询预设的运行场景域第二参考调整量之间的映射关系,获取所述界面标识对应的第二参考调整量。The strategy module determines the second reference adjustment amount of the network bandwidth of the target application program according to the interface identifier, including: the strategy module determines the running scenario to which the interface identifier belongs, and uses the running scenario as a query identifier to query the preset The mapping relationship between the running scenario and the second reference adjustment amount is used to obtain the second reference adjustment amount corresponding to the interface identifier.

例如,根据不同运行场景的重要程度,分别为各个运行场景预设一个参考调整量,即第二参考调整量,该第二参考调整量可以为由移动终端基于历史记录智能统计确定的调整值,或者由用户主动设置的调整值,此处不做唯一限定。For example, according to the importance of different operating scenarios, a reference adjustment amount is preset for each operating scenario, that is, a second reference adjustment amount. The second reference adjustment amount may be an adjustment value determined by the mobile terminal based on intelligent statistics of historical records, Or the adjustment value actively set by the user, which is not uniquely limited here.

可见,本示例中,由于第一参考调整量是根据第一网络带宽和第二网络带宽确定,第一网络带宽和第二网络带宽为当前网络环境参数,即第一参考调整量关联当前网络环境,由于第二参考调整量是根据界面标识确定,而界面标识关联目标应用程序的运行场景,即第二参考调整量关联目标应用程序的运行场景,由于调整量是根据第一参考调整量和第二参考调整量确定,故而该调整量全面考虑当前网络环境和目标应用程序的运行场景,避免生成的网络资源优化策略不适合当前网络环境,或者不适配目标应用程序的当前的运行场景,从而有利于提高移动终端控制目标应用程序进行网络资源优化的全面性和准确度。It can be seen that in this example, since the first reference adjustment amount is determined according to the first network bandwidth and the second network bandwidth, the first network bandwidth and the second network bandwidth are parameters of the current network environment, that is, the first reference adjustment amount is associated with the current network environment , since the second reference adjustment amount is determined according to the interface identifier, and the interface identifier is associated with the running scenario of the target application, that is, the second reference adjustment amount is associated with the running scenario of the target application program, since the adjustment amount is determined according to the first reference adjustment amount and the second Two, the reference adjustment amount is determined, so the adjustment amount fully considers the current network environment and the running scenario of the target application program, so as to avoid the generated network resource optimization strategy not being suitable for the current network environment, or not suitable for the current running scenario of the target application program, thereby It is beneficial to improve the comprehensiveness and accuracy of optimizing network resources by controlling the target application program of the mobile terminal.

举例来说,所述第一网络带宽的下行速率为512kb,分配给所述第二网络带宽的下行速率为200kb,剩余的312kb可以根据卡顿时长进行分配;如0s-500ms区间对应分配0-50kb的带宽,500ms-1s区间对应分配50kb-100kb的带宽,此处不做唯一限定。For example, the downlink rate of the first network bandwidth is 512kb, the downlink rate allocated to the second network bandwidth is 200kb, and the remaining 312kb can be allocated according to the duration of the freeze; for example, the interval of 0s-500ms corresponds to the allocation of 0- For 50kb bandwidth, the 500ms-1s interval corresponds to the allocation of 50kb-100kb bandwidth, which is not uniquely limited here.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和场景标识;所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略,包括:所述策略模块根据所述场景标识和所述卡顿信息确定所述目标应用程序的网络资源优化策略;所述策略模块所述卡顿信息确定所述目标应用程序的网络带宽的第一参考调整量;所述策略模块根据所述场景标识确定所述目标应用程序的网络带宽的第二参考调整量;所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes stall information and scene identification of the target application; the policy module determines the network resource optimization policy of the target application according to the scene association information, including: The policy module determines the network resource optimization policy of the target application program according to the scene identification and the stall information; the policy module determines the first reference adjustment of the network bandwidth of the target application program based on the stall information amount; the policy module determines the second reference adjustment amount of the network bandwidth of the target application according to the scene identifier; the policy module determines the second reference adjustment amount according to the first reference adjustment amount and the second reference adjustment amount The adjustment amount of the network bandwidth of the target application program; the strategy module determines the network resource optimization strategy of the target application program according to the adjustment amount.

所述策略模块根据所述场景标识确定所述目标应用程序的网络带宽的第二参考调整量,包括:所述策略模块确定场景标识所属的运行场景,以该运行场景为查询标识,查询预设的运行场景域第二参考调整量之间的映射关系,获取所述场景标识对应的第二参考调整量。The strategy module determines the second reference adjustment amount of the network bandwidth of the target application program according to the scenario identifier, including: the strategy module determines the running scenario to which the scenario identifier belongs, and uses the running scenario as a query identifier to query the preset The mapping relationship between the running scenario and the second reference adjustment amount is used to obtain the second reference adjustment amount corresponding to the scenario identifier.

例如,根据不同运行场景的重要程度,分别为各个运行场景预设一个参考调整量,即第二参考调整量,该第二参考调整量可以为由移动终端基于历史记录智能统计确定的调整值,或者由用户主动设置的调整值,此处不做唯一限定。For example, according to the importance of different operating scenarios, a reference adjustment amount is preset for each operating scenario, that is, a second reference adjustment amount. The second reference adjustment amount may be an adjustment value determined by the mobile terminal based on intelligent statistics of historical records, Or the adjustment value actively set by the user, which is not uniquely limited here.

可见,本示例中,由于第一参考调整量是根据所述卡顿信息确定,卡顿信息为当前网络环境参数,即第一参考调整量关联当前网络环境,由于第二参考调整量是根据场景标识确定,而场景标识关联目标应用程序的运行场景,即第二参考调整量关联目标应用程序的运行场景,由于调整量是根据第一参考调整量和第二参考调整量确定,故而该调整量全面考虑当前网络环境和目标应用程序的运行场景,避免生成的网络资源优化策略不适合当前网络环境,或者不适配目标应用程序的当前的运行场景,从而有利于提高移动终端控制目标应用程序进行网络资源优化的全面性和准确度。It can be seen that in this example, since the first reference adjustment amount is determined according to the freeze information, the freeze information is a parameter of the current network environment, that is, the first reference adjustment amount is associated with the current network environment, and since the second reference adjustment amount is determined according to the scene The identification is determined, and the scene identification is associated with the running scene of the target application program, that is, the second reference adjustment amount is associated with the running scene of the target application program. Since the adjustment amount is determined according to the first reference adjustment amount and the second reference adjustment amount, the adjustment amount Fully consider the current network environment and the running scenario of the target application, and avoid the generated network resource optimization strategy not suitable for the current network environment, or not suitable for the current running scenario of the target application, which is conducive to improving the control of the target application by the mobile terminal. Comprehensiveness and accuracy of network resource optimization.

在一个可能的示例中,所述目标应用程序包括数据连接模块,所述操作系统包括数据连接管理模块;所述方法还包括:所述数据连接管理模块接收所述数据连接模块发送的预设数据通道建立请求;所述数据连接管理模块响应所述预设数据通道建立请求,建立所述预设数据通道。In a possible example, the target application program includes a data connection module, and the operating system includes a data connection management module; the method further includes: the data connection management module receives preset data sent by the data connection module A channel establishment request: the data connection management module responds to the preset data channel establishment request and establishes the preset data channel.

在一个可能的示例中,所述场景数据包包括数据格式标识;所述管理模块确定所述场景数据包中的所述场景关联信息,包括:所述管理模块按照数据格式标识所指示的数据格式解析所述场景数据包以确定所述场景关联信息。In a possible example, the scene data packet includes a data format identifier; the management module determining the scene association information in the scene data packet includes: the management module according to the data format indicated by the data format identifier Parsing the scene data packet to determine the scene association information.

其中,数据格式标识例如可以是所述JSON、Protobuf等,此处不做限定。Wherein, the data format identifier may be, for example, the JSON, Protobuf, etc., which are not limited here.

可见,本示例中,由于数据格式标识能够使得操作系统在接收到场景数据包后,快速识别出该场景数据包所使用的数据传输格式,从而实时解析该场景数据包中的场景关联信息,降低处理时延,有利于提高数据处理效率,提高针对运行中的目标应用程序进行资源调整的实时性。It can be seen that in this example, the data format identifier can enable the operating system to quickly identify the data transmission format used by the scene data packet after receiving the scene data packet, thereby analyzing the scene related information in the scene data packet in real time, reducing the The processing delay is conducive to improving the efficiency of data processing and improving the real-time performance of resource adjustment for running target applications.

与所述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种资源配置方法的流程示意图,应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,所述操作系统包括管理模块和多个策略模块,每个策略模块用于确定一个应用程序中的网络资源优化策略。如图所示,本资源配置方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a resource configuration method provided in the embodiment of the present application, which is applied to a mobile terminal, and an operating system runs on the mobile terminal. As well as one or more application programs, the operating system includes a management module and multiple policy modules, each policy module is used to determine a network resource optimization policy in an application program. As shown in the figure, this resource configuration method includes:

S301,所述操作系统接收正在运行的所述目标应用程序发送的场景数据包,所述场景数据包包括目标应用程序的场景关联信息。S301. The operating system receives a scene data packet sent by the running target application, where the scene data packet includes scene association information of the target application.

其中,所述操作系统包括管理模块和多个策略模块,每个策略模块用于确定相同应用类型的一个应用程序中的网络资源优化策略。Wherein, the operating system includes a management module and multiple policy modules, and each policy module is used to determine a network resource optimization policy in an application program of the same application type.

其中,所述场景关联信息包括所述目标应用程序的应用标识。Wherein, the scene association information includes the application identification of the target application program.

其中,所述场景关联信息包括所述目标应用程序的卡顿信息和Wi-Fi网络的网络信息。Wherein, the scene association information includes the freeze information of the target application program and the network information of the Wi-Fi network.

S302,所述管理模块获取所述场景数据包中的所述场景关联信息。S302. The management module acquires the scene association information in the scene data package.

S303,所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块。S303. The management module determines a policy module corresponding to the application identifier among the plurality of policy modules.

S304,所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略。S304. The policy module determines a network resource optimization policy of the target application program according to the network information and the freeze information.

S305,所述操作系统按照所述网络资源优化策略调整所述目标应用程序的Wi-Fi网络资源的分配。S305. The operating system adjusts allocation of Wi-Fi network resources of the target application according to the network resource optimization policy.

可以看出,本申请实施例中,由于场景数据包包括目标应用程序的场景关联信息,且场景数据包由正在运行的目标应用程序发送,操作系统能够根据场景关联信息精细化确定目标应用程序的当前的运行场景的网络资源优化策略,并由操作系统按照该网络资源优化策略实时调整目标应用程序的Wi-Fi网络资源的配置,从而实现由操作系统对运行过程中的目标应用程序进行实时的性能优化,有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。It can be seen that in the embodiment of the present application, since the scene data packet includes the scene association information of the target application program, and the scene data packet is sent by the running target application program, the operating system can refine the target application program according to the scene association information. The network resource optimization strategy of the current running scenario, and the operating system adjusts the configuration of the Wi-Fi network resources of the target application program in real time according to the network resource optimization strategy, so that the operating system performs real-time monitoring of the target application program during operation. The performance optimization is beneficial to improve the real-time performance and accuracy of network performance optimization for the mobile terminal to control the target application program.

此外,通过划分多个策略模块能够实现对不同类型应用的精细化控制,且移动终端无需同时加载全部策略模块,仅需要加载移动终端前台运行的目标应用程序对应的策略模块,有利于降低移动终端的资源占用,提高资源利用率和控制效率。In addition, fine control of different types of applications can be achieved by dividing multiple policy modules, and the mobile terminal does not need to load all the policy modules at the same time, but only needs to load the policy modules corresponding to the target applications running in the foreground of the mobile terminal, which is conducive to reducing the number of mobile terminals. Occupancy of resources, improve resource utilization and control efficiency.

此外,由于数据格式标识能够使得操作系统在接收到场景数据包后,快速识别出该场景数据包所使用的数据传输格式,从而实时解析该场景数据包中的场景关联信息,降低处理时延,有利于提高数据处理效率,提高针对运行中的目标应用程序进行资源调整的实时性。In addition, because the data format identifier can enable the operating system to quickly identify the data transmission format used by the scene data packet after receiving the scene data packet, so as to analyze the scene related information in the scene data packet in real time and reduce the processing delay. It is beneficial to improve data processing efficiency and improve the real-time performance of resource adjustment for running target application programs.

与所述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种资源配置方法的流程示意图,应用于移动终端,所述移动终端上运行有操作系统和一个或多个目标应用程序,所述操作系统包括管理模块、多个策略模块和数据连接管理模块,每个策略模块用于确定相同应用类型的至少一个应用程序中的应用程序的网络资源优化策略,所述目标应用程序包括数据连接模块,所述场景数据包包括目标应用程序的场景关联信息,所述场景数据包包括数据格式标识。如图所示,本资源配置方法包括:Consistent with the embodiment shown in FIG. 2, please refer to FIG. 4. FIG. 4 is a schematic flowchart of a resource configuration method provided in the embodiment of the present application, which is applied to a mobile terminal, and an operating system runs on the mobile terminal. and one or more target application programs, the operating system includes a management module, a plurality of policy modules and a data connection management module, each policy module is used to determine network resource optimization for applications in at least one application program of the same application type strategy, the target application program includes a data connection module, the scene data package includes scene association information of the target application program, and the scene data package includes a data format identifier. As shown in the figure, this resource configuration method includes:

S401,所述数据连接管理模块与所述数据连接模块建立预设数据通道。S401. The data connection management module establishes a preset data channel with the data connection module.

S402,所述数据连接管理模块通过所述预设数据通道接收所述目标应用程序发送的场景数据包。S402. The data connection management module receives the scene data packet sent by the target application through the preset data channel.

S403,所述管理模块获取所述场景数据包中的所述场景关联信息。S403. The management module acquires the scene association information in the scene data package.

其中,所述场景关联信息包括所述目标应用程序的应用标识。Wherein, the scene association information includes the application identification of the target application program.

其中,所述场景关联信息包括所述目标应用程序的卡顿信息和Wi-Fi网络的网络信息。Wherein, the scene association information includes the freeze information of the target application program and the network information of the Wi-Fi network.

其中,所述Wi-Fi网络的网络信息包括移动终端当前接入的Wi-Fi网络的第一网络带宽,以及所述移动终端分配给所述目标应用程序的第二网络带宽;所述卡顿信息包括卡顿界面的界面标识和卡顿时长;Wherein, the network information of the Wi-Fi network includes the first network bandwidth of the Wi-Fi network currently accessed by the mobile terminal, and the second network bandwidth allocated to the target application program by the mobile terminal; The information includes the interface logo and the duration of the freeze interface;

S404,所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块。S404. The management module determines a policy module corresponding to the application identifier among the plurality of policy modules.

S405,所述策略模块根据所述第一网络带宽、所述第二网络带宽以及所述卡顿时长,确定所述目标应用程序的网络带宽的第一参考调整量。S405. The policy module determines a first reference adjustment amount of the network bandwidth of the target application program according to the first network bandwidth, the second network bandwidth, and the freeze duration.

S406,所述策略模块根据所述界面标识确定所述目标应用程序的网络带宽的第二参考调整量。S406. The policy module determines a second reference adjustment amount of the network bandwidth of the target application program according to the interface identifier.

S407,所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量。S407. The policy module determines an adjustment amount of the network bandwidth of the target application program according to the first reference adjustment amount and the second reference adjustment amount.

S408,所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。S408. The policy module determines a network resource optimization policy of the target application program according to the adjustment amount.

S409,所述操作系统按照所述网络资源优化策略调整所述目标应用程序的Wi-Fi网络资源的分配。S409, the operating system adjusts the allocation of Wi-Fi network resources of the target application according to the network resource optimization policy.

可以看出,本申请实施例中,由于场景数据包包括目标应用程序的场景关联信息,且场景数据包由正在运行的目标应用程序发送,操作系统能够根据场景关联信息精细化确定目标应用程序的当前的运行场景的网络资源优化策略,并由操作系统按照该网络资源优化策略实时调整目标应用程序的Wi-Fi网络资源的配置,从而实现由操作系统对运行过程中的目标应用程序进行实时的性能优化,有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。It can be seen that in the embodiment of the present application, since the scene data packet includes the scene association information of the target application program, and the scene data packet is sent by the running target application program, the operating system can refine the target application program according to the scene association information. The network resource optimization strategy of the current running scenario, and the operating system adjusts the configuration of the Wi-Fi network resources of the target application program in real time according to the network resource optimization strategy, so that the operating system performs real-time monitoring of the target application program during operation. The performance optimization is beneficial to improve the real-time performance and accuracy of network performance optimization for the mobile terminal to control the target application program.

此外,通过划分多个策略模块能够实现对不同类型应用的精细化控制,且移动终端无需同时加载全部策略模块,仅需要加载移动终端前台运行的目标应用程序对应的策略模块,有利于降低移动终端的资源占用,提高资源利用率和控制效率。In addition, fine control of different types of applications can be achieved by dividing multiple policy modules, and the mobile terminal does not need to load all the policy modules at the same time, but only needs to load the policy modules corresponding to the target applications running in the foreground of the mobile terminal, which is conducive to reducing the number of mobile terminals. Occupancy of resources, improve resource utilization and control efficiency.

此外,由管理模块对场景数据包进行统一处理,策略模块仅需要直接接收策略模块的处理结果,如此设置有利于轻量化和精细化策略模块的功能,便于对策略模块进行维护、添加等操作,提高系统稳定性。In addition, the scene data packets are processed uniformly by the management module, and the policy module only needs to directly receive the processing results of the policy module. This setting is conducive to lightweight and refined functions of the policy module, and facilitates operations such as maintenance and addition of the policy module. Improve system stability.

此外,应用标识用于确定对应的网络资源优化策略包,场景标识用于进一步精细化定位到具体的适配该场景的网络资源优化策略,仅需要通过简答的查找算法即可根据场景关联信息快速定位到具体的网络资源优化策略,延时低,准确度高,有利于提高移动终端控制目标应用程序进行运行优化的实时性和准确度。In addition, the application identifier is used to determine the corresponding network resource optimization strategy package, and the scenario identifier is used to further refine and locate the specific network resource optimization strategy that adapts to the scenario. It only needs to use the short-answer search algorithm to link information based on the scenario Quickly locate a specific network resource optimization strategy, with low delay and high accuracy, which is conducive to improving the real-time and accuracy of the mobile terminal controlling the target application program for operation optimization.

此外,由于第一参考调整量是根据第一网络带宽和第二网络带宽确定,第一网络带宽和第二网络带宽为当前网络环境参数,即第一参考调整量关联当前网络环境,由于第二参考调整量是根据界面标识确定,而界面标识关联目标应用程序的运行场景,即第二参考调整量关联目标应用程序的运行场景,由于调整量是根据所述第一参考调整量和所述第二参考调整量确定,故而该调整量全面考虑当前网络环境和目标应用程序的运行场景,避免生成的网络资源优化策略不适合当前网络环境,或者不适配目标应用程序的当前的运行场景,从而有利于提高移动终端控制目标应用程序进行网络资源优化的全面性和准确度。In addition, since the first reference adjustment amount is determined according to the first network bandwidth and the second network bandwidth, the first network bandwidth and the second network bandwidth are parameters of the current network environment, that is, the first reference adjustment amount is associated with the current network environment, because the second The reference adjustment amount is determined according to the interface identifier, and the interface identifier is associated with the running scenario of the target application, that is, the second reference adjustment amount is associated with the running scenario of the target application program. Since the adjustment amount is based on the first reference adjustment amount and the second Two, the reference adjustment amount is determined, so the adjustment amount fully considers the current network environment and the running scenario of the target application program, so as to avoid the generated network resource optimization strategy not being suitable for the current network environment, or not suitable for the current running scenario of the target application program, thereby It is beneficial to improve the comprehensiveness and accuracy of optimizing network resources by controlling the target application program of the mobile terminal.

与所述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种移动终端的结构示意图,该移动终端运行有一个或多个应用程序和操作系统,如图所示,该移动终端包括处理器、存储器、通信接口以及一个或多个程序,其中,所述一个或多个程序不同于所述一个或多个应用程序,且所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行以下步骤的指令:Consistent with the embodiments shown in FIG. 2, FIG. 3, and FIG. 4, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present application. Application program and operating system, as shown in the figure, the mobile terminal includes a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are different from the one or more application programs, and The one or more programs are stored in the memory and are configured to be executed by the processor, the programs including instructions for performing the following steps:

接收正在运行的所述目标应用程序发送的场景数据包,所述场景数据包包括目标应用程序的场景关联信息;receiving a scene data packet sent by the running target application, where the scene data packet includes scene association information of the target application;

根据所述场景关联信息确定所述目标应用程序的网络资源优化策略;determining a network resource optimization policy of the target application program according to the scene association information;

按照所述网络资源优化策略调整所述目标应用程序的Wi-Fi网络资源的分配。Adjust the allocation of Wi-Fi network resources of the target application program according to the network resource optimization policy.

可以看出,本申请实施例中,由于场景数据包包括目标应用程序的场景关联信息,且场景数据包由正在运行的目标应用程序发送,操作系统能够根据场景关联信息精细化确定目标应用程序的当前的运行场景的网络资源优化策略,并由操作系统按照该网络资源优化策略实时调整目标应用程序的Wi-Fi网络资源的配置,从而实现由操作系统对运行过程中的目标应用程序进行实时的性能优化,有利于提高移动终端控制目标应用程序进行网络性能优化的实时性和精确度。It can be seen that in the embodiment of the present application, since the scene data packet includes the scene association information of the target application program, and the scene data packet is sent by the running target application program, the operating system can refine the target application program according to the scene association information. The network resource optimization strategy of the current running scenario, and the operating system adjusts the configuration of the Wi-Fi network resources of the target application program in real time according to the network resource optimization strategy, so that the operating system performs real-time monitoring of the target application program during operation. The performance optimization is beneficial to improve the real-time performance and accuracy of network performance optimization for the mobile terminal to control the target application program.

在一个可能的示例中,所述操作系统包括管理模块和多个策略模块,每个策略模块用于确定相同应用类型的一个应用程序中的网络资源优化策略;在所述根据所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述程序中的指令具体用于执行以下操作:控制所述管理模块确定所述场景数据包中的所述场景关联信息;以及控制所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块;以及控制所述策略模块确定所述场景标识对应的网络资源优化策略为所述目标应用程序的网络资源优化策略。In a possible example, the operating system includes a management module and multiple policy modules, and each policy module is used to determine a network resource optimization policy in an application program of the same application type; In terms of determining the network resource optimization strategy of the target application program, the instructions in the program are specifically used to perform the following operations: control the management module to determine the scene related information in the scene data packet; and control the management The module determines the policy module corresponding to the application identifier among the plurality of policy modules; and controls the policy module to determine that the network resource optimization strategy corresponding to the scenario identifier is the network resource optimization strategy of the target application program.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和Wi-Fi网络的网络信息;在控制所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述程序中的指令具体用于执行以下操作:控制所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes the freeze information of the target application program and the network information of the Wi-Fi network; In terms of network resource optimization policy, the instructions in the program are specifically used to perform the following operations: control the policy module to determine the network resource optimization policy of the target application program according to the network information and the freeze information.

在一个可能的示例中,所述Wi-Fi网络的网络信息包括移动终端当前接入的Wi-Fi网络的第一网络带宽,以及所述移动终端分配给所述目标应用程序的第二网络带宽;所述卡顿信息包括卡顿界面的界面标识和卡顿时长;在控制所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略方面,所述程序中的指令具体用于执行以下操作:控制所述策略模块根据所述第一网络带宽、所述第二网络带宽以及所述卡顿时长,确定所述目标应用程序的网络带宽的第一参考调整量;以及控制所述策略模块根据所述界面标识确定所述目标应用程序的网络带宽的第二参考调整量;以及控制所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;以及控制所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the network information of the Wi-Fi network includes the first network bandwidth of the Wi-Fi network currently accessed by the mobile terminal, and the second network bandwidth allocated to the target application by the mobile terminal The freeze information includes the interface identifier and freeze duration of the freeze interface; in terms of controlling the strategy module to determine the network resource optimization strategy of the target application program according to the network information and the freeze information, the The instructions in the program are specifically used to perform the following operations: control the policy module to determine the first reference of the network bandwidth of the target application program according to the first network bandwidth, the second network bandwidth and the freeze duration an adjustment amount; and controlling the policy module to determine a second reference adjustment amount of the network bandwidth of the target application according to the interface identifier; and controlling the policy module to determine a second reference adjustment amount according to the first reference adjustment amount and the second reference The adjustment amount determines the adjustment amount of the network bandwidth of the target application program; and the control policy module determines the network resource optimization policy of the target application program according to the adjustment amount.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和场景标识;在控制所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述程序中的指令具体用于执行以下操作:控制所述策略模块所述卡顿信息确定所述目标应用程序的网络带宽的第一参考调整量;以及控制所述策略模块根据所述场景标识确定所述目标应用程序的网络带宽的第二参考调整量;以及控制所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;以及控制所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes the stall information and scene identification of the target application program; in terms of controlling the policy module to determine the network resource optimization policy of the target application program according to the scene association information , the instructions in the program are specifically used to perform the following operations: control the freeze information of the policy module to determine a first reference adjustment amount of the network bandwidth of the target application program; and control the policy module according to the scenario identifying a second reference adjustment for determining the network bandwidth of the target application; and controlling the policy module to determine an adjustment of the network bandwidth of the target application based on the first reference adjustment and the second reference adjustment amount; and controlling the policy module to determine the network resource optimization policy of the target application program according to the adjustment amount.

在一个可能的示例中,在控制所述目标应用程序包括数据连接模块,包括数据连接管理模块方面;所述程序中的指令具体用于执行以下操作:控制所述数据连接管理模块接收所述数据连接模块发送的预设数据通道建立请求;以及控制所述数据连接管理模块响应所述预设数据通道建立请求,建立所述预设数据通道。In a possible example, in terms of controlling the target application program to include a data connection module, including a data connection management module; the instructions in the program are specifically used to perform the following operations: control the data connection management module to receive the data A preset data channel establishment request sent by the connection module; and controlling the data connection management module to respond to the preset data channel establishment request to establish the preset data channel.

在一个可能的示例中,所述场景数据包包括数据格式标识;在所述控制所述管理模块确定所述场景数据包中的所述场景关联信息方面,所述程序中的指令具体用于执行以下操作:控制所述管理模块按照所述数据格式标识所指示的数据格式解析所述场景数据包以确定所述场景关联信息。In a possible example, the scene data package includes a data format identifier; in terms of controlling the management module to determine the scene-associated information in the scene data package, the instructions in the program are specifically used to execute The following operation: control the management module to parse the scene data packet according to the data format indicated by the data format identifier to determine the scene association information.

所述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现所述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions of the embodiments of the present application from the perspective of executing the process on the method side. It can be understood that, in order to realize the functions described above, the mobile terminal includes corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that the present application can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware 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 application.

本申请实施例可以根据所述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the mobile terminal into functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

在采用集成的单元的情况下,图6示出了所述实施例中所涉及的资源配置装置的一种可能的功能单元组成框图。资源配置装置600应用于移动终端,所述移动终端上运行有操作系统以及一个或多个应用程序,所述资源配置装置600包括:处理单元602和通信单元603。处理单元602用于对资源配置装置的动作进行控制管理,例如,处理单元602用于支持资源配置装置执行图2中的步骤S201-S203、图3中的步骤S301-S305、图4中的步骤S401-S409和/或用于本文所描述的技术的其它过程。资源配置装置还可以包括存储单元601,用于存储程序代码和数据。In the case of using integrated units, FIG. 6 shows a block diagram of a possible composition of functional units of the resource configuration device involved in the embodiment. The resource configuration apparatus 600 is applied to a mobile terminal on which an operating system and one or more application programs run, and the resource configuration apparatus 600 includes: a processing unit 602 and a communication unit 603 . The processing unit 602 is used to control and manage the actions of the resource configuration device. For example, the processing unit 602 is used to support the resource configuration device to execute steps S201-S203 in FIG. 2 , steps S301-S305 in FIG. 3 , and steps in FIG. 4 S401-S409 and/or other processes for the techniques described herein. The resource configuration device may also include a storage unit 601 for storing program codes and data.

所述处理单元602,用于通过所述通信单元603接收正在运行的所述目标应用程序发送的场景数据包,所述场景数据包包括目标应用程序的场景关联信息;以及用于根据所述场景关联信息确定所述目标应用程序的网络资源优化策略;以及用于按照所述网络资源优化策略调整所述目标应用程序的Wi-Fi网络资源的分配。The processing unit 602 is configured to receive, through the communication unit 603, a scene data packet sent by the running target application, the scene data packet includes scene association information of the target application; The association information determines the network resource optimization policy of the target application program; and is used to adjust the allocation of Wi-Fi network resources of the target application program according to the network resource optimization policy.

在一个可能的示例中,所述操作系统包括管理模块和多个策略模块,每个策略模块用于确定相同应用类型的一个应用程序中的网络资源优化策略;在控制所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述处理单元602具体用于:控制所述管理模块确定所述场景数据包中的所述场景关联信息;以及控制所述管理模块确定所述多个策略模块中与所述应用标识对应的策略模块;以及控制所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略。In a possible example, the operating system includes a management module and a plurality of policy modules, and each policy module is used to determine a network resource optimization policy in an application program of the same application type; In terms of the network resource optimization policy of the target application program, the processing unit 602 is specifically configured to: control the management module to determine the scene association information in the scene data packet; and control the management module to determine the multiple a policy module corresponding to the application identifier in the policy module; and controlling the policy module to determine the network resource optimization policy of the target application program according to the scene association information.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和Wi-Fi网络的网络信息;在所述控制所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述处理单元602具体用于:控制所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes the freeze information of the target application program and the network information of the Wi-Fi network; Regarding the network resource optimization policy of the program, the processing unit 602 is specifically configured to: control the policy module to determine the network resource optimization policy of the target application program according to the network information and the freeze information.

在一个可能的示例中,所述Wi-Fi网络的网络信息包括移动终端当前接入的Wi-Fi网络的第一网络带宽,以及所述移动终端分配给所述目标应用程序的第二网络带宽;所述卡顿信息包括卡顿界面的界面标识和卡顿时长;在所述控制所述策略模块根据所述网络信息和所述卡顿信息确定所述目标应用程序的网络资源优化策略方面,所述处理单元602具体用于:控制所述策略模块根据所述第一网络带宽、所述第二网络带宽以及所述卡顿时长,确定所述目标应用程序的网络带宽的第一参考调整量;以及控制所述策略模块根据所述界面标识确定所述目标应用程序的网络带宽的第二参考调整量;以及控制所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;以及控制所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the network information of the Wi-Fi network includes the first network bandwidth of the Wi-Fi network currently accessed by the mobile terminal, and the second network bandwidth allocated to the target application by the mobile terminal The freeze information includes the interface identifier and freeze duration of the freeze interface; in terms of the control strategy module determining the network resource optimization strategy of the target application program according to the network information and the freeze information, The processing unit 602 is specifically configured to: control the policy module to determine a first reference adjustment amount of the network bandwidth of the target application program according to the first network bandwidth, the second network bandwidth, and the freeze duration and controlling the policy module to determine a second reference adjustment amount of the network bandwidth of the target application program according to the interface identifier; and controlling the policy module according to the first reference adjustment amount and the second reference adjustment amount determining an adjustment amount of the network bandwidth of the target application program; and controlling the policy module to determine a network resource optimization policy of the target application program according to the adjustment amount.

在一个可能的示例中,所述场景关联信息包括所述目标应用程序的卡顿信息和场景标识;在所述控制所述策略模块根据所述场景关联信息确定所述目标应用程序的网络资源优化策略方面,所述处理单元602具体用于:控制所述策略模块根据所述场景标识和所述卡顿信息确定所述目标应用程序的网络资源优化策略;以及控制所述策略模块所述卡顿信息确定所述目标应用程序的网络带宽的第一参考调整量;以及控制所述策略模块根据所述场景标识确定所述目标应用程序的网络带宽的第二参考调整量;以及控制所述策略模块根据所述第一参考调整量和所述第二参考调整量确定所述目标应用程序的网络带宽的调整量;以及控制所述策略模块根据所述调整量确定所述目标应用程序的网络资源优化策略。In a possible example, the scene association information includes the stall information and scene identification of the target application; in the control strategy module, the network resource optimization of the target application is determined according to the scene association information In terms of policy, the processing unit 602 is specifically configured to: control the policy module to determine the network resource optimization policy of the target application program according to the scene identifier and the stall information; and control the stall information to determine a first reference adjustment amount of the network bandwidth of the target application; and control the policy module to determine a second reference adjustment amount of the network bandwidth of the target application according to the scene identifier; and control the policy module Determine the adjustment amount of the network bandwidth of the target application program according to the first reference adjustment amount and the second reference adjustment amount; and control the policy module to determine the network resource optimization of the target application program according to the adjustment amount Strategy.

在一个可能的示例中,所述目标应用程序包括数据连接模块,在所述控制所述操作系统包括数据连接管理模块方面;所述处理单元602具体用于:控制所述数据连接管理模块接收所述数据连接模块发送的预设数据通道建立请求;以及控制所述数据连接管理模块响应所述预设数据通道建立请求,建立所述预设数据通道。In a possible example, the target application program includes a data connection module, and in terms of controlling the operating system to include a data connection management module; the processing unit 602 is specifically configured to: control the data connection management module to receive the The preset data channel establishment request sent by the data connection module; and controlling the data connection management module to respond to the preset data channel establishment request to establish the preset data channel.

在一个可能的示例中,所述场景数据包包括数据格式标识;在所述控制所述管理模块确定所述场景数据包中的所述场景关联信息方面,所述处理单元602具体用于:控制所述管理模块按照所述数据格式标识所指示的数据格式解析所述场景数据包以确定所述场景关联信息。In a possible example, the scene data packet includes a data format identifier; in terms of controlling the management module to determine the scene association information in the scene data packet, the processing unit 602 is specifically configured to: control The management module parses the scene data packet according to the data format indicated by the data format identifier to determine the scene association information.

在一个可能的示例中,所述目标应用程序和所述操作系统之间包括预设数据通道;在所述通过所述通信单元603接收正在运行的所述目标应用程序发送的场景数据包方面,所述处理单元602具体用于:通过所述通信单元603通过所述预设数据通道接收所述正在运行的所述目标应用程序发送的场景数据包。In a possible example, a preset data channel is included between the target application program and the operating system; in terms of receiving the scene data packet sent by the running target application program through the communication unit 603, The processing unit 602 is specifically configured to: use the communication unit 603 to receive the scene data packet sent by the running target application program through the preset data channel.

其中,所述目标应用程序包括数据连接模块,所述操作系统包括数据连接管理模块;所述资源配置装置还包括通道建立单元,所述通道建立单元,用于控制数据连接管理模块与所述数据连接模块建立所述预设数据通道。Wherein, the target application program includes a data connection module, the operating system includes a data connection management module; the resource configuration device further includes a channel establishment unit, and the channel establishment unit is used to control the data connection management module and the The connection module establishes the preset data channel.

其中,处理单元602可以是处理器或控制器,通信单元603可以是处理器和程序运行空间之间的内部通信接口,如处理器与操作系统空间的通信接口,或者处理器与用户空间的通信接口等,存储单元601可以是存储器。Wherein, the processing unit 602 may be a processor or a controller, and the communication unit 603 may be an internal communication interface between the processor and the program running space, such as a communication interface between the processor and the operating system space, or a communication between the processor and the user space. interface, etc., the storage unit 601 may be a memory.

请参阅图7,图7是本申请实施例提供了一种智能手机700的结构示意图,所述智能手机700包括:壳体710、触控显示屏720、主板730、电池740和副板750,主板730上设置有前置摄像头731、处理器732、存储器733、电源管理芯片734等,副板上设置有振子751、一体音腔752、VOOC闪充接口753和指纹识别模组754。Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a smart phone 700 provided by an embodiment of the present application. The smart phone 700 includes: a housing 710 , a touch screen 720 , a main board 730 , a battery 740 and a sub-board 750 , The main board 730 is provided with a front camera 731, processor 732, memory 733, power management chip 734, etc., and the sub-board is provided with a vibrator 751, an integrated sound cavity 752, a VOOC flash charging interface 753 and a fingerprint recognition module 754.

其中,该智能手机包括目标应用程序和操作系统,目标应用程序运行于用户空间,操作系统运行于操作系统空间,操作系统包括操作系统。操作系统接收正在运行的目标应用程序发送的场景数据包,场景数据包包括目标应用程序的场景关联信息;操作系统根据场景关联信息确定目标应用程序的网络资源优化策略;操作系统按照网络资源优化策略调整目标应用程序的Wi-Fi网络资源的分配。Wherein, the smart phone includes a target application program and an operating system, the target application program runs in a user space, the operating system runs in an operating system space, and the operating system includes an operating system. The operating system receives the scene data packet sent by the running target application, and the scene data packet includes the scene association information of the target application; the operating system determines the network resource optimization strategy of the target application according to the scene association information; Adjust the allocation of Wi-Fi network resources to the target application.

所述处理器732是智能手机的控制中心,利用各种接口和线路连接整个智能手机的各个部分,通过运行或执行存储在存储器733内的软件程序和/或模块,以及调用存储在存储器733内的数据,执行智能手机的各种功能和处理数据,从而对智能手机进行整体监控。可选的,处理器732可包括一个或多个处理单元;优选的,处理器732可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器732中。该处理器732例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable GateArray,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 732 is the control center of the smart phone, and uses various interfaces and lines to connect various parts of the whole smart phone. data, perform various functions of the smartphone and process data, thereby monitoring the smartphone as a whole. Optionally, the processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the modem processor may not be integrated into the processor 732 . The processor 732 can be, for example, a central processing unit (Central Processing Unit, CPU), a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable Gate array (Field Programmable GateArray, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and so on.

所述存储器733可用于存储软件程序以及模块,处理器732通过运行存储在存储器733的软件程序以及模块,从而执行智能手机的各种功能应用以及数据处理。存储器733可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据智能手机的使用所创建的数据等。此外,存储器733可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。该存储器733例如可以是随机存取存储器(RandomAccess Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(ElectricallyEPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质。The memory 733 can be used to store software programs and modules, and the processor 732 executes various functional applications and data processing of the smart phone by running the software programs and modules stored in the memory 733 . The memory 733 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; the data storage area may store data created according to the use of the smartphone, and the like. In addition, the memory 733 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. The memory 733 can be, for example, random access memory (Random Access Memory, RAM), flash memory, read only memory (Read Only Memory, ROM), erasable programmable read only memory (Erasable Programmable ROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括移动终端。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments , the above computer includes a mobile terminal.

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括移动终端。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes a mobile terminal.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above 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 integrated. to 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 or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed 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 this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

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

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of resource allocation method, it is characterised in that being run applied to mobile terminal, on the mobile terminal has operating system And one or more application programs, methods described include:
The operating system receives the contextual data bag that the destination application being currently running is sent, and the contextual data bag includes The scene relating information of the destination application;
The operating system determines the network resource optimization strategy of the destination application according to the scene relating information;
The operating system according to destination application described in the network resource optimization Developing Tactics Wireless Fidelity Wi-Fi nets Network resource.
2. according to the method for claim 1, it is characterised in that the operating system includes management module and multiple tactful moulds Block;The scene relating information includes the application identities of the destination application;Each policy module is used to determine that one is answered With the network resource optimization strategy of program;The operating system determines the destination application according to the scene relating information Network resource optimization strategy, including:
The management module obtains the scene relating information in the contextual data bag;
The management module determines policy module corresponding with the application identities in the multiple policy module;
The policy module determines the network resource optimization strategy of the destination application according to the scene relating information.
3. according to the method for claim 2, it is characterised in that the scene relating information includes the destination application Interim card information and Wi-Fi network the network information;The policy module determines the target according to the scene relating information The network resource optimization strategy of application program, including:
The policy module determines the Internet resources of the destination application according to the network information and the interim card information Optimisation strategy.
4. according to the method for claim 3, it is characterised in that the network information of the Wi-Fi network includes mobile terminal The first network bandwidth for the Wi-Fi network being currently accessed, and the mobile terminal distribute to the of the destination application Two network bandwidths;The interim card information includes the interface identification and interim card duration at interim card interface;The policy module is according to The network information and the interim card information determine the network resource optimization strategy of the destination application, including:
The policy module determines institute according to the first network bandwidth, second network bandwidth and the interim card duration State the network bandwidth of destination application first refers to adjustment amount;
The policy module determines the second reference adjustment of the network bandwidth of the destination application according to the interface identification Amount;
The policy module determines the intended application journey with reference to adjustment amount and described second according to described first with reference to adjustment amount The adjustment amount of the network bandwidth of sequence;
The policy module determines the network resource optimization strategy of the destination application according to the adjustment amount.
5. according to the method for claim 2, it is characterised in that the scene relating information includes the destination application Interim card information and scene identity;The policy module determines the net of the destination application according to the scene relating information Network resource optimization strategy, including:
The policy module determines the Internet resources of the destination application according to the scene identity and the interim card information Optimisation strategy.
6. according to the method for claim 5, it is characterised in that the policy module is according to the scene identity and the card Information of pausing determines the network resource optimization strategy of the destination application, including:
The policy module determines the first reference adjustment of the network bandwidth of the destination application according to the interim card information Amount;
The policy module determines the second reference adjustment of the network bandwidth of the destination application according to the scene identity Amount;
The policy module determines the intended application journey with reference to adjustment amount and described second according to described first with reference to adjustment amount The adjustment amount of the network bandwidth of sequence;
The policy module determines the network resource optimization strategy of the destination application according to the adjustment amount.
7. according to the method described in claim 1-6, it is characterised in that between the destination application and the operating system Including preset data passage;The operating system receives the contextual data bag that the destination application being currently running is sent, Including:
The operating system is sent by the destination application being currently running described in the preset data channel reception Contextual data bag.
8. a kind of device for allocating resources, it is characterised in that being run applied to mobile terminal, on the mobile terminal has operating system And one or more application programs, the device for allocating resources include processing unit and communication unit,
The processing unit, the contextual data sent for receiving the destination application being currently running by the communication unit Bag, the contextual data bag include the scene relating information of the destination application;And according to the scene relating information Determine the network resource optimization strategy of the destination application;And according to mesh described in the network resource optimization Developing Tactics Mark the Wireless Fidelity Wi-Fi network resource of application program.
A kind of 9. mobile terminal, it is characterised in that including processor, memory, communication interface and one or more programs, its In, one or more of programs are stored in the memory, and are configured by the computing device, described program Instruction including requiring the step in any one of 1-7 method for perform claim.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage is used for electron number According to the computer program of exchange, wherein, the computer program causes computer to perform as described in claim any one of 1-7 Method, the computer include mobile terminal.
CN201710771367.7A 2017-08-31 2017-08-31 Resource allocation method and related product Active CN107547745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710771367.7A CN107547745B (en) 2017-08-31 2017-08-31 Resource allocation method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710771367.7A CN107547745B (en) 2017-08-31 2017-08-31 Resource allocation method and related product

Publications (2)

Publication Number Publication Date
CN107547745A true CN107547745A (en) 2018-01-05
CN107547745B CN107547745B (en) 2020-07-17

Family

ID=60959343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710771367.7A Active CN107547745B (en) 2017-08-31 2017-08-31 Resource allocation method and related product

Country Status (1)

Country Link
CN (1) CN107547745B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032793A (en) * 2018-07-11 2018-12-18 Oppo广东移动通信有限公司 Method, apparatus, terminal and the storage medium of resource distribution
CN109150582A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of internet wide band distribution, terminal and computer readable storage medium
CN109558165A (en) * 2018-11-29 2019-04-02 广州市百果园信息技术有限公司 A kind of method for optimizing configuration, device, equipment and storage medium
CN109587053A (en) * 2018-12-28 2019-04-05 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN109640178A (en) * 2018-12-29 2019-04-16 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN110162347A (en) * 2019-05-15 2019-08-23 苏州达家迎信息技术有限公司 A kind of application program launching method, device, equipment and storage medium
CN111369104A (en) * 2020-02-13 2020-07-03 深圳壹账通智能科技有限公司 Workflow processing method and related equipment based on scene domain
CN113783740A (en) * 2021-10-26 2021-12-10 北京字节跳动网络技术有限公司 Network optimization method, device, equipment and medium
CN114840270A (en) * 2022-05-09 2022-08-02 珠海全志科技股份有限公司 System bus bandwidth adjusting method, computer device and computer readable storage medium
CN115333943A (en) * 2022-08-10 2022-11-11 中国联合网络通信集团有限公司 Deterministic network resource configuration system, method, device and storage medium
CN115361707A (en) * 2022-08-19 2022-11-18 广州方硅信息技术有限公司 Application program data transmission method and device, live broadcast system, equipment and medium
WO2022262433A1 (en) * 2021-06-16 2022-12-22 中兴通讯股份有限公司 Resource allocation method, and terminal and computer-readable storage medium
CN116566826A (en) * 2022-01-27 2023-08-08 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for optimizing game client network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN104731304A (en) * 2015-03-20 2015-06-24 广东欧珀移动通信有限公司 Adjusting method and device for CPU frequency adjustment mode in terminal
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configuration in processor
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106775803A (en) * 2016-11-14 2017-05-31 努比亚技术有限公司 A kind of parameter value adjuster, terminal and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN104731304A (en) * 2015-03-20 2015-06-24 广东欧珀移动通信有限公司 Adjusting method and device for CPU frequency adjustment mode in terminal
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configuration in processor
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106775803A (en) * 2016-11-14 2017-05-31 努比亚技术有限公司 A kind of parameter value adjuster, terminal and method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150582A (en) * 2018-06-27 2019-01-04 努比亚技术有限公司 A kind of internet wide band distribution, terminal and computer readable storage medium
CN109032793B (en) * 2018-07-11 2021-03-16 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109032793A (en) * 2018-07-11 2018-12-18 Oppo广东移动通信有限公司 Method, apparatus, terminal and the storage medium of resource distribution
CN109558165A (en) * 2018-11-29 2019-04-02 广州市百果园信息技术有限公司 A kind of method for optimizing configuration, device, equipment and storage medium
CN109558165B (en) * 2018-11-29 2022-07-08 广州市百果园信息技术有限公司 Configuration optimization method, device, equipment and storage medium
CN109587053A (en) * 2018-12-28 2019-04-05 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN109640178A (en) * 2018-12-29 2019-04-16 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN110162347A (en) * 2019-05-15 2019-08-23 苏州达家迎信息技术有限公司 A kind of application program launching method, device, equipment and storage medium
CN110162347B (en) * 2019-05-15 2023-05-16 苏州达家迎信息技术有限公司 Application program starting method, device, equipment and storage medium
CN111369104A (en) * 2020-02-13 2020-07-03 深圳壹账通智能科技有限公司 Workflow processing method and related equipment based on scene domain
WO2022262433A1 (en) * 2021-06-16 2022-12-22 中兴通讯股份有限公司 Resource allocation method, and terminal and computer-readable storage medium
CN113783740A (en) * 2021-10-26 2021-12-10 北京字节跳动网络技术有限公司 Network optimization method, device, equipment and medium
CN113783740B (en) * 2021-10-26 2022-08-16 北京字节跳动网络技术有限公司 Network optimization method, device, equipment and medium
CN116566826A (en) * 2022-01-27 2023-08-08 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for optimizing game client network
CN114840270A (en) * 2022-05-09 2022-08-02 珠海全志科技股份有限公司 System bus bandwidth adjusting method, computer device and computer readable storage medium
CN115333943A (en) * 2022-08-10 2022-11-11 中国联合网络通信集团有限公司 Deterministic network resource configuration system, method, device and storage medium
CN115361707A (en) * 2022-08-19 2022-11-18 广州方硅信息技术有限公司 Application program data transmission method and device, live broadcast system, equipment and medium

Also Published As

Publication number Publication date
CN107547745B (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN107547746B (en) Resource allocation method and related products
CN107577533B (en) Resource allocation method and related products
CN107547745B (en) Resource allocation method and related product
CN107426432B (en) Resource allocation method and Related product
CN107483725A (en) Resource allocation method and related products
CN107577537A (en) Resource allocation method and Related product
CN107613107A (en) Resource allocation method and related products
CN107589998A (en) Resource allocation method and Related product
CN107479970B (en) Resource allocation method and related products
CN107450988B (en) Resource allocation method and related product
CN107515787A (en) Resource allocation method and related products
US11182210B2 (en) Method for resource allocation and terminal device
CN107894920A (en) Resource allocation method and Related product
US11016812B2 (en) Method for resource allocation and terminal device
CN107517306B (en) Resource allocation method and related products
WO2019047708A1 (en) Resource configuration method and related product
CN107479972A (en) Resource allocation method and Related product
CN107528977A (en) Resource allocation method and Related product
CN107577536A (en) Applied optimization methods and related products
HK1247759B (en) Resource configuration method and related product
HK1247757A1 (en) Resource allocation method and related products
HK1247695B (en) Resource configuration method and related product
HK1247479B (en) Resource configuration method and related products
HK1247759A1 (en) Resource configuration method and related product
HK1247695A1 (en) Resource configuration method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant