[go: up one dir, main page]

CN106102141B - A kind of processing method and processing device based on packet - Google Patents

A kind of processing method and processing device based on packet Download PDF

Info

Publication number
CN106102141B
CN106102141B CN201610379854.4A CN201610379854A CN106102141B CN 106102141 B CN106102141 B CN 106102141B CN 201610379854 A CN201610379854 A CN 201610379854A CN 106102141 B CN106102141 B CN 106102141B
Authority
CN
China
Prior art keywords
application process
packet
data packet
terminal system
intended application
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.)
Expired - Fee Related
Application number
CN201610379854.4A
Other languages
Chinese (zh)
Other versions
CN106102141A (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 CN201610379854.4A priority Critical patent/CN106102141B/en
Publication of CN106102141A publication Critical patent/CN106102141A/en
Priority to PCT/CN2017/086472 priority patent/WO2017206875A1/en
Application granted granted Critical
Publication of CN106102141B publication Critical patent/CN106102141B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

本发明实施例提供了一种基于数据包的处理方法及装置,该处理方法采用接收服务器通过网络发送的数据包,获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率,并判断该唤醒频率是否大于预设阈值,若是,则禁止通过该数据包唤醒该终端系统;该方案可以监控通过数据包唤醒终端系统的唤醒频率,当该唤醒频率大于预设阈值时,禁止通过该数据包唤醒该终端系统,节省了系统资源,特别是减少了终端的电量消耗。

The embodiment of the present invention provides a data packet-based processing method and device. The processing method adopts the data packet sent by the receiving server through the network, obtains the wake-up frequency of the terminal system awakened by the data packet within a preset time period, and judges Is the wake-up frequency greater than the preset threshold? If so, it is forbidden to wake up the terminal system through the data packet; this solution can monitor the wake-up frequency of the terminal system through the data packet. The packet wakes up the terminal system, which saves system resources, especially reduces power consumption of the terminal.

Description

一种基于数据包的处理方法及装置A processing method and device based on data packets

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种基于数据包的处理方法及装置。The present invention relates to the technical field of communication, in particular to a processing method and device based on data packets.

背景技术Background technique

随着移动终端的快速发展,众多的第三方应用厂商和独立的第三方应用开发者开发了大量用于移动终端的应用程序。这些应用程序会不定时唤醒移动终端,以访问服务器或接收从服务器下发的数据。With the rapid development of mobile terminals, numerous third-party application manufacturers and independent third-party application developers have developed a large number of application programs for mobile terminals. These applications will wake up the mobile terminal from time to time to access the server or receive data sent from the server.

移动终端上的应用程序在与服务器进行通信时,为了保证能够及时接收业务数据(例如,推送信息、通知消息等),目前采用的一种方案是IP push(推送)技术,即在移动终端与为应用程序提供业务数据的应用服务器之间保持一个长连接,由于该长连接的存在,应用服务器就可以实时向移动终端内的该应用程序推送业务数据。为了确保该长连接处于可用状态,通常采用的一种方式是由服务器定时向移动终端发送一个数据包(心跳数据包),随后移动终端向服务器发送一个数据包(应答数据包),以表明该长连接的链路可用。When the application program on the mobile terminal communicates with the server, in order to ensure that it can receive business data (for example, push information, notification messages, etc.) A persistent connection is maintained between the application servers providing service data for the application program. Due to the existence of the persistent connection, the application server can push service data to the application program in the mobile terminal in real time. In order to ensure that the long connection is in an available state, a method usually used is that the server regularly sends a data packet (heartbeat data packet) to the mobile terminal, and then the mobile terminal sends a data packet (response data packet) to the server to indicate that the A long-connected link is available.

但是,在这种实现方式中,由于需要确保该长连接处于可用状态,移动终端上的应用程序即使长时间不需要从服务器接收业务数据,也需要不停地唤醒移动终端以对服务器发送的数据包(心跳数据包)进行应答,导致移动终端被频繁唤醒,从而对移动终端的资源消耗较大,特别是对移动终端的电量消耗较大。However, in this implementation, due to the need to ensure that the persistent connection is in an available state, even if the application on the mobile terminal does not need to receive service data from the server for a long time, it needs to wake up the mobile terminal continuously to check the data sent by the server. Packets (heartbeat data packets) respond, causing the mobile terminal to be woken up frequently, thus consuming a lot of resources on the mobile terminal, especially a lot of power consumption on the mobile terminal.

发明内容Contents of the invention

本发明实施例提供一种基于数据包的处理方法及装置,可以解决现有技术中应用程序对移动终端的资源消耗较大,特别是对移动终端的电量消耗较大的技术问题。Embodiments of the present invention provide a processing method and device based on data packets, which can solve the technical problem in the prior art that application programs consume a lot of resources on mobile terminals, especially power consumption on mobile terminals.

本发明实施例提供一种基于数据包的处理方法,包括:An embodiment of the present invention provides a packet-based processing method, including:

接收服务器通过网络发送的数据包,所述数据包用于维持与所述服务器之间的网络连接;receiving a data packet sent by the server through the network, where the data packet is used to maintain a network connection with the server;

获取在预设时间段内通过所述数据包唤醒终端系统的唤醒频率;Acquiring the wake-up frequency of waking up the terminal system through the data packet within a preset time period;

判断所述唤醒频率是否大于预设阈值;judging whether the wake-up frequency is greater than a preset threshold;

若是,则禁止通过所述数据包唤醒所述终端系统。If so, prohibit the terminal system from being woken up by the data packet.

进一步地,所述禁止通过所述数据包唤醒所述终端系统的步骤具体包括:Further, the step of prohibiting waking up the terminal system through the data packet specifically includes:

确定所述数据包对应的目标应用进程;determining the target application process corresponding to the data packet;

关闭所述目标应用进程,以禁止通过所述数据包唤醒所述终端系统。Closing the target application process, so as to prohibit waking up the terminal system through the data packet.

进一步地,所述确定所述数据包对应的目标应用进程的步骤具体包括:Further, the step of determining the target application process corresponding to the data packet specifically includes:

根据所述数据包获取相应的用户标识;Obtain a corresponding user identifier according to the data packet;

根据所述用户标识获取相应的目标应用进程的进程标识;Acquiring the process identification of the corresponding target application process according to the user identification;

根据所述进程标识确定相应的目标应用进程。A corresponding target application process is determined according to the process identifier.

进一步地,所述关闭所述目标应用进程的步骤具体包括:Further, the step of closing the target application process specifically includes:

判断预设应用进程集合中是否存在与所述目标应用进程相同的应用进程;judging whether there is an application process identical to the target application process in the preset application process set;

若是,则关闭所述目标应用进程,以禁止通过所述数据包唤醒所述终端系统。If yes, shutting down the target application process, so as to prohibit waking up the terminal system through the data packet.

进一步地,所述禁止通过所述数据包唤醒所述终端系统的步骤具体包括:Further, the step of prohibiting waking up the terminal system through the data packet specifically includes:

确定所述数据包对应的目标应用进程;determining the target application process corresponding to the data packet;

阻止所述目标应用进程连接网络,以禁止通过所述数据包唤醒所述终端系统。Preventing the target application process from connecting to the network, so as to prohibit waking up the terminal system through the data packet.

相应地,本发明实施例还提供一种基于数据包的处理装置,包括:Correspondingly, the embodiment of the present invention also provides a data packet-based processing device, including:

接收模块,用于接收服务器通过网络发送的数据包,所述数据包用于维持与所述服务器之间的网络连接;A receiving module, configured to receive a data packet sent by the server through the network, and the data packet is used to maintain a network connection with the server;

获取模块,用于获取在预设时间段内通过所述数据包唤醒终端系统的唤醒频率;An acquisition module, configured to acquire the wake-up frequency of waking up the terminal system through the data packet within a preset time period;

判断模块,用于判断所述唤醒频率是否大于预设阈值;A judging module, configured to judge whether the wake-up frequency is greater than a preset threshold;

处理模块,用于当所述判断模块判断为是时,禁止通过所述数据包唤醒所述终端系统。A processing module, configured to prohibit waking up the terminal system through the data packet when the judging module judges yes.

进一步地,所述处理模块具体包括:Further, the processing module specifically includes:

第一确定子模块,用于确定所述数据包对应的目标应用进程;A first determining submodule, configured to determine a target application process corresponding to the data packet;

第一处理子模块,用于关闭所述目标应用进程,以禁止通过所述数据包唤醒所述终端系统。The first processing submodule is configured to close the target application process, so as to prohibit the terminal system from being woken up by the data packet.

进一步地,所述第一确定子模块具体用于:Further, the first determining submodule is specifically used for:

根据所述数据包获取相应的用户标识;Obtain a corresponding user identifier according to the data packet;

根据所述用户标识获取相应的目标应用进程的进程标识;Acquiring the process identification of the corresponding target application process according to the user identification;

根据所述进程标识确定相应的目标应用进程。A corresponding target application process is determined according to the process identifier.

进一步地,所述第一处理子模块具体用于:Further, the first processing submodule is specifically used for:

判断预设应用进程集合中是否存在与所述目标应用进程相同的应用进程;judging whether there is an application process identical to the target application process in the preset application process set;

若是,则关闭所述目标应用进程,以禁止通过所述数据包唤醒所述终端系统。If yes, shutting down the target application process, so as to prohibit waking up the terminal system through the data packet.

进一步地,所述处理模块具体包括:Further, the processing module specifically includes:

第二确定子模块,用于确定所述数据包对应的目标应用进程;The second determining submodule is configured to determine the target application process corresponding to the data packet;

第二处理子模块,用于阻止所述目标应用进程连接网络,以禁止通过所述数据包唤醒所述终端系统。The second processing submodule is configured to prevent the target application process from connecting to the network, so as to prohibit waking up the terminal system through the data packet.

本发明实施例提供一种基于数据包的处理方法,采用接收服务器通过网络发送的数据包,获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率,并判断该唤醒频率是否大于预设阈值,若是,则禁止通过该数据包唤醒该终端系统的技术方案;该方案可以监控通过数据包唤醒终端系统的唤醒频率,当该唤醒频率大于预设阈值时,禁止通过该数据包唤醒该终端系统,相对于现有技术而言,若接收到服务器通过网络发送的数据包频繁唤醒终端系统,则禁止再次通过该数据包唤醒终端系统,使得终端系统不需要被频繁唤醒,从而节省了系统资源,特别是减少了终端的电量消耗。An embodiment of the present invention provides a data packet-based processing method, which uses the data packet sent by the receiving server through the network to obtain the wake-up frequency of waking up the terminal system through the data packet within a preset time period, and judges whether the wake-up frequency is greater than the preset Set the threshold, if so, prohibit the technical scheme of waking up the terminal system through the data packet; this scheme can monitor the wake-up frequency of the terminal system through the data packet, and when the wake-up frequency is greater than the preset threshold, prohibit the wake-up of the terminal system through the data packet. For the terminal system, compared with the prior art, if the terminal system is frequently woken up by the data packets sent by the server through the network, it is forbidden to wake up the terminal system through the data packet again, so that the terminal system does not need to be frequently woken up, thereby saving system time. resources, especially reducing the power consumption of the terminal.

附图说明Description of drawings

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

图1是本发明实施例一提供的基于数据包的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a packet-based processing method provided in Embodiment 1 of the present invention;

图2是本发明实施例二提供的基于数据包的处理方法的流程示意图;FIG. 2 is a schematic flowchart of a packet-based processing method provided in Embodiment 2 of the present invention;

图3a是本发明实施例三提供的第一种基于数据包的处理装置的结构示意图;FIG. 3a is a schematic structural diagram of a first data packet-based processing device provided in Embodiment 3 of the present invention;

图3b是本发明实施例三提供的第二种基于数据包的处理装置的结构示意图;FIG. 3b is a schematic structural diagram of a second packet-based processing device provided by Embodiment 3 of the present invention;

图3c是本发明实施例三提供的第三种基于数据包的处理装置的结构示意图。Fig. 3c is a schematic structural diagram of a third data packet-based processing device provided by Embodiment 3 of the present invention.

具体实施方式detailed description

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

本发明实施例提供一种基于数据包的处理方法及装置。以下将分别进行详细说明。Embodiments of the present invention provide a data packet-based processing method and device. The details will be described respectively below.

实施例一Embodiment one

本实施例将从基于数据包的处理装置的角度进行描述,该处理装置具体可以集成在终端中,该终端可以为智能手机等设备。This embodiment will be described from the perspective of a data packet-based processing apparatus. Specifically, the processing apparatus may be integrated into a terminal, and the terminal may be a device such as a smart phone.

一种基于数据包的处理方法,包括:接收服务器通过网络发送的数据包,该数据包用于维持与该服务器之间的网络连接,获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率,并判断该唤醒频率是否大于预设阈值,若是,则禁止通过该数据包唤醒该终端系统。A processing method based on a data packet, comprising: receiving a data packet sent by a server through a network, the data packet is used to maintain a network connection with the server, and obtaining the information of waking up a terminal system through the data packet within a preset time period A wake-up frequency, and judging whether the wake-up frequency is greater than a preset threshold, and if so, prohibiting the terminal system from being woken up by the data packet.

如图1所示,该基于数据包的处理方法,具体流程可以如下:As shown in Figure 1, the specific process of the packet-based processing method can be as follows:

S101,接收服务器通过网络发送的数据包,该数据包用于维持与该服务器之间的网络连接。S101. Receive a data packet sent by a server through a network, where the data packet is used to maintain a network connection with the server.

具体应用中,终端上运行网络应用程序(即可以与服务器进行通信的应用程序)时,需要在该应用程序与服务器之间建立网络连接以进行数据交换。一般情况下,应用程序与服务器之间建立的网络连接有短连接和长连接两种,短连接是指应用程序与服务器之间建立通信链路并完成数据交换后立即断开连接,长连接是指应用程序与服务器之间建立通信链路并完成数据交换后继续保持连接状态。当应用程序与服务器之间建立长连接后,为了确保该长连接的链路一直处于可用状态,服务器会定时通过网络(例如无线保真WI-FI)向该应用程序发送数据包(心跳数据包),例如,每间隔0.5s发送一次数据包,终端上的应用程序接收该数据包并进行处理。In a specific application, when a network application program (that is, an application program capable of communicating with a server) is run on a terminal, a network connection needs to be established between the application program and the server for data exchange. In general, there are two types of network connections established between applications and servers: short connections and long connections. It means that the communication link between the application program and the server is established and the data exchange is completed to continue to maintain the connection state. When a long connection is established between the application program and the server, in order to ensure that the link of the long connection is always available, the server will periodically send data packets (heartbeat data packets) to the application program through the network (such as wireless fidelity WI-FI) ), for example, a data packet is sent every 0.5s, and the application program on the terminal receives the data packet and processes it.

S102,获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率。S102. Acquire a wake-up frequency for waking up the terminal system through the data packet within a preset time period.

具体应用中,终端为了减少电量消耗,在终端系统不需要进行数据处理,例如数据分析、数据计算时,终端系统会进入休眠状态,当有数据到来需要进行处理时,终端系统从休眠状态唤醒并对该数据进行处理。In a specific application, in order to reduce power consumption, the terminal system will enter a dormant state when the terminal system does not need to perform data processing, such as data analysis and data calculation. When there is data that needs to be processed, the terminal system wakes up from the dormant state and Do something with that data.

本发明实施例中,终端上的应用程序接收到服务器发送的数据包后,唤醒终端系统对该数据包进行分析处理,以生成应答数据,随后应用程序通过网络(长连接)将应答数据发送给服务器。终端对通过该数据包唤醒终端系统的次数进行统计,并获取在预设时间段内终端系统被唤醒的唤醒频率,例如,该预设时间段为10s,则终端每隔10s根据统计次数获取终端系统被唤醒的唤醒频率。In the embodiment of the present invention, after the application program on the terminal receives the data packet sent by the server, it wakes up the terminal system to analyze and process the data packet to generate response data, and then the application program sends the response data to the server. The terminal counts the number of times the terminal system is woken up by the data packet, and obtains the wake-up frequency of the terminal system within the preset time period. For example, if the preset time period is 10s, the terminal obtains the The wakeup frequency at which the system is woken up.

实际应用中,终端上可能同时运行着多个网络应用程序,该多个网络应用程序分别与多个服务器之间建立通信链路,即终端同时与多个服务器之间维持着多个长连接,每个应用程序都会定时从服务器接收到数据包(心跳数据包),从而终端接收服务器通过网络发送的数据包可能有多种。为了分别获取通过该多种数据包中的每种数据包在预设时间段内唤醒终端系统的频率,终端根据每种数据包中的特征信息(例如,数据包中包括的网络地址和/或端口信息)对每种数据包分别进行统计,从而可以获取通过该多种数据包中的每一种唤醒终端系统的频率。In practical applications, multiple network applications may be running on the terminal at the same time, and the multiple network applications establish communication links with multiple servers, that is, the terminal maintains multiple long connections with multiple servers at the same time. Each application program will regularly receive data packets (heartbeat data packets) from the server, so there may be many types of data packets sent by the terminal receiving server through the network. In order to respectively obtain the frequency of waking up the terminal system within a preset time period through each of the various data packets, the terminal according to the characteristic information in each type of data packet (for example, the network address included in the data packet and/or port information) to collect statistics on each type of data packets, so that the frequency of waking up the terminal system through each type of data packets can be obtained.

S103,判断该唤醒频率是否大于预设阈值。S103, judging whether the wake-up frequency is greater than a preset threshold.

具体地,该预设阈值可以是终端在出厂时存储在终端相应存储区域(内置存储区域或外置存储区域)中的一个数值,也可以是用户设置并存储在终端相应存储区域的一个数值,例如2Hz。判断该唤醒频率是否大于预设阈值的方式有多种,例如,在获取该唤醒频率后,从终端的相应存储区域中调用该预设阈值,计算该唤醒频率与该预设阈值之间的差值,当该差值大于零时,判断为该唤醒频率大于该预设阈值,否则判断为该唤醒频率不大于该预设阈值。Specifically, the preset threshold may be a value stored in a corresponding storage area (built-in storage area or external storage area) of the terminal when the terminal leaves the factory, or a value set by the user and stored in the corresponding storage area of the terminal, For example 2Hz. There are many ways to judge whether the wake-up frequency is greater than the preset threshold. For example, after obtaining the wake-up frequency, the preset threshold is called from the corresponding storage area of the terminal, and the difference between the wake-up frequency and the preset threshold is calculated. value, when the difference is greater than zero, it is determined that the wake-up frequency is greater than the preset threshold, otherwise it is determined that the wake-up frequency is not greater than the preset threshold.

S104,禁止通过该数据包唤醒该终端系统。S104. Prohibit waking up the terminal system through the data packet.

当步骤S103中判断为该唤醒频率大于该预设阈值时,禁止通过该数据包唤醒该终端系统。此时,若终端系统处于休眠状态,即使终端中的应用程序接收到服务器发送的数据包,也无法通过该数据包唤醒终端系统,使得终端系统不需要被唤醒以对该数据包进行处理,从而节省了系统资源,终端系统继续处于休眠状态能够保持较低的功率,从而节省了终端的电量消耗。When it is determined in step S103 that the wake-up frequency is greater than the preset threshold, the terminal system is prohibited from being woken up by the data packet. At this time, if the terminal system is in a dormant state, even if the application program in the terminal receives the data packet sent by the server, it cannot wake up the terminal system through the data packet, so that the terminal system does not need to be woken up to process the data packet, thereby System resources are saved, and the terminal system can maintain lower power when it continues to be in a dormant state, thereby saving power consumption of the terminal.

具体应用中,当终端上的多个应用程序同时与多个服务器之间保持长连接时,若判断为该唤醒频率大于该预设阈值,则需要确定该数据包具体是在哪个应用程序与服务器之间进行数据交换,随后对该应用进程进行处理,因此,“禁止通过该数据包唤醒该终端系统”可具体包括以下步骤:In a specific application, when multiple applications on the terminal maintain long-term connections with multiple servers at the same time, if it is determined that the wake-up frequency is greater than the preset threshold, it is necessary to determine which application and server the data packet is in. Data exchange is performed between them, and then the application process is processed. Therefore, "prohibiting to wake up the terminal system through the data packet" may specifically include the following steps:

确定该数据包对应的目标应用进程;Determine the target application process corresponding to the data packet;

关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统。The target application process is closed to prohibit the terminal system from being woken up by the data packet.

具体地,可以根据数据包中的特征信息(例如,数据包中包括的网络地址和/或端口信息)来确定该数据包对应的目标应用进程。Specifically, the target application process corresponding to the data packet may be determined according to characteristic information in the data packet (for example, network address and/or port information included in the data packet).

具体实施中,根据数据包中的特征信息来确定该数据包对应的目标应用进程可以包括以下步骤:In a specific implementation, determining the target application process corresponding to the data packet according to the characteristic information in the data packet may include the following steps:

根据该数据包获取相应的用户标识;Obtain the corresponding user ID according to the data packet;

根据该用户标识获取相应的目标应用进程的进程标识;Acquiring the process identification of the corresponding target application process according to the user identification;

根据该进程标识确定相应的目标应用进程。A corresponding target application process is determined according to the process identifier.

具体地,接收服务器通过网络发送的数据包中包括服务器端的网络地址(IP地址)和终端侧的端口信息(端口号),终端根据该网络地址和端口信息获取该数据包指向的用户标识(UID,User identification),并进一步根据该用户标识获取该用户标识指向的目标应用进程的进程标识(PID,Process identification)。由于进程标识(PID)与终端系统中运行的进程具有唯一对应关系,因此可以根据该进程标识(PID)确定相应的目标应用进程。Specifically, the data packet sent by the receiving server through the network includes the network address (IP address) of the server side and the port information (port number) of the terminal side, and the terminal obtains the user identification (UID) pointed to by the data packet according to the network address and port information. , User identification), and further obtain the process identification (PID, Process identification) of the target application process pointed to by the user identification according to the user identification. Since the process identifier (PID) has a unique correspondence with the process running in the terminal system, the corresponding target application process can be determined according to the process identifier (PID).

在实际应用中,当确定目标应用进程后,该目标应用进程可能必须处于运行状态,即该应用程序对用户而言是比较重要的应用程序,即使该应用程序通过数据包唤醒终端系统的唤醒频率大于预设阈值,用户也不希望该应用程序被关闭,因此,“关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统”可以具体包括以下步骤:In practical applications, after the target application process is determined, the target application process may have to be in the running state, that is, the application is an important application for the user, even if the application wakes up the wake-up frequency of the terminal system through data packets is greater than the preset threshold, and the user does not want the application to be closed. Therefore, "closing the target application process to prohibit the terminal system from being awakened by the data packet" may specifically include the following steps:

判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程;Judging whether there is an application process identical to the target application process in the preset application process set;

若是,则关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统。If yes, close the target application process, so as to prohibit the terminal system from being woken up by the data packet.

具体地,预设应用进程集合可以是终端在出厂时存储在终端相应存储区域(内置存储区域或外置存储区域)中的多个应用进程的集合,也可以是用户设置的多个应用进程的集合,用户可以通过终端的设置界面添加应用进程到该预设应用进程集合中,也可以从该预设应用进程集合中删除某个或某几个应用进程,当确定目标应用进程后,若该预设应用进程集合中不存在与该目标应用进程相同的应用进程,也可以提示用户是否需要将该目标应用进程添加到该预设应用进程集合。当然,该预设应用进程集合也可以为空,即用户尚未添加任何应用进程到该预设应用进程集合。Specifically, the preset application process set may be a set of multiple application processes stored in the corresponding storage area (built-in storage area or external storage area) of the terminal when the terminal leaves the factory, or it may be a set of multiple application processes set by the user. Set, the user can add an application process to the preset application process set through the setting interface of the terminal, and can also delete one or several application processes from the preset application process set. After the target application process is determined, if the There is no application process identical to the target application process in the preset application process set, and the user may also be prompted whether to add the target application process to the preset application process set. Of course, the preset application process set may also be empty, that is, the user has not added any application process to the preset application process set.

判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程的方法有多种,例如,在确定目标应用进程后,将该目标应用进程的进程标识(PID)与该预设应用进程集合中的所有应用进程的进程标识(PID)逐一对比,当目标应用进程的进程标识与该预设应用进程集合中的某一个应用进程的进程标识相同时,则判断预设应用进程集合中存在与该目标应用进程相同的应用进程。There are many methods for judging whether there is an application process identical to the target application process in the set of preset application processes. For example, after determining the target application process, the process identification (PID) of the target application process The process identifications (PIDs) of all application processes in the set are compared one by one, and when the process identification of the target application process is the same as the process identification of an application process in the preset application process set, it is determined that there is a PID in the preset application process set. The same application process as the target application process.

优选地,在本发明的另一个实施方式中,判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程后,还可以在判断结果为否时,才关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统。Preferably, in another embodiment of the present invention, after judging whether there is an application process identical to the target application process in the preset application process set, the target application process may be closed only when the judging result is no, so as to It is forbidden to wake up the terminal system through this data packet.

优选地,确定该数据包对应的目标应用进程后,可以接收用户设置是否启用关闭该目标应用进程的功能。Preferably, after the target application process corresponding to the data packet is determined, whether to enable the function of closing the target application process can be received from the user.

优选地,在本发明的另一个实施方式中,确定该数据包对应的目标应用进程后,可以阻止该目标应用进程连接网络,以禁止通过该数据包唤醒该终端系统。Preferably, in another embodiment of the present invention, after the target application process corresponding to the data packet is determined, the target application process can be prevented from connecting to the network, so as to prohibit the terminal system from being woken up by the data packet.

由上可知,本发明实施例提供的基于数据包的处理方法,采用接收服务器通过网络发送的数据包,获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率,并判断该唤醒频率是否大于预设阈值,若是,则禁止通过该数据包唤醒该终端系统的技术方案;该方案可以监控通过数据包唤醒终端系统的唤醒频率,当该唤醒频率大于预设阈值时,禁止通过该数据包唤醒该终端系统,相对于现有技术而言,若接收到服务器通过网络发送的数据包频繁唤醒终端系统,则禁止再次通过该数据包唤醒终端系统,使得终端系统不需要被频繁唤醒,从而节省了系统资源,特别是减少了终端的电量消耗。It can be seen from the above that the data packet-based processing method provided by the embodiment of the present invention adopts the data packet sent by the receiving server through the network, obtains the wake-up frequency of the terminal system awakened by the data packet within a preset time period, and judges the wake-up frequency Whether it is greater than the preset threshold, if so, prohibit the technical scheme of waking up the terminal system through the data packet; The packet wakes up the terminal system. Compared with the prior art, if the terminal system is frequently woken up by the data packets sent by the server through the network, it is forbidden to wake up the terminal system through the data packet again, so that the terminal system does not need to be frequently woken up, thereby System resources are saved, especially power consumption of the terminal is reduced.

实施例二Embodiment two

根据实施例一所描述的处理方法,以下将举例作进一步详细说明。According to the processing method described in the first embodiment, an example will be given below for further detailed description.

在本实施例中,将以基于数据包的处理装置具体集成在智能手机中,以智能手机的基于数据包的处理方法为例进行详细描述。In this embodiment, a detailed description will be made by taking a data packet-based processing apparatus integrated in a smart phone and a data packet-based processing method of the smart phone as an example.

如图2所示,该处理方法,具体流程可以如下:As shown in Figure 2, the processing method, the specific process can be as follows:

S201,智能手机接收服务器通过网络发送的数据包,该数据包用于维持该智能手机与该服务器之间的网络连接。S201. The smart phone receives a data packet sent by a server through a network, where the data packet is used to maintain a network connection between the smart phone and the server.

具体应用中,智能手机上运行应用程序时,例如微信,需要在应用程序与服务器之间建立网络连接以进行数据交换,例如微信从微信服务器接收推送信息。为了确保该应用程序能即时接收到服务器发送的信息,该应用程序与服务器之间必须保持长连接,而为了确保该长连接的链路一直处于可用状态,服务器会定时向该应用程序发送数据包(心跳包),该应用程序接收该数据包并进行处理。In a specific application, when running an application program on a smart phone, such as WeChat, a network connection needs to be established between the application program and the server for data exchange, for example, WeChat receives push information from the WeChat server. In order to ensure that the application can receive the information sent by the server in real time, a long connection must be maintained between the application and the server, and in order to ensure that the link of the long connection is always available, the server will regularly send data packets to the application (heartbeat packet), the application receives the packet and processes it.

S202,智能手机获取在预设时间段内通过该数据包唤醒智能手机系统的唤醒频率。S202. The smart phone obtains the wake-up frequency for waking up the smart phone system through the data packet within a preset time period.

具体地,智能手机上的应用程序(例如,微信)接收到服务器发送的数据包(心跳包)后,唤醒智能手机系统对该数据包进行处理,例如对该数据包进行分析并生成应答数据(应答包),随后该应用程序将该应答数据(应答包)发送给该服务器,以对该服务器发送的数据包(心跳包)进行应答。Specifically, after the application program (for example, WeChat) on the smart phone receives the data packet (heartbeat packet) sent by the server, it wakes up the smart phone system to process the data packet, such as analyzing the data packet and generating response data ( response packet), and then the application program sends the response data (response packet) to the server to respond to the data packet (heartbeat packet) sent by the server.

智能手机对通过该数据包唤醒智能手机系统的次数进行统计,并获取预设时间段内智能手机系统被唤醒的唤醒频率。例如,该预设时间段为10s,在10s内智能手机系统通过数据包被唤醒了20次,则10s内智能手机系统被唤醒的唤醒频率为2Hz。The smart phone counts the number of times the smart phone system is woken up through the data packet, and obtains the wake-up frequency of the smart phone system being woken up within a preset time period. For example, the preset time period is 10s, and the smart phone system is woken up 20 times through data packets within 10s, then the wakeup frequency of the smart phone system is woken up within 10s is 2Hz.

S203,智能手机判断该唤醒频率是否大于预设阈值。S203, the smart phone judges whether the wake-up frequency is greater than a preset threshold.

具体应用中,该预设阈值可以是用户设置并存储在智能手机内置存储区域中的一个数值,例如1Hz。智能手机获取到该唤醒频率后,从内置存储区域中调用该预设阈值,计算该唤醒频率与该预设阈值之间的差值,来判断该唤醒频率是否大于该预设阈值。例如,该唤醒频率为2Hz,该唤醒频率与该预设阈值之间的差值为1Hz,则判断为该唤醒频率大于该预设阈值。In a specific application, the preset threshold may be a value set by the user and stored in the built-in storage area of the smart phone, such as 1 Hz. After acquiring the wake-up frequency, the smartphone calls the preset threshold from the built-in storage area, calculates the difference between the wake-up frequency and the preset threshold, and determines whether the wake-up frequency is greater than the preset threshold. For example, if the wake-up frequency is 2 Hz, and the difference between the wake-up frequency and the preset threshold is 1 Hz, then it is determined that the wake-up frequency is greater than the preset threshold.

S204,智能手机根据该数据包获取相应的用户标识。S204. The smartphone acquires a corresponding user identifier according to the data packet.

具体地,智能手机接收服务器通过网络发送的数据包中包括服务器端的网络地址(IP地址)和智能手机侧的端口信息(端口号),例如,智能手机接收到微信服务器发送的数据包中包括微信服务器的IP地址和智能手机上微信对应的端口号,智能手机根据该数据包中的IP地址和端口号获取该数据包指向的用户标识(UID,User Identification)。Specifically, the smart phone receives the data packet sent by the server through the network, including the network address (IP address) of the server side and the port information (port number) of the smart phone side. The IP address of the server and the port number corresponding to WeChat on the smart phone, and the smart phone obtains the user identification (UID, User Identification) pointed to by the data packet according to the IP address and the port number in the data packet.

S205,智能手机根据该用户标识获取相应的目标应用进程的进程标识。S205. The smartphone obtains the process identifier of the corresponding target application process according to the user identifier.

具体地,智能手机获取到该数据包指向的用户标识(UID)后,进一步根据该用户标识(UID)获取该用户标识指向的目标应用进程的进程标识(PID,ProcessIdentification)。Specifically, after the smart phone obtains the user identification (UID) pointed to by the data packet, it further obtains the process identification (PID, Process Identification) of the target application process pointed to by the user identification (UID) according to the user identification (UID).

S206,智能手机根据该进程标识确定相应的目标应用进程。S206. The smart phone determines a corresponding target application process according to the process identifier.

具体地,由于进程标识(PID)与智能手机系统中运行的进程具有唯一对应关系,因此可以根据该进程标识(PID)确定相应的目标应用进程。例如,智能手机系统中运行的微信的进程标识对应的目标应用进程即为微信。Specifically, since the process identifier (PID) has a unique correspondence with the process running in the smart phone system, the corresponding target application process can be determined according to the process identifier (PID). For example, the target application process corresponding to the process identifier of WeChat running in the smart phone system is WeChat.

S207,智能手机判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程。S207. The smart phone determines whether there is an application process identical to the target application process in the preset application process set.

具体应用中,该预设应用进程集合可以是用户设置的多个应用进程的集合,例如,用户可以设置该应用进程集合包括微信、微博、天猫以及百度地图。在确定目标应用进程后,将该目标应用进程(例如,微信)的进程标识与该预设应用进程集合中的所有应用进程的进程标识逐一对比,当该目标应用进程(例如,微信)的进程标识与该预设应用进程集合中的应用进程(微信)的进程标识相同,则判断预设应用进程集合中存在与该目标应用进程相同的应用进程。In a specific application, the preset application process set may be a set of multiple application processes set by the user. For example, the user may set the application process set to include WeChat, Weibo, Tmall, and Baidu Map. After determining the target application process, compare the process identification of the target application process (for example, WeChat) with the process identifications of all application processes in the preset application process set one by one, when the process of the target application process (for example, WeChat) If the identifier is the same as the process identifier of the application process (WeChat) in the preset application process set, it is determined that there is an application process identical to the target application process in the preset application process set.

S208,智能手机关闭该目标应用进程,以禁止通过该数据包唤醒该智能手机系统。S208, the smart phone shuts down the target application process, so as to prohibit waking up the smart phone system through the data packet.

具体地,当智能手机判断预设应用进程集合中存在与该目标应用进程(例如,微信)相同的应用进程时,关闭该目标应用进程,以禁止该目标应用进程通过该数据包唤醒该智能手机系统。Specifically, when the smart phone judges that there is an application process identical to the target application process (for example, WeChat) in the preset application process set, the target application process is closed to prohibit the target application process from waking up the smart phone through the data packet. system.

由上可知,本发明实施例提供的基于数据包的处理方法,采用智能手机接收服务器通过网络发送的数据包,获取在预设时间段内通过该数据包唤醒智能手机系统的唤醒频率,并判断该唤醒频率是否大于预设阈值,在判断为是时,智能手机根据该数据包获取相应的用户标识,并根据该用户标识获取相应的目标应用进程的进程标识,并进一步根据该进程标识确定相应的目标应用进程,智能手机判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程,若是,则关闭该目标应用进程,以禁止通过该数据包唤醒该智能手机系统的技术方案;该方案中智能手机可以监控通过数据包唤醒智能手机系统的唤醒频率,当该唤醒频率大于预设阈值时,根据该数据包确定目标应用进程,并判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程,若是,则关闭该目标应用进程,相对于现有技术而言,若智能手机接收到服务器通过网络发送的数据包频繁唤醒智能手机系统,并且预设应用进程集合中存在与确定的目标应用进程相同的应用进程,则关闭该目标应用进程,使得不能通过该数据包再次唤醒智能终端系统,并且能够避免需要保持与服务器长连接的应用进程被意外关闭,能够在保证智能手机正常使用的同时节省系统资源,特别是减少了智能手机的电量消耗。As can be seen from the above, the data packet-based processing method provided by the embodiment of the present invention uses the smart phone to receive the data packet sent by the server through the network, obtain the wake-up frequency of the smart phone system through the data packet within a preset time period, and determine Whether the wake-up frequency is greater than the preset threshold, if it is judged to be yes, the smart phone obtains the corresponding user identification according to the data packet, and obtains the process identification of the corresponding target application process according to the user identification, and further determines the corresponding application process based on the process identification. The target application process, the smart phone judges whether there is an application process identical to the target application process in the preset application process set, and if so, closes the target application process to prohibit the technical solution of waking up the smart phone system through the data packet; In this solution, the smart phone can monitor the wake-up frequency of the smart phone system through the data packet. When the wake-up frequency is greater than the preset threshold, the target application process is determined according to the data packet, and it is judged whether there is an application process related to the target in the preset application process set. If the application process is the same as the application process, then close the target application process. Compared with the prior art, if the smart phone receives the data packets sent by the server through the network to frequently wake up the smart phone system, and there are existing in the preset application process set If the application process is the same as the determined target application process, then close the target application process, so that the intelligent terminal system cannot be awakened again through the data packet, and the application process that needs to maintain a long connection with the server can be avoided from being accidentally closed, and the intelligent terminal system can be guaranteed. While the mobile phone is in normal use, system resources are saved, especially the power consumption of the smart phone is reduced.

实施例三Embodiment three

为了更好地实施以上方法,本发明实施例还提供一种基于数据包的处理装置,该处理装置可以集成在终端中,该终端可以是智能手机等设备。In order to better implement the above method, an embodiment of the present invention further provides a packet-based processing device, which can be integrated into a terminal, which can be a device such as a smart phone.

如图3a所示,该基于数据包的处理装置可以包括:接收模块301、获取模块302、判断模块303、处理模块304,具体描述如下:As shown in Figure 3a, the data packet-based processing device may include: a receiving module 301, an obtaining module 302, a judging module 303, and a processing module 304, which are specifically described as follows:

接收模块301,用于接收服务器通过网络发送的数据包,该数据包用于维持与该服务器之间的网络连接;The receiving module 301 is configured to receive a data packet sent by the server through the network, and the data packet is used to maintain a network connection with the server;

获取模块302,用于获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率;An obtaining module 302, configured to obtain a wake-up frequency of waking up the terminal system through the data packet within a preset time period;

判断模块303,用于判断该唤醒频率是否大于预设阈值;A judging module 303, configured to judge whether the wake-up frequency is greater than a preset threshold;

处理模块304,用于在该判断模块判断为是时,禁止通过该数据包唤醒该终端系统。The processing module 304 is configured to prohibit waking up the terminal system through the data packet when the judging module judges yes.

优选地,如图3b所示,该处理模块304具体包括:第一确定子模块3041、第一处理子模块3043,具体如下:Preferably, as shown in FIG. 3b, the processing module 304 specifically includes: a first determining submodule 3041 and a first processing submodule 3043, specifically as follows:

该第一确定子模块3041,用于确定该数据包对应的目标应用进程;The first determining submodule 3041 is configured to determine the target application process corresponding to the data packet;

该第一处理子模块3043,用于关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统。The first processing sub-module 3043 is configured to close the target application process, so as to prohibit waking up the terminal system through the data packet.

优选地,该第一确定子模块3041具体用于:Preferably, the first determining submodule 3041 is specifically used for:

根据该数据包获取相应的用户标识;Obtain the corresponding user ID according to the data packet;

根据该用户标识获取相应的目标应用进程的进程标识;Acquiring the process identification of the corresponding target application process according to the user identification;

根据该进程标识确定相应的目标应用进程。A corresponding target application process is determined according to the process identifier.

优选地,该第一处理子模块3043具体用于:Preferably, the first processing submodule 3043 is specifically used for:

判断预设应用进程集合中是否存在与该目标应用进程相同的应用进程;Judging whether there is an application process identical to the target application process in the preset application process set;

若是,则关闭该目标应用进程,以禁止通过该数据包唤醒该终端系统。If yes, close the target application process, so as to prohibit the terminal system from being woken up by the data packet.

优选地,如图3c所示,该处理模块304具体包括:第二确定子模块3042、第二处理子模块3044,具体如下:Preferably, as shown in FIG. 3c, the processing module 304 specifically includes: a second determining submodule 3042 and a second processing submodule 3044, specifically as follows:

第二确定子模块3042,用于确定该数据包对应的目标应用进程;The second determining submodule 3042 is configured to determine the target application process corresponding to the data packet;

第二处理子模块3044,用于阻止该目标应用进程连接网络,以禁止通过该数据包唤醒该终端系统。The second processing sub-module 3044 is configured to prevent the target application process from connecting to the network, so as to prohibit waking up the terminal system through the data packet.

由上可知,本发明实施例提供了一种基于数据包的处理装置,通过接收模块301接收服务器通过网络发送的数据包,获取模块302获取在预设时间段内通过该数据包唤醒终端系统的唤醒频率,判断模块303判断该唤醒频率是否大于预设阈值,当判断为是时,处理模块304禁止通过该数据包唤醒该终端系统;该方案可以监控通过数据包唤醒终端系统的唤醒频率,当该唤醒频率大于预设阈值时,禁止通过该数据包唤醒该终端系统,相对于现有技术而言,若接收到服务器通过网络发送的数据包频繁唤醒终端系统,则禁止再次通过该数据包唤醒终端系统,使得终端系统不需要被频繁唤醒,从而节省了系统资源,特别是减少了终端的电量消耗。It can be seen from the above that the embodiment of the present invention provides a data packet-based processing device, the receiving module 301 receives the data packet sent by the server through the network, and the obtaining module 302 obtains the information of waking up the terminal system through the data packet within a preset time period. Wake-up frequency, the judging module 303 judges whether the wake-up frequency is greater than a preset threshold, and when it is judged to be yes, the processing module 304 prohibits waking up the terminal system through the data packet; this solution can monitor the wake-up frequency of the terminal system through the data packet, when When the wake-up frequency is greater than the preset threshold, it is forbidden to wake up the terminal system through the data packet. Compared with the prior art, if the terminal system is frequently woken up by the data packet sent by the server through the network, it is forbidden to wake up the terminal system through the data packet again The terminal system prevents the terminal system from being frequently woken up, thereby saving system resources, especially reducing power consumption of the terminal.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、磁盘或光盘等。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 storage medium, and the storage medium can include: Read Only Memory (ROM, Read Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

以上对本发明实施例所提供的一种基于数据包的处理方法及装置进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用程序范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to a data packet-based processing method and device provided by the embodiment of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only for helping Understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application range. In summary, the content of this specification is not It should be understood as a limitation of the present invention.

Claims (5)

1. a kind of processing method based on packet, it is characterised in that including:
The packet that the reception server is sent by network, the packet is used to maintain the network between the server to connect Connect;
Obtain the wakeup frequency for waking up terminal system by the packet in preset time period;
Judge whether the wakeup frequency is more than predetermined threshold value;
If so, then obtaining the network address carried in the packet and port information;
User's mark that the packet is pointed to is determined according to the network address and the port information;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID);
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
2. processing method according to claim 1, it is characterised in that have the step of the closing intended application process Body includes:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
3. a kind of processing unit based on packet, it is characterised in that including:
Receiving module, the packet sent for the reception server by network, the packet is used to maintain and the service Network connection between device;
Acquisition module, the wakeup frequency of terminal system is waken up for obtaining in preset time period by the packet;
Judge module, for judging whether the wakeup frequency is more than predetermined threshold value;
Processing module, for when the judge module is judged as YES, obtaining the network address and end carried in the packet Message ceases;
User's mark that the packet is pointed to is determined according to the network address and the port information;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID);
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
4. processing unit according to claim 3, it is characterised in that the intended application process is closed, so that no thoroughfare When the packet wakes up the terminal system, the processing module specifically for:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
5. a kind of storage medium, it is characterised in that be stored with computer program in the storage medium, when the computer program When running on computers so that the processing method based on packet described in the computer perform claim requirement 1 or 2.
CN201610379854.4A 2016-05-31 2016-05-31 A kind of processing method and processing device based on packet Expired - Fee Related CN106102141B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610379854.4A CN106102141B (en) 2016-05-31 2016-05-31 A kind of processing method and processing device based on packet
PCT/CN2017/086472 WO2017206875A1 (en) 2016-05-31 2017-05-29 Data packet-based processing method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610379854.4A CN106102141B (en) 2016-05-31 2016-05-31 A kind of processing method and processing device based on packet

Publications (2)

Publication Number Publication Date
CN106102141A CN106102141A (en) 2016-11-09
CN106102141B true CN106102141B (en) 2017-10-17

Family

ID=57230589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610379854.4A Expired - Fee Related CN106102141B (en) 2016-05-31 2016-05-31 A kind of processing method and processing device based on packet

Country Status (2)

Country Link
CN (1) CN106102141B (en)
WO (1) WO2017206875A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102141B (en) * 2016-05-31 2017-10-17 广东欧珀移动通信有限公司 A kind of processing method and processing device based on packet
CN106102142B (en) * 2016-05-31 2017-11-17 广东欧珀移动通信有限公司 terminal data processing method and device
CN106686633A (en) * 2017-02-20 2017-05-17 苏州蜗牛数字科技股份有限公司 Method for preventing WIFI malicious frequent awakening
CN106937258B (en) * 2017-03-10 2019-07-12 Oppo广东移动通信有限公司 Broadcast control method and device and mobile terminal
CN107027141B (en) * 2017-05-08 2019-02-12 Oppo广东移动通信有限公司 Information processing method and device and mobile terminal
CN109461238A (en) * 2018-10-30 2019-03-12 北京摩拜科技有限公司 Control method for vehicle, server, vehicle and Vehicular system
CN109901697A (en) * 2019-03-04 2019-06-18 上海卓易科技股份有限公司 A method, apparatus, device and medium for reducing system power consumption
CN110687998A (en) * 2019-09-18 2020-01-14 华为技术有限公司 Application management method and device
CN112187733A (en) * 2020-09-09 2021-01-05 青岛海信移动通信技术股份有限公司 Network side equipment, terminal and talkback method
CN112084494A (en) * 2020-09-21 2020-12-15 百度在线网络技术(北京)有限公司 Sensitive information detection method, device, equipment and storage medium
CN115551057A (en) * 2022-09-06 2022-12-30 深圳市千岩科技有限公司 Low power consumption communication method, system and device
CN117135729B (en) * 2023-01-20 2024-05-24 荣耀终端有限公司 Multi-device collaboration method, system and terminal device
CN117135730B (en) * 2023-02-07 2024-07-23 荣耀终端有限公司 Interrupt processing method and electronic device
CN117389733B (en) * 2023-10-25 2024-04-26 无锡众星微系统技术有限公司 SAS I/O scheduling method and device for reducing switch chain overhead
CN120301797A (en) * 2024-01-04 2025-07-11 荣耀终端股份有限公司 A long connection control method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7589629B2 (en) * 2007-02-28 2009-09-15 Apple Inc. Event recorder for portable media device
CN103118188A (en) * 2013-01-25 2013-05-22 华为终端有限公司 Application heartbeat cycle adjusting method and device, and terminal
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN103970255A (en) * 2014-04-01 2014-08-06 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140032542A (en) * 2012-08-30 2014-03-17 삼성전자주식회사 A method and apparatus for determining heartbeat period of push service in wireless network
CN109803359B (en) * 2013-11-15 2022-05-31 华为终端有限公司 Method for awakening terminal system and terminal
CN103971050A (en) * 2014-05-21 2014-08-06 深圳市中兴移动通信有限公司 Mobile terminal awakening control method and device and mobile terminal
CN106102141B (en) * 2016-05-31 2017-10-17 广东欧珀移动通信有限公司 A kind of processing method and processing device based on packet
CN106102142B (en) * 2016-05-31 2017-11-17 广东欧珀移动通信有限公司 terminal data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7589629B2 (en) * 2007-02-28 2009-09-15 Apple Inc. Event recorder for portable media device
CN103312766A (en) * 2011-11-15 2013-09-18 华为技术有限公司 Method, system and device for supporting permanent online of application client
CN103118188A (en) * 2013-01-25 2013-05-22 华为终端有限公司 Application heartbeat cycle adjusting method and device, and terminal
CN103970255A (en) * 2014-04-01 2014-08-06 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
WO2017206875A1 (en) 2017-12-07
CN106102141A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106102141B (en) A kind of processing method and processing device based on packet
US9970966B2 (en) Method, device and computer storage medium for detecting power consumption of an application
CN104584621B (en) Hybrid off-site/on-site predictive computing for reducing wireless reconnection time for computing devices
CN106055074A (en) Application program processing method and device
CN106102142B (en) terminal data processing method and device
US20240267242A1 (en) Device identification and policy enforcement using power over ethernet (poe)
CN106055073A (en) Processing method and device based on screen-lighting lock
CN103780447B (en) A kind of flow control methods and device
CN106055077A (en) A processing method and device based on wake lock
CN104915283B (en) Method and device for measuring power consumption of mobile terminal
US20130055271A1 (en) Apparatus and method for controlling polling
CN105916100A (en) Heartbeat packet agency method, device and communication system
CN105874773B (en) Task processing device, intelligent equipment, task processing method and baseband processor
CN108616653A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110267296B (en) State detection method and device
CN105636155A (en) Method and device for controlling a wireless access point
CN105208516B (en) A kind of bluetooth page method and apparatus
CN105100125A (en) Sleep control method, sleep control device and sleep control system for virtual desktop
CN105635447A (en) Method for preventing background flow loss of application program
EP3962180B1 (en) Network-based control method for power consumption of applications, terminal and storage medium
CN105245735A (en) A terminal control method and device
CN109756972A (en) A method for waking up an application program, a network side device and a terminal
US20220357789A1 (en) Application freezing control method and device, terminal, and readable storage medium
CN106604367A (en) Method and apparatus for hot-spot sleep of terminal
CN105828421A (en) A terminal and a method for saving power of the terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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

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

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

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

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171017

CF01 Termination of patent right due to non-payment of annual fee