CN110881212B - Method and device for saving power of equipment, electronic equipment and medium - Google Patents

Method and device for saving power of equipment, electronic equipment and medium Download PDF

Info

Publication number
CN110881212B
CN110881212B CN201911247389.9A CN201911247389A CN110881212B CN 110881212 B CN110881212 B CN 110881212B CN 201911247389 A CN201911247389 A CN 201911247389A CN 110881212 B CN110881212 B CN 110881212B
Authority
CN
China
Prior art keywords
packet
filtering
data packet
matching
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911247389.9A
Other languages
Chinese (zh)
Other versions
CN110881212A (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 CN201911247389.9A priority Critical patent/CN110881212B/en
Publication of CN110881212A publication Critical patent/CN110881212A/en
Application granted granted Critical
Publication of CN110881212B publication Critical patent/CN110881212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • 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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method and a device for saving electricity of equipment, electronic equipment and a medium. After the target data packet is acquired, the target data packet is matched with a filtering strategy to generate a matching result, wherein the filtering strategy is generated based on the data packet acquired in the history period, and when the matching result corresponds to the information to be filtered, the target data packet is cleared. By applying the technical scheme of the application, the filtering strategy generated by the terminal according to the abnormal packets acquired in the historical period can be used for filtering and matching each received packet data and clearing useless packets in the packet data. Further, the problem of power consumption increase caused by frequent wake-up of the terminal for processing of the useless data packet in the related art can be avoided.

Description

Method and device for saving power of equipment, electronic equipment and medium
Technical Field
The present application relates to data processing technologies, and in particular, to a method and apparatus for saving power for a device, an electronic device, and a medium.
Background
Due to the rise of the communications age and society, mobile terminals have been continuously developed with the use of more and more users.
At present, a mobile terminal generally has a wireless communication function, and a user can realize the functions of video communication, online payment, film watching and the like through the wireless communication function of the mobile terminal. Further, when the user uses the wireless communication function of the mobile terminal daily, it is necessary to open the wireless signal connection in real time. During this time, there may be a case where the wireless access point transmits a corresponding data packet to the terminal. In particular, when a wireless access point sends a data packet to a terminal, the terminal must wake up the sleep state to process the data packet.
However, there may be a case where the terminal is frequently awakened by the useless packet in the related art, which also results in an increase in power consumption of the terminal.
Disclosure of Invention
The embodiment of the application provides a method and a device for saving electricity of equipment, electronic equipment and a medium.
According to an aspect of an embodiment of the present application, a method for saving power of a device is provided, which is characterized by including:
acquiring a target data packet;
matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in a history period;
and when the matching result corresponds to the information to be filtered, clearing the target data packet.
According to another aspect of the embodiment of the present application, there is provided an apparatus for saving power of a device, including:
the acquisition module is set to acquire the target data packet;
the generation module is used for matching the target data packet with a filtering strategy, and generating a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in the history period;
and the clearing module is used for clearing the target data packet when the matching result corresponds to the information to be filtered.
According to still another aspect of an embodiment of the present application, there is provided an electronic apparatus including:
a memory for storing executable instructions; and
and the display is used for displaying with the memory to execute the executable instructions so as to finish the operation of the power saving method of any device.
According to still another aspect of the embodiments of the present application, there is provided a computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method for power saving of any of the above-described devices.
In the application, after a target data packet is acquired, the target data packet is matched with a filtering strategy to generate a matching result, wherein the filtering strategy is the matching strategy generated based on the data packet acquired in a history period, and when the matching result corresponds to information to be filtered, the target data packet is cleared. By applying the technical scheme of the application, the filtering strategy generated by the terminal according to the abnormal packets acquired in the historical period can be used for filtering and matching each received packet data and clearing useless packets in the packet data. Further, the problem of power consumption increase caused by frequent wake-up of the terminal for processing of the useless data packet in the related art can be avoided.
The technical scheme of the application is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The application may be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a system architecture for power saving of a visual device according to the present application;
FIG. 2 is a schematic diagram of a method for saving power of an apparatus according to the present application;
FIG. 3 is a flow chart of a wake-up mechanism of a mobile terminal according to the present application;
FIG. 4 is a schematic diagram of a method for saving power of an apparatus according to the present application;
FIG. 5 is a schematic diagram illustrating a power saving process of the device according to the present application;
FIG. 6 is a schematic diagram of a power saving device of the apparatus of the present application;
fig. 7 is a schematic diagram showing the structure of an electronic device according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
In addition, the technical solutions of the embodiments of the present application may be combined with each other, but it is necessary to be based on the fact that those skilled in the art can implement the technical solutions, and when the technical solutions are contradictory or cannot be implemented, the combination of the technical solutions should be considered as not existing, and not falling within the scope of protection claimed by the present application.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicators are correspondingly changed.
A method for performing power saving of a device according to an exemplary embodiment of the present application is described below with reference to fig. 1 to 5. It should be noted that the following application scenarios are only shown for facilitating understanding of the spirit and principles of the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the application may be applied to any scenario where applicable.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 to which a video processing method or video processing apparatus of an embodiment of the application may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices with display screens including, but not limited to, smartphones, tablet computers, portable computers, desktop computers, and the like.
The terminal apparatuses 101, 102, 103 in the present application may be terminal apparatuses providing various services. For example, the user obtains the target data packet through the terminal device 103 (may also be the terminal device 101 or 102); matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in a history period; and when the matching result corresponds to the information to be filtered, clearing the target data packet.
It should be noted that, the video processing method provided in the embodiment of the present application may be executed by one or more of the terminal devices 101, 102, 103 and/or the server 105, and accordingly, the video processing apparatus provided in the embodiment of the present application is generally disposed in the corresponding terminal device and/or the server 105, but the present application is not limited thereto.
The application also provides a method and a device for saving electricity of the equipment, a target terminal and a medium.
Fig. 2 schematically shows a flow diagram of a method for power saving of a device according to an embodiment of the application. As shown in fig. 2, the method is applied to a mobile terminal, and includes:
s101, acquiring a target data packet.
In the present application, the device for acquiring the target data packet is not specifically limited, and may be, for example, an intelligent device or a server. The intelligent device can be a PC (Personal Computer ), a smart phone, a tablet computer, an electronic book reader or an MP3 (Moving Picture Experts Group AudioLayer III, dynamic image expert compression standard audio layer 3) device, which saves power. MP4 (Moving Picture ExpertsGroup Audio Layer IV, MPEG audio layer 4) equipment, portable terminal equipment with display function, etc.
The present application is not limited to the target packet. The data packet may be, for example, a data packet transmitted by a wireless access point AP in a wireless communication network. Among them, the wireless Access Point (Access Point AP) is a wireless switch for a wireless network, and is also a core of the wireless network. Wireless APs are access points for mobile computer users to access wired networks, primarily for broadband homes, building interiors, and campus interiors. In addition, the object may be a data packet sent by an application program in the terminal through the AP point, or may be a data packet sent by the WIFI router through the AP point, or the like.
The wireless communication network in the present application may be a Wi-Fi communication connection, a bluetooth communication connection, or a communication connection network such as a second generation communication technology, a third generation communication technology, a fourth generation communication technology, or the like. For convenience of description, the following description will be made by taking a wireless communication network as a Wi-Fi network as an example in the embodiments of the present application.
Further, power consumption of mobile terminals has been an important issue to be addressed by various manufacturers, and WiFi power consumption has been an important issue as an important communication means of mobile terminals. When the user does not use the mobile terminal, the mobile terminal is in the dormant state, so that the electricity consumption of the mobile terminal is reduced, the endurance time of the mobile terminal is prolonged, the bottom layer interface of the mobile terminal receives data information and carries out corresponding processing work, the mobile terminal cannot be awakened, the mobile terminal can be kept in the dormant state, the mobile terminal is kept in the low electricity consumption state, the time of the mobile terminal in the dormant state is prolonged, and the endurance time of the mobile terminal is further prolonged. When the user uses the mobile terminal, the mobile terminal is in a non-dormant state, and the mobile terminal enters a normal working mode, so that the user can perform corresponding operations on the mobile terminal, such as enjoying audio and video, browsing web pages or playing games.
Optionally, as shown in fig. 3, the sleep wake-up process of the mobile terminal is initiated by the software layer, the AP issues the sleep command to the WiFi Hardware through the WiFi firmware (WiFi Firmware WIFI FW) layer, and the sleep needs to be performed according to the sequence relation. Further, while waking up is the contrary to sleeping, according to the execution of Hardware- > FW- > AP (passive waking up), the higher the waking up is, the more power is consumed.
Further optionally, after the mobile terminal enters the sleep mode, the mobile terminal wakes up itself every preset period to check whether the AP has a buffered packet. It can be appreciated that when the AP has a buffered data packet for the mobile terminal, the mobile terminal obtains the corresponding data packet through the WiFi management frame (WIFI Power Save Poll PS-POLL) until all the data packets are taken out, and the mobile terminal goes to sleep again.
It should be noted that when an AP has packets to the mobile terminal, the mobile terminal must wake up to process, but when there are more useless abnormal packets in the network, the terminal needs to receive and process all the packets frequently. Resulting in an inability to enter the dormant mode. The data in the abnormal data packet is not really the data processed by the mobile terminal, so that unnecessary power consumption of the mobile terminal is caused. Thereby reducing the user experience.
The present application is not limited to the number of target packets, and may be, for example, one or a plurality of target packets.
S102, matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in the history period.
Furthermore, in the application, after the target data packet is obtained, in order to avoid the problem of frequent wake-up of the mobile terminal caused by processing all the data packets, the target data packet can be matched with the filtering strategy to generate a matching result. It should be noted that, the filtering policy may be a matching policy dynamically generated by the mobile terminal according to the data packets received in the history period. For example, the mobile terminal may generate a corresponding filtering policy according to all received data packets and their corresponding labels of whether or not they are garbage data packets within the last 30 days.
The time range of the history period is not particularly limited, and may be, for example, 10 days, 30 days, or the like.
The filtering policy in the present application may be a policy for formulating filtering information. It can be understood that, in order to not affect the normal operation of the mobile terminal, whether the data information received by the mobile terminal belongs to the filtering information is determined by determining whether the data information received by the mobile terminal is the tag type contained in the filtering data information.
Alternatively, the present application is not limited in particular to the filtering strategy. For example, the filtering policy may include a type of information of the filtering data packet, that is, whether the filtering data packet needs to be filtered may be determined by determining the type of information of the data packet. It can be understood that when the information type of the data information received by the mobile terminal is the abnormal packet data type contained in the filtering policy, it is determined that the data packet belongs to the filtering information. If the data type of the data information received by the mobile terminal is not the abnormal packet data type contained in the filtering strategy, judging that the data information does not belong to the filtering information.
Alternatively, the filtering information included in the filtering policy may be a packet corresponding to multicast (multicast) or broadcast (broadcast) data, WIFI frame, address packet, or the like.
And S103, when the matching result corresponds to the information to be filtered, the target data packet is cleared.
Further, in the present application, when the mobile terminal determines that the received target data packet belongs to the information to be filtered, the data packet is cleared. And the mobile terminal can be in a dormant state continuously, so that the electric quantity duration of the mobile terminal is prolonged.
It can be understood that when the mobile terminal determines that the received data packet does not belong to the filtering information according to the matching result, the data packet is directly transmitted to the corresponding processing interface of the mobile terminal for processing, and then the mobile terminal needs to be awakened to enter a processing mode, such as online payment, push message receiving and the like, so as to complete the corresponding processing work of the received data packet.
In the application, after a target data packet is acquired, the target data packet is matched with a filtering strategy to generate a matching result, wherein the filtering strategy is the matching strategy generated based on the data packet acquired in a history period, and when the matching result corresponds to information to be filtered, the target data packet is cleared. By applying the technical scheme of the application, the filtering strategy generated by the terminal according to the abnormal packets acquired in the historical period can be used for filtering and matching each received packet data and clearing useless packets in the packet data. Further, the problem of power consumption increase caused by frequent wake-up of the terminal for processing of the useless data packet in the related art can be avoided.
Optionally, in one possible implementation manner of the present application, before the step S102 of the present application (matching the target data packet with the filtering policy to generate a matching result), the following two cases may be included:
First case:
acquiring a first data packet;
analyzing the first data packet to obtain a first sending object corresponding to the first data packet;
determining a packet sending frequency of the first sending object in a first history period based on the first sending object;
when the packet sending frequency is larger than a first frequency threshold value, marking the packet data sent by a first sending object as abnormal packet data;
based on the exception package data, a filtering policy is generated.
According to the application, the corresponding filtering strategy can be automatically generated according to the data packet received by the mobile terminal in the history period. Further, the packet frequency of the first transmission object may be first collected during the first history period. And when detecting that the packet sending frequency of the first sending object is larger than a first frequency threshold value, judging that the sending frequency has the condition of frequently waking up the terminal. Thus, the first transmission object is set as an abnormal object. Further, the packet data transmitted by the abnormal object is marked as abnormal packet data.
It should be noted that the present application is not limited to a specific embodiment, and may correspond to an application, a MAC address, a transmission protocol, a wireless communication access point, or the like.
In addition, the present application is not particularly limited as well, and it may be 30 days, 60 days, or the like, for example. Further, the first frequency threshold is not specifically limited in the present application, and may be, for example, 60pkt/min, 100pkt/min, or the like.
In the application, the corresponding filtering strategy can be generated based on the sending frequency of the sending object. For example, with the first transmission object as the application program a, the first history period is 30 days, the first frequency threshold is 60pkt/min, and after the mobile terminal receives the data packets, each data packet can be parsed, so as to obtain the transmission object corresponding to each data packet. Further, after the mobile terminal determines respective sending objects according to the received first data packets, an application program A with the sending frequency exceeding 60pkt/min can be determined. And sets the application a as an abnormal object. Further, the packet data sent by the application program a is marked as abnormal packet data. It can be appreciated that the present application can add the abnormal packet data as the correspondence of the application program a to the filtering policy. So that the packet data sent by the application program A can be directly cleared after the packet data is received again according to the matching result. So as to avoid the defect that the mobile terminal cannot be in the sleep mode due to frequent packet sending of the application program A.
Or, the MAC address of the first sending object is B, the first history period is 50 days, the first frequency threshold is 80pkt/min, and when the mobile terminal determines, according to each received first data packet, the mobile terminal determines that the packet sending frequency corresponding to the sending object with the MAC address of B exceeds 80pkt/min. And sets the transmission object whose MAC address is B as an abnormal object. Further, the packet data transmitted by the transmission object whose MAC address is B is marked as abnormal packet data. It can be understood that, after the present application determines, according to the matching result, that the packet data sent by the sending object with the MAC address B is received again, the packet data can be cleared directly. So as to avoid the defect that the mobile terminal cannot be in the sleep mode due to frequent packet sending of the sending object.
Second case:
acquiring a second data packet;
analyzing the second data packet to obtain a packet type parameter corresponding to the second data packet;
determining a packet sending frequency for the packet type during a second historical period based on the packet type parameter;
when the packet sending frequency is greater than a second frequency threshold value, marking the packet data corresponding to the packet type as abnormal packet data;
Based on the exception package data, a filtering policy is generated.
According to the application, the corresponding filtering strategy can be automatically generated according to the data packet received by the mobile terminal in the history period. Further, the packet sending frequency of the packet type corresponding to the second data packet may be collected first in the second history period. And when detecting that the packet sending frequency of the packet data of the type is larger than a second frequency threshold value, judging that the situation of frequent awakening of the terminal exists in the sending frequency. Thus, the packet data of this type is set as an abnormal object. Further, the packet data transmitted by this type of packet data is marked as abnormal packet data.
It should be noted that the present application is not limited to the packet type specifically, and may be, for example, a unicast packet type, a multicast packet type, a frame type, an address type, a protocol type, and the like.
In addition, the present application is not particularly limited as well, and it may be 30 days, 60 days, or the like, for example. Wherein the second history period may be the same as the first history period, and the second history period may be different from the first history period. Further, the second frequency threshold is not specifically limited in the present application, and may be, for example, 60pkt/min, 100pkt/min, or the like. And the second frequency threshold may be the same as the first frequency threshold, or the second frequency threshold may be different from the first frequency threshold.
In the application, the corresponding filtering strategy can be generated based on the sending frequency of the sending object. For example, the packet type is a WIFI frame type, the second history period is 30 days, the second frequency threshold is 60pkt/min, and after the mobile terminal receives the data packets, the mobile terminal can parse each data packet, so as to obtain a type parameter corresponding to each data packet. Further, when the mobile terminal determines respective type information according to the type parameters of each received second data packet, the data packet with the packet sending frequency exceeding 60pkt/min and being of the WIFI frame type can be determined. And setting the WIFI frame type as an anomaly type. Further, the packet data of the WIFI frame type is marked as abnormal packet data. It can be appreciated that the application can add the correspondence of the abnormal packet data as the WIFI frame type to the filtering policy. So that the WIFI frame type packet data can be directly cleared after being received again according to the matching result. So as to avoid the defect that the mobile terminal cannot be in the sleep mode due to frequent packet sending of the abnormal data packet.
Alternatively, in one possible implementation manner of the present application, in the step S102 of the present application (matching the target data packet with the filtering policy to generate a matching result), the following two cases may be included:
First case:
based on the abnormal packet data, generating a full-time-period filtering strategy, wherein the full-time-period filtering strategy is a strategy for matching all target packet data before detecting the occurrence of a preset event.
Further, the present application can be divided into a full-time filtering strategy and a periodic filtering strategy in the process of generating the filtering strategy. The full-time filtering strategy is a strategy for matching all target packet data before detecting that a preset event occurs, so as to determine whether the data packet is information to be filtered. It can be understood that in the process of starting the full-period filtering strategy, filtering detection needs to be performed on each data packet, so that the disturbance of the abnormal data packet can be reduced to the maximum extent for the mobile terminal.
It should be noted that the present application is not limited to specific preset events, for example, it may be an event generated by a user to close a filtering policy, or may be an event generated when a change in a wireless communication parameter transmission currently connected to a mobile terminal is detected, etc.
Second case:
based on the abnormal packet data, generating a periodic filtering strategy, wherein the periodic filtering strategy is a strategy for matching the target packet data every a first preset time period.
Further, the periodic filtering strategy is a strategy for matching the target packet data every a first preset time period to determine whether the data packet is information to be filtered. It can be understood that in the process of starting the periodic filtering strategy, each data packet needs to be filtered and detected periodically, so that the problem that a specific object or a specific type of data packet is always filtered by the filtering strategy and the corresponding data packet cannot be received by the mobile terminal can be avoided.
It should be noted that the first preset time period is not specifically limited in the present application, for example, the first preset time period may be 30 minutes, 1 hour, or the like.
Optionally, in a possible embodiment of the present application, after generating the filtering policy based on the abnormal packet data, the following steps may be further implemented:
and when detecting that the wireless communication parameters of the mobile terminal are changed, clearing the filtering strategy.
Further, the present application is not limited to the specific wireless communication parameters, for example, the wireless communication parameters may be the name of the connected wireless network, or the information of the wireless access point, etc. Furthermore, the application can determine that the wireless communication parameters are changed when the event of WiFi reconnection or WIFI restarting of the mobile terminal is detected, so as to further clear the filtering strategy.
Further, in the present application, since the filtering policy is based on the filtering policy generated by the abnormal data packet received by the mobile terminal in the history period. And may be present due to the occurrence of the abnormal data packet caused by a wireless access point failure in the wireless communication network. Therefore, the application can delete the filtering strategy when detecting the change event of the wireless communication parameters of the mobile terminal. To avoid the reason that a specific object or a specific type of data packet is not always received due to the previous wireless access point failure.
Alternatively, in one possible implementation of the present application, in the step S102 of the present application (matching the target data packet with the filtering policy), the following steps may be implemented:
detecting the residual electric quantity information of the mobile terminal;
when the residual electric quantity information is lower than a first electric quantity threshold value, matching the target data packet by utilizing a full-time-period filtering strategy;
and when the residual electric quantity information is not lower than the first electric quantity threshold value, matching the target data packet by utilizing a periodic filtering strategy.
After the full-period filtering strategy and the periodic filtering strategy are generated, the corresponding filtering strategy can be further selected for the residual electric quantity information of the mobile terminal to execute. Further, when the remaining power information of the mobile terminal is determined to be lower than the first power threshold, it may be determined that the remaining power of the mobile terminal is lower, so that the target data packet may be matched by using a full-time filtering policy. It can be appreciated that the disruption of the abnormal data packet can be reduced to the maximum extent for the mobile terminal during the time period filtering strategy is initiated by the mobile terminal. Thereby increasing the endurance time of the terminal.
Furthermore, the present application can utilize the periodic filtering strategy to match the target data packet when determining that the remaining capacity information of the mobile terminal is higher than or equal to the first capacity threshold. It can be understood that, because the remaining power of the mobile terminal is relatively high, during the period when the mobile terminal starts the periodic filtering policy, the problem that the mobile terminal cannot receive the corresponding data packet due to the fact that the specific object or the data packet of the specific type is always filtered by the filtering policy by mistake can be avoided.
The first power threshold is not specifically limited, and may be, for example, 3% or 10%.
Optionally, in one possible implementation of the present application, before the step S102 of the present application (matching the target data packet with the filtering policy to generate a matching result), the following steps may be implemented:
acquiring a preset hardware filtering rule, wherein the hardware filtering rule corresponds to at least one filtering mode of broadcast packet filtering, multicast packet filtering, specific protocol filtering, wiFi frame type filtering and MAC address filtering;
and matching the target data packet based on the hardware filtering rule and the filtering strategy to generate a matching result.
It can be understood that when the filtering strategy is generated based on the abnormal data packet, the method can also be based on the preset hardware filtering rule, and match the target data packet at the same time, so as to more accurately generate the matching result of whether the data packet is the filtering information.
The hardware filtering rules in the application can be obtained based on the filtering rules transmitted by the server, and can also be manually set by a user according to the self requirements. It should be noted that, the hardware filtering rule in the present application may correspond to at least one filtering manner of filtering a broadcast packet, filtering a multicast packet, filtering a specific protocol, filtering a WiFi frame type, and filtering a MAC address. For example, when the user sets the data packet of the HTTP transmission protocol as the hardware filtering rule, when the mobile terminal subsequently receives the data packet of the HTTP transmission protocol, the data packet is directly filtered.
Further alternatively, in the process of matching the target data packet based on the hardware filtering rule and the filtering policy, the following manner may be implemented:
detecting the residual electric quantity information of the mobile terminal;
when the residual electric quantity information is lower than a second electric quantity threshold value, matching the target data packet by utilizing a hardware filtering rule, and matching the target packet data every second preset time period by utilizing a filtering strategy;
Or alternatively, the first and second heat exchangers may be,
and when the residual electric quantity information is not lower than the second electric quantity threshold value, matching the target packet data every third preset time period by utilizing a hardware filtering rule and a filtering strategy.
After the hardware filtering rule is generated, the corresponding filtering strategy can be further selected for the residual electric quantity information of the mobile terminal to execute. Furthermore, when the remaining power information of the mobile terminal is determined to be lower than the second power threshold, it may be determined that the remaining power of the mobile terminal is lower, so that the target data packet may be always matched by using a hardware filtering rule, and the target packet data may be matched by using a periodic filtering policy every second preset time period. It can be understood that when the electric quantity of the mobile terminal is low, the hardware filtering rule can be opened in real time, so that the disturbance of the abnormal data packet is reduced to the maximum extent for the mobile terminal. Thereby increasing the endurance time of the terminal.
Furthermore, when the remaining power information of the mobile terminal is determined to be higher than or equal to the second power threshold, the method can match the target data packet by utilizing a hardware filtering rule and a periodic filtering strategy every third preset time period. It can be understood that, because the remaining power of the mobile terminal is relatively high, during the period when the mobile terminal starts the periodic filtering policy, the problem that the mobile terminal cannot receive the corresponding data packet due to the fact that the specific object or the data packet of the specific type is always filtered by the filtering policy by mistake can be avoided.
The second electric quantity threshold value is not particularly limited, and may be, for example, 5% or 10%. Similarly, the second preset time period and the third preset time period are not specifically limited, and may be, for example, 1 day, 1 hour, or the like.
Optionally, in one possible embodiment of the present application, after the step S102 of the present application (matching the target data packet with the filtering policy to generate a matching result), a method for saving power of a device is further included, as shown in fig. 4, including:
s201, acquiring a target data packet;
s202, matching a target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on an abnormal data packet acquired in a historical period;
and S203, when the matching result corresponds to the information to be filtered, the target data packet is cleared.
And S204, when the matching result is detected to be corresponding to non-filtering information, the target data packet is sent to an upper layer interface for processing.
Further, in the present application, when the data information received by the mobile terminal does not belong to the information to be filtered, the data information is directly transmitted to the corresponding processing interface of the mobile terminal for processing, and then the mobile terminal needs to be awakened to enter a normal working mode, such as watching a movie, shooting a picture or playing a game, so as to complete the corresponding processing work of the received data information, for example, the mobile terminal in the normal working mode receives the push information of the application program, and transmits the push information to the upper layer interface of the mobile terminal, so that the user directly views the push information of the application program, and the like.
With reference to fig. 5, a flowchart of a method for saving power of a device according to the present application is shown, where a mobile terminal may first receive a data packet in a history period, obtain a first transmission object corresponding to the first data packet, determine a packet sending frequency of the first transmission object based on the first transmission object, and generate abnormal packet data according to the packet sending frequency. And acquiring a packet type corresponding to the second data packet, determining the packet sending frequency of the type based on the packet type, and generating abnormal packet data according to the packet sending frequency. And generating a corresponding full-time filtering strategy and a periodic filtering strategy based on the generated abnormal packet data. At this time, before the target data packet is matched by using the filtering policy, the remaining capacity information of the current terminal may be detected first, and when the remaining capacity information of the mobile terminal is detected to be lower than the first electric capacity threshold, the target data packet is matched by using the full-time filtering policy. Or when the residual electric quantity information of the mobile terminal is detected not to be lower than the first electric quantity threshold value, the periodic filtering strategy is utilized to match the target data packet.
In the application, after a target data packet is acquired, the target data packet is matched with a filtering strategy to generate a matching result, wherein the filtering strategy is the matching strategy generated based on the data packet acquired in a history period, and when the matching result corresponds to information to be filtered, the target data packet is cleared. By applying the technical scheme of the application, the filtering strategy generated by the terminal according to the abnormal packets acquired in the historical period can be used for filtering and matching each received packet data and clearing useless packets in the packet data. Further, the problem of power consumption increase caused by frequent wake-up of the terminal for processing of the useless data packet in the related art can be avoided.
In another embodiment of the present application, as shown in fig. 6, the present application further provides a device for saving power. The device comprises an acquisition module 301, a generation module 302, and a cleaning module 303, wherein:
an acquisition module 301 configured to acquire a target packet;
a generating module 302, configured to match the target data packet with a filtering policy, and generate a matching result, where the filtering policy is a matching policy generated based on the data packet acquired in the history period;
and the clearing module 303 is configured to clear the target data packet when the matching result corresponds to the information to be filtered.
In the application, after a target data packet is acquired, the target data packet is matched with a filtering strategy to generate a matching result, wherein the filtering strategy is the matching strategy generated based on the data packet acquired in a history period, and when the matching result corresponds to information to be filtered, the target data packet is cleared. By applying the technical scheme of the application, the filtering strategy generated by the terminal according to the abnormal packets acquired in the historical period can be used for filtering and matching each received packet data and clearing useless packets in the packet data. Further, the problem of power consumption increase caused by frequent wake-up of the terminal for processing of the useless data packet in the related art can be avoided.
In another embodiment of the present application, the obtaining module 301 further includes:
an acquisition module 301 configured to acquire a first data packet;
the acquiring module 301 is configured to parse the first data packet, and acquire a first sending object corresponding to the first data packet;
an acquisition module 301 configured to determine, based on the first transmission object, a packet sending frequency of the first transmission object in a first history period;
an obtaining module 301, configured to mark the packet data sent by the first sending object as abnormal packet data when the packet sending frequency is greater than a first frequency threshold;
the obtaining module 301 is configured to generate the filtering policy based on the abnormal packet data.
In another embodiment of the present application, the obtaining module 301 further includes:
an acquisition module 301 configured to acquire a second data packet;
the obtaining module 301 is configured to parse the second data packet, and obtain a packet type parameter corresponding to the second data packet;
an acquisition module 301 configured to determine, based on the packet type parameter, a packet sending frequency for the packet type during a second history period;
an obtaining module 301, configured to mark the packet data corresponding to the packet type as abnormal packet data when the packet sending frequency is greater than a second frequency threshold;
The obtaining module 301 is configured to generate the filtering policy based on the abnormal packet data.
In another embodiment of the present application, the method further comprises a generating module 303, wherein:
a generating module 303, configured to generate a full-time filtering policy based on the abnormal packet data, where the full-time filtering policy is a policy that matches all the target packet data before detecting that a preset event occurs;
the method comprises the steps of,
the generating module 303 is configured to generate a periodic filtering policy based on the abnormal packet data, where the periodic filtering policy is a policy that matches the target packet data every a first preset time period.
In another embodiment of the present application, the generating module 302 further includes:
a generating module 302, configured to generate a full-time filtering policy based on the abnormal packet data, where the full-time filtering policy is a policy that matches all the target packet data before detecting that a preset event occurs;
the method comprises the steps of,
the generating module 302 is configured to generate a periodic filtering policy based on the abnormal packet data, where the periodic filtering policy is a policy that matches the target packet data every a first preset time period.
In another embodiment of the present application, the generating module 302 further includes:
a generating module 302 configured to detect remaining power information of the mobile terminal;
a generating module 302, configured to match the target data packet with the full-time filtering policy when the remaining power information is lower than a first power threshold;
and the generating module 302 is configured to match the target data packet by using the periodic filtering strategy when the residual power information is not lower than the first power threshold.
In another embodiment of the present application, the cleaning module 303 further includes:
and the clearing module 303 is configured to clear the filtering policy when detecting that the wireless communication parameters of the mobile terminal are changed.
In another embodiment of the present application, the obtaining module 301 further includes:
the obtaining module 301 is configured to obtain a preset hardware filtering rule, where the hardware filtering rule corresponds to at least one filtering mode of filtering a broadcast packet, filtering a multicast packet, filtering a specific protocol, filtering a WiFi frame type, and filtering a MAC address;
the obtaining module 301 is configured to match the target data packet based on the hardware filtering rule and the filtering policy, and generate a matching result.
In another embodiment of the present application, the generating module 303 further includes:
a generating module 303 configured to detect remaining power information of the mobile terminal;
a generating module 303, configured to match the target packet with the hardware filtering rule and match the target packet data every second preset time period with the filtering policy when the remaining power information is lower than a second power threshold;
or alternatively, the first and second heat exchangers may be,
and the generating module 303 is configured to match the target packet data every third preset time period by using the hardware filtering rule and the filtering policy when the remaining power information is not lower than the second power threshold.
In another embodiment of the present application, the method further includes a sending module 304, where:
and the sending module 304 is configured to send the target data packet to an upper layer interface for processing when the matching result is detected to be non-filtering information.
Fig. 7 is a block diagram of a logic structure of an electronic device, according to an example embodiment. For example, electronic device 400 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, an electronic device 400 may include one or more of the following components: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores such as a 4-core processor, an 8-core processor, etc. The processor 401 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 401 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 401 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 401 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement the interactive special effect calibration method provided by the method embodiments of the present application.
In some embodiments, the electronic device 400 may further optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402, and peripheral interface 403 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 403 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, a touch display 405, a camera 406, audio circuitry 407, a positioning component 408, and a power supply 409.
Peripheral interface 403 may be used to connect at least one Input/Output (I/O) related peripheral to processor 401 and memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 401, memory 402, and peripheral interface 403 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 404 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 404 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 404 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 404 may also include NFC (Near Field Communication ) related circuitry, which is not limiting of the application.
The display screen 405 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to collect touch signals at or above the surface of the display screen 405. The touch signal may be input as a control signal to the processor 401 for processing. At this time, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing a front panel of the electronic device 400; in other embodiments, the display screen 405 may be at least two, and disposed on different surfaces of the electronic device 400 or in a folded design; in still other embodiments, the display 405 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 400. Even more, the display screen 405 may be arranged in an irregular pattern that is not rectangular, i.e. a shaped screen. The display 405 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple and separately disposed at different locations of the electronic device 400. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 407 may also include a headphone jack.
The location component 408 is used to locate the current geographic location of the electronic device 400 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 408 may be a positioning component based on the united states GPS (Global Positioning System ), the beidou system of china, the grainer system of russia, or the galileo system of the european union.
The power supply 409 is used to power the various components in the electronic device 400. The power supply 409 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When power supply 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 400 further includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyroscope sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the electronic device 400. For example, the acceleration sensor 411 may be used to detect components of gravitational acceleration on three coordinate axes. The processor 401 may control the touch display screen 405 to display a user interface in a lateral view or a longitudinal view according to the gravitational acceleration signal acquired by the acceleration sensor 411. The acceleration sensor 411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the electronic device 400, and the gyro sensor 412 may collect a 3D motion of the user on the electronic device 400 in cooperation with the acceleration sensor 411. The processor 401 may implement the following functions according to the data collected by the gyro sensor 412: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 413 may be disposed at a side frame of the electronic device 400 and/or at an underlying layer of the touch screen 405. When the pressure sensor 413 is disposed on a side frame of the electronic device 400, a grip signal of the user on the electronic device 400 may be detected, and the processor 401 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 414 is used to collect a fingerprint of the user, and the processor 401 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, saving power to the device, and changing settings, etc. The fingerprint sensor 414 may be provided on the front, back, or side of the electronic device 400. When a physical key or vendor Logo is provided on the electronic device 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 according to the ambient light intensity collected by the optical sensor 415. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 405 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
A proximity sensor 416, also referred to as a distance sensor, is typically provided on the front panel of the electronic device 400. The proximity sensor 416 is used to collect distance between the user and the front of the electronic device 400. In one embodiment, when the proximity sensor 416 detects a gradual decrease in the distance between the user and the front of the electronic device 400, the processor 401 controls the touch display 405 to switch from the bright screen state to the off screen state; when the proximity sensor 416 detects that the distance between the user and the front surface of the electronic device 400 gradually increases, the processor 401 controls the touch display screen 405 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 7 is not limiting of the electronic device 400 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as memory 404, including instructions executable by processor 420 of electronic device 400 to perform a method of conserving power in the device, the method comprising: acquiring a target data packet; matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in a history period; and when the matching result corresponds to the information to be filtered, clearing the target data packet. Optionally, the above instructions may also be executed by the processor 420 of the electronic device 400 to perform the other steps involved in the above-described exemplary embodiments. Optionally, the above instructions may also be executed by the processor 420 of the electronic device 400 to perform the other steps involved in the above-described exemplary embodiments. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by the processor 420 of the electronic device 400 to perform the above-described device power saving method, the method comprising: acquiring a target data packet; matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in a history period; and when the matching result corresponds to the information to be filtered, clearing the target data packet. Optionally, the above instructions may also be executed by the processor 420 of the electronic device 400 to perform the other steps involved in the above-described exemplary embodiments. Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A method for power saving of a device, comprising:
acquiring a target data packet;
matching the target data packet with a filtering strategy to generate a matching result, wherein the filtering strategy is a matching strategy generated based on the abnormal data packet acquired in the history period;
when the matching result corresponds to the information to be filtered, the target data packet is cleared;
wherein the matching the target data packet with the filtering policy includes: detecting the residual electric quantity information of the mobile terminal; when the residual electric quantity information is lower than a first electric quantity threshold value, matching the target data packet by utilizing a full-time-period filtering strategy; and when the residual electric quantity information is not lower than the first electric quantity threshold value, matching the target data packet by utilizing a periodic filtering strategy, wherein the full-time-period filtering strategy is a strategy for matching all the target packet data before detecting that a preset event occurs, and the periodic filtering strategy is a strategy for matching the target packet data every first preset time period.
2. The method of claim 1, further comprising, prior to said matching the target data packet with a filtering policy, generating a matching result:
acquiring a first data packet;
analyzing the first data packet to obtain a first sending object corresponding to the first data packet;
determining a packet sending frequency of the first sending object in a first history period based on the first sending object;
when the packet sending frequency is larger than a first frequency threshold value, marking the packet data sent by the first sending object as abnormal packet data;
and generating the filtering strategy based on the abnormal packet data.
3. The method of claim 1, further comprising, prior to said matching the target data packet with a filtering policy, generating a matching result:
acquiring a second data packet;
analyzing the second data packet to obtain a packet type parameter corresponding to the second data packet;
determining a packet frequency for the packet type during a second historical period based on the packet type parameter;
when the packet sending frequency is larger than a second frequency threshold value, marking the packet data corresponding to the packet type as abnormal packet data;
And generating the filtering strategy based on the abnormal packet data.
4. A method as claimed in claim 2 or 3, wherein said generating said filtering policy based on said exception packet data comprises:
generating the full-time filtering strategy based on the abnormal packet data;
the method comprises the steps of,
and generating the periodic filtering strategy based on the abnormal packet data.
5. The method of claim 4, further comprising, after generating the filtering policy based on exception packet data:
and when detecting that the wireless communication parameters of the mobile terminal are changed, clearing the filtering strategy.
6. The method of claim 1, further comprising, prior to said matching the target data packet with a filtering policy, generating a matching result:
acquiring a preset hardware filtering rule, wherein the hardware filtering rule corresponds to at least one filtering mode of broadcast packet filtering, multicast packet filtering, specific protocol filtering, wiFi frame type filtering and MAC address filtering;
and matching the target data packet based on the hardware filtering rule and the filtering strategy to generate a matching result.
7. The method of claim 6, wherein said matching the target data packet with a filtering policy comprises:
detecting the residual electric quantity information of the mobile terminal;
when the residual electric quantity information is lower than a second electric quantity threshold value, matching the target data packet by utilizing the hardware filtering rule, and matching the target packet data every second preset time period by utilizing the filtering strategy;
or alternatively, the first and second heat exchangers may be,
and when the residual electric quantity information is not lower than the second electric quantity threshold value, matching the target packet data every third preset time period by utilizing the hardware filtering rule and the filtering strategy.
8. The method of claim 1, further comprising, after said matching the target data packet with a filtering policy, generating a matching result:
and when the matching result is detected to be non-filtering information, the target data packet is sent to an upper layer interface for processing.
9. An apparatus for power saving in a device, comprising:
the acquisition module is set to acquire the target data packet;
the generation module is used for matching the target data packet with a filtering strategy, and generating a matching result, wherein the filtering strategy is a matching strategy generated based on the data packet acquired in the history period;
The clearing module is configured to clear the target data packet when the matching result corresponds to the information to be filtered
Wherein, the generating module is specifically configured to: detecting the residual electric quantity information of the mobile terminal; when the residual electric quantity information is lower than a first electric quantity threshold value, matching the target data packet by utilizing a full-time-period filtering strategy; and when the residual electric quantity information is not lower than the first electric quantity threshold value, matching the target data packet by utilizing a periodic filtering strategy, wherein the full-time-period filtering strategy is a strategy for matching all the target packet data before detecting that a preset event occurs, and the periodic filtering strategy is a strategy for matching the target packet data every first preset time period.
10. An electronic device, comprising:
a memory for storing executable instructions; the method comprises the steps of,
a processor for displaying with the memory to execute the executable instructions to perform operations of the method for conserving power in the apparatus of any of claims 1-8.
11. A computer readable storage medium storing computer readable instructions which, when executed, perform the operations of the method of power saving of the apparatus of any one of claims 1-8.
CN201911247389.9A 2019-12-09 2019-12-09 Method and device for saving power of equipment, electronic equipment and medium Active CN110881212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911247389.9A CN110881212B (en) 2019-12-09 2019-12-09 Method and device for saving power of equipment, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911247389.9A CN110881212B (en) 2019-12-09 2019-12-09 Method and device for saving power of equipment, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110881212A CN110881212A (en) 2020-03-13
CN110881212B true CN110881212B (en) 2023-08-25

Family

ID=69730637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911247389.9A Active CN110881212B (en) 2019-12-09 2019-12-09 Method and device for saving power of equipment, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110881212B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840358A (en) * 2020-06-24 2021-12-24 Oppo(重庆)智能科技有限公司 Message filtering method, mobile terminal and computer readable storage medium
CN113518344B (en) * 2021-07-21 2022-05-10 荣耀终端有限公司 User equipment and energy saving method and medium thereof
CN114189445B (en) * 2021-12-03 2023-03-10 威创集团股份有限公司 USB signal transparent transmission processing method, device, terminal and storage medium
CN115407864A (en) * 2022-09-30 2022-11-29 维沃移动通信有限公司 Data processing method, data processing apparatus, electronic device, and readable storage medium
CN117135730A (en) * 2023-02-07 2023-11-28 荣耀终端有限公司 Interrupt processing method and electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267313A (en) * 2008-04-23 2008-09-17 华为技术有限公司 Flooding attack detection method and detection device
JP2010176946A (en) * 2009-01-28 2010-08-12 Kyocera Corp Fuel battery device
CN102592080A (en) * 2011-12-26 2012-07-18 北京奇虎科技有限公司 Flash malicious file detection method and flash malicious file detection device
WO2013014119A1 (en) * 2011-07-22 2013-01-31 Nec Europe Ltd. Method and system for measuring network operation related parameters in a mobile communication network
CN105468416A (en) * 2015-11-30 2016-04-06 魅族科技(中国)有限公司 Application program clearing method and terminal
WO2017088440A1 (en) * 2015-11-24 2017-06-01 乐视控股(北京)有限公司 Method for extending operable duration of terminal device and terminal device
CN106996087A (en) * 2017-06-02 2017-08-01 宁波力度警用装备科技有限公司 A kind of car arrester
CN107231679A (en) * 2017-06-20 2017-10-03 维沃移动通信有限公司 A kind of data package processing method and mobile terminal
CN108055189A (en) * 2017-10-30 2018-05-18 努比亚技术有限公司 A kind of message treatment method, terminal and computer readable storage medium
CN109388222A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Power-saving processing method, device and mobile terminal and computer readable storage medium
CN109413143A (en) * 2018-09-10 2019-03-01 金卡智能集团股份有限公司 A kind of Internet of Things instrument low-power consumption timing long-distance communicating method
CN109413022A (en) * 2018-04-28 2019-03-01 武汉思普崚技术有限公司 A kind of method and apparatus based on user behavior detection HTTP FLOOD attack
CN109688136A (en) * 2018-12-27 2019-04-26 深信服科技股份有限公司 A kind of detection method, system and the associated component of spoofed IP attack
CN109873835A (en) * 2019-03-29 2019-06-11 北京经纬恒润科技有限公司 A kind of message handling system and method
CN109918566A (en) * 2019-02-15 2019-06-21 Oppo广东移动通信有限公司 Querying method, device, electronic equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8682342B2 (en) * 2009-05-13 2014-03-25 Microsoft Corporation Constraint-based scheduling for delivery of location information

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267313A (en) * 2008-04-23 2008-09-17 华为技术有限公司 Flooding attack detection method and detection device
JP2010176946A (en) * 2009-01-28 2010-08-12 Kyocera Corp Fuel battery device
WO2013014119A1 (en) * 2011-07-22 2013-01-31 Nec Europe Ltd. Method and system for measuring network operation related parameters in a mobile communication network
CN102592080A (en) * 2011-12-26 2012-07-18 北京奇虎科技有限公司 Flash malicious file detection method and flash malicious file detection device
WO2017088440A1 (en) * 2015-11-24 2017-06-01 乐视控股(北京)有限公司 Method for extending operable duration of terminal device and terminal device
CN105468416A (en) * 2015-11-30 2016-04-06 魅族科技(中国)有限公司 Application program clearing method and terminal
CN106996087A (en) * 2017-06-02 2017-08-01 宁波力度警用装备科技有限公司 A kind of car arrester
CN107231679A (en) * 2017-06-20 2017-10-03 维沃移动通信有限公司 A kind of data package processing method and mobile terminal
CN109388222A (en) * 2017-08-04 2019-02-26 中兴通讯股份有限公司 Power-saving processing method, device and mobile terminal and computer readable storage medium
CN108055189A (en) * 2017-10-30 2018-05-18 努比亚技术有限公司 A kind of message treatment method, terminal and computer readable storage medium
CN109413022A (en) * 2018-04-28 2019-03-01 武汉思普崚技术有限公司 A kind of method and apparatus based on user behavior detection HTTP FLOOD attack
CN109413143A (en) * 2018-09-10 2019-03-01 金卡智能集团股份有限公司 A kind of Internet of Things instrument low-power consumption timing long-distance communicating method
CN109688136A (en) * 2018-12-27 2019-04-26 深信服科技股份有限公司 A kind of detection method, system and the associated component of spoofed IP attack
CN109918566A (en) * 2019-02-15 2019-06-21 Oppo广东移动通信有限公司 Querying method, device, electronic equipment and medium
CN109873835A (en) * 2019-03-29 2019-06-11 北京经纬恒润科技有限公司 A kind of message handling system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无线传感器网络中虚假数据过滤方案;朱凌志;赵巾帼;刘志雄;黄俊杰;梁俊斌;;计算机应用研究(12);全文 *

Also Published As

Publication number Publication date
CN110881212A (en) 2020-03-13

Similar Documents

Publication Publication Date Title
CN110881212B (en) Method and device for saving power of equipment, electronic equipment and medium
CN110971930B (en) Live virtual image broadcasting method, device, terminal and storage medium
CN110944374B (en) Communication mode selection method and device, electronic equipment and medium
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN110162254B (en) Display method and terminal equipment
CN109739394B (en) SAR value processing method and mobile terminal
CN112965683A (en) Volume adjusting method and device, electronic equipment and medium
CN111031170A (en) Method, apparatus, electronic device and medium for selecting communication mode
CN109189303B (en) Text editing method and mobile terminal
CN110933494A (en) Picture sharing method and electronic equipment
CN107613139B (en) Schedule reminding method and mobile terminal
CN111158815B (en) Dynamic wallpaper blurring method, terminal and computer readable storage medium
CN116871982A (en) Device and method for detecting spindle of numerical control machine tool and terminal equipment
CN108200635B (en) Operation control method of application program and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN107729100B (en) Interface display control method and mobile terminal
CN109688064B (en) Data transmission method and device, electronic equipment and storage medium
CN111309133A (en) Power saving control method and electronic equipment
CN114785766B (en) Control method, terminal and server of intelligent equipment
CN112860046A (en) Method, apparatus, electronic device and medium for selecting operation mode
CN109729280A (en) A kind of image processing method and mobile terminal
CN111158780B (en) Method, device, electronic equipment and medium for storing application data
CN111464737B (en) Electric quantity indication method and electronic equipment
CN111010496B (en) Image processing method and electronic equipment
CN109918566B (en) Query method, query device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant