WO2020206701A1 - Data processing method and apparatus, storage medium, and electronic device - Google Patents

Data processing method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2020206701A1
WO2020206701A1 PCT/CN2019/082565 CN2019082565W WO2020206701A1 WO 2020206701 A1 WO2020206701 A1 WO 2020206701A1 CN 2019082565 W CN2019082565 W CN 2019082565W WO 2020206701 A1 WO2020206701 A1 WO 2020206701A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
notification messages
application notification
electronic device
level
Prior art date
Application number
PCT/CN2019/082565
Other languages
French (fr)
Chinese (zh)
Inventor
吴建文
张寅祥
帅朝春
陆天洋
戴堃
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980092360.XA priority Critical patent/CN113439434B/en
Priority to PCT/CN2019/082565 priority patent/WO2020206701A1/en
Publication of WO2020206701A1 publication Critical patent/WO2020206701A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • 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

Definitions

  • This application relates to the field of electronic technology, and in particular to a data processing method, device, storage medium and electronic equipment.
  • the embodiments of the present application provide a data processing method, device, storage medium, and electronic equipment, which can improve network signal strength.
  • an embodiment of the present application provides a data processing method applied to an electronic device, including:
  • an embodiment of the present application provides a data processing device applied to an electronic device, and the data processing device includes:
  • the stop module is used to stop receiving application notification messages when the electronic device enters the sleep mode
  • the processing module is used to receive application notification messages that are not currently received at a preset time period, and then stop receiving application notification messages again;
  • the restoring module is used to restore the reception of application notification messages when exiting the sleep mode.
  • an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform the following steps:
  • an embodiment of the present application provides an electronic device including a processor and a storage medium, the storage medium stores multiple instructions, and the processor loads the instructions to perform the following steps:
  • FIG. 1 is a schematic diagram of the first flow of a data processing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a second flow of a data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of the third flow of a data processing method provided by an embodiment of the present application.
  • Fig. 4 is a first structural diagram of a data processing device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a second structure of a data processing device provided by an embodiment of the present application.
  • FIG. 6 is a third structural diagram of a data processing device provided by an embodiment of the present application.
  • FIG. 7 is a fourth structural diagram of a data processing device provided by an embodiment of the present application.
  • Fig. 8 is a fifth structural schematic diagram of a data processing device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the embodiments of the present application provide a data processing method, device, storage medium, and electronic equipment, which will be described in detail below.
  • the data processing method is applied to electronic equipment.
  • the electronic device may be a smart terminal such as a smart phone or a tablet computer.
  • the data processing method may include the following steps:
  • the electronic device When the electronic device enters the sleep mode, it stops receiving application notification messages.
  • peripherals such as smart bracelets, heart rate meters, and respirometers can be connected to electronic devices, and users can wear devices such as smart bracelets, heart rate meters, and respirometers.
  • Devices such as smart bracelets, heart rate meters, and respirometers can monitor the user's physiological data and send it to electronic devices.
  • the electronic device can determine whether the electronic device enters a sleep state based on the received physiological data and related algorithms.
  • a sleep prediction model can be constructed based on the user's historical sleep data to predict whether the user enters a sleep state. For example, data such as current time information, geographic location information, and motion status of electronic devices can be combined to predict whether the user is in a sleep state based on the constructed sleep preset model. If yes, it is determined that the electronic device enters the sleep state, otherwise, it is determined that the electronic device does not enter the sleep state.
  • the electronic device when it is detected that the user enters the sleep state, in order to save power consumption of the electronic device, it can be controlled to stop receiving application notification messages, such as instant messaging messages, application push messages, system messages, etc.
  • application notification messages such as instant messaging messages, application push messages, system messages, etc.
  • a sleep prediction model can be constructed based on the sleep information data of the user in a historical time period (such as within a month, within a week) in advance, so that the sleep duration of the current user can be predicted subsequently based on the sleep preset model.
  • the current season spring, summer, autumn and winter
  • climate temperature, weather
  • the user's sleep duration can be predicted according to his historical sleep information, and then the sleep duration can be divided into multiple time periods, and the event period can be regarded as the aforementioned preset time period.
  • the application notification message to be received is detected, the restriction of stopping the electronic device from receiving the application notification message is cancelled, and the application notification message to be received can be obtained.
  • the currently detected application notification message can be pulled from the server to implement data processing.
  • the sleep duration can be divided into 4 cycles based on a preset rule, and each cycle is 2 hours.
  • the preset rules can be set by those skilled in the art or the product manufacturer; in addition, they can also be set independently by the user.
  • the time period may be a period of unequal duration.
  • the first period can be divided into 4 hours, the second period is 2 hours, the third period is 1 hour, and the fourth period is 1 hour.
  • the detection operation of the application notification message to be received is performed every other period. For example, it checks whether there are application notification messages to be received every 2 hours.
  • the network connection when the electronic device is in a sleep state, the network connection can be disconnected to save power consumption, and a time period can be set.
  • the detection time reaches the time period, the network is temporarily connected to receive background messages, and so on , Receive application notification messages intermittently (such as periodically).
  • the step "stop receiving application notification messages" may include the following process:
  • disconnecting the network connected to the electronic device includes disconnecting the wireless network and the data network, thereby preventing the electronic device from receiving application notification messages.
  • the step of "receiving application notification messages that are not currently received every preset time period, and then stop receiving application notification messages again” may include the following process:
  • sleep duration is 8 hours, divided into 4 cycles, each cycle is 2 hours.
  • the control electronic device is connected to the current network, which may be a wireless network or a data network.
  • the wireless network can be connected first.
  • the method before receiving the currently unreceived application notification message every preset time period, and then stopping receiving the application notification message again, the method may further include the following process:
  • the applications installed in the electronic device can be classified in advance.
  • application levels can be divided according to the user's application usage habits, commonly used application levels are divided into higher levels, and infrequently used application levels are divided into lower levels.
  • the historical usage information of the application may include information such as the usage frequency, usage duration, foreground running duration, running time point, etc. in the historical time period.
  • the current network After obtaining the application notification message to be received based on the current network, the current network can also be disconnected, so that the electronic device cannot obtain the application notification message, so that it is in a sleep state, and the power consumption of the electronic device is reduced.
  • the corresponding application may be opened in advance based on the historical usage data of the application.
  • the step "stop receiving application notification messages” may include the following process:
  • the step of "receiving application notification messages that are not currently received every preset time period” may include the following process:
  • the number of statistics is 1; when the completion of the second message reception is detected, the number of statistics is 2; when the completion of the third message reception is detected, the number of statistics is 3. And so on.
  • the correspondence between the number of message receptions and the application level may be established in advance. That is, in some embodiments, before receiving application notification messages that are not currently received based on a preset time period, and then stopping receiving application notification messages again, the following process may also be included:
  • the application levels can be divided according to the user's application usage habits, and the commonly used application levels can be divided into higher levels. Applications that are not commonly used are classified into lower levels.
  • the usage information of each application may include information such as usage frequency, usage duration, foreground running duration, running time point, etc. in the historical time period.
  • step of "determining the corresponding target application level according to the number of times" may include the following process:
  • the application level corresponding to the acquisition times is used as the target application level.
  • a notification message receiving strategy can also be formulated based on the actual sleep duration of the user. For example, if the total number of the aforementioned divided time periods is 4, the application levels are also divided into 4 levels accordingly. Then, the time periods are numbered as the first period, the second period, the third period, and the fourth period according to the sequence of the period. . And each divided period is regarded as the aforementioned preset time period, and each period can be divided into equal duration or unequal duration. For example, the duration of the first period may be different from the duration of the second period or may be the same. Finally, establish the mapping relationship between the first cycle and the first application level, the mapping relationship between the second cycle and the second application level, and so on. Among them, the first application level is the highest level, and the fourth application level is the lowest level.
  • the target period number can be determined based on the number of time periods counted when the message is received and the mapping relationship, and then the corresponding application level can be determined based on the number. For example, if the current number of time periods is 2, it can be determined that the corresponding period number is the second period. According to the mapping relationship, the application level corresponding to the second period can be obtained as the second application level, and the second application level is taken as Target application level. Then, the application corresponding to the application level is determined as the application that can currently receive application notification messages, and the notification message receiving permission of these applications is restored.
  • the second application level is the target application level
  • an application corresponding to the second application level (for example, an application with the second application level) can be acquired as the target application.
  • the step of "receiving an application notification message that is not currently received” may specifically be: unfreezing the target application to obtain the application notification message to be received.
  • the step of "determining the target application corresponding to the target application level from the frozen applications” may include the following process:
  • An application whose application level is the target application level and an application whose application level is higher than the target application level are determined from the frozen applications as the target application.
  • the second application level is the target application level
  • an application with the second application level and an application with the first application level can be acquired as the target application.
  • these applications can be unfrozen, so that notification messages for these applications can be received.
  • the electronic device when the electronic device enters sleep mode, it stops receiving application notification messages; every preset time period, it receives application notification messages that are not currently received, and then stops receiving application notifications again Message; when exiting the sleep mode, resume receiving application notification messages.
  • the electronic device enters the sleep state by periodically receiving notification messages from the application, the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
  • An embodiment of the present application also provides a data processing apparatus 300, which may be integrated in an electronic device, which may be a smart terminal device such as a smart phone or a tablet computer.
  • the data processing device 300 may include: a stop module 31, a processing module 32, and a recovery module 33. among them:
  • the stop module 31 is used to stop receiving application notification messages when it is detected that the user enters the sleep state
  • the processing module 32 is configured to receive application notification messages that are not currently received at a preset time period, and then stop receiving application notification messages again;
  • the restoring module 33 is configured to restore the reception of application notification messages when exiting the sleep mode.
  • the stop module 31 may be specifically used to: disconnect the network currently connected to the electronic device to stop receiving application notification messages
  • the processing module 32 may include:
  • the network connection sub-module 321 is used to connect to the current network every preset time period
  • the receiving submodule 322 is configured to receive unreceived application notification messages based on the current network
  • the network disconnection sub-module 323 is configured to disconnect the current network to stop receiving application notification messages when the network connection duration reaches the preset duration.
  • the data processing apparatus 300 may further include:
  • the determining module 34 is configured to receive application notification messages that are not currently received at intervals of a preset time period, and then determine the target application to which the application notification message belongs before stopping receiving the application notification message again;
  • the judging module 35 is configured to judge whether the application level of the target application is higher than a preset level, wherein the application level is divided based on historical usage information of each application in the electronic device;
  • the processing module 32 may be specifically configured to receive application notification messages that are not currently received every preset time period when the judgment module 35 determines yes, and then stop receiving application notification messages again.
  • the stop module 31 may be specifically used to freeze applications installed in the electronic device to stop receiving application notification messages;
  • the processing module 32 may include:
  • the statistics sub-module 324 is configured to count the number of times the reception of the application notification message is completed every time it is detected that the reception of an application notification message is completed;
  • the first determining sub-module 325 is configured to determine the corresponding target application level according to the number of times;
  • the second determining submodule 326 is configured to determine the target application corresponding to the target application level from the frozen applications
  • the unfreezing submodule 327 is used to unfreeze the target application to obtain the application notification message to be received.
  • the data processing apparatus 300 may further include:
  • the level division module 36 is used to receive the currently unreceived application notification messages every preset time period, and then stop receiving the application notification messages again, based on the usage information of each application in the electronic device in the historical time period, to check the installed Application division application level;
  • the establishment module 37 is used to establish a mapping relationship between the preset times and the application level
  • the first determining sub-module 325 is specifically used for:
  • the application level corresponding to the number of times is obtained as the target application level.
  • the second determining submodule 326 may be used to determine from the frozen applications an application whose application level is the target application level and an application whose application level is higher than the target application level, as the Target application.
  • this embodiment of the application provides a data processing device.
  • an electronic device enters sleep mode, it stops receiving application notification messages; every preset time period, it receives application notification messages that are not currently received, and then stops receiving it again Application notification message; when exiting the sleep mode, resume receiving the application notification message.
  • the electronic device enters the sleep state, by periodically receiving notification messages from the application, the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
  • the embodiment of the application also provides an electronic device.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 is electrically connected to the memory 502.
  • the processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes by running or loading the computer program stored in the memory 502 and calling the data stored in the memory 502. Various functions of the electronic device 500 and data are processed, so as to monitor the electronic device 500 as a whole.
  • the memory 502 can be used to store software programs and modules.
  • the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, a computer program required for at least one function, and the like; the data storage area may store data created according to the use of the electronic device.
  • the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
  • the processor 501 in the electronic device 500 will load the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and run the instructions by the processor 501 and store them in the memory 502 In order to realize various functions in the computer program, as follows:
  • the processor 501 when stopping receiving application notification messages, is configured to perform the following steps:
  • the processor 501 when receiving application notification messages that are not currently received every preset time period, and then stopping receiving application notification messages again, the processor 501 is configured to perform the following steps:
  • the processor 501 before receiving application notification messages that are not currently received at every preset time period, and then stopping receiving application notification messages again, the processor 501 further performs the following steps:
  • the processor 501 is further configured to receive application notification messages that are not currently received at intervals of a preset time period when the application level of the target application is higher than the preset level.
  • the processor 501 when stopping receiving the application notification message, performs the following steps:
  • the processor 501 When receiving application notification messages that are not currently received at every preset time period, the processor 501 performs the following steps:
  • the processor 501 When acquiring the application notification message to be received, the processor 501 performs the following steps:
  • the processor 501 performs the following steps before receiving application notification messages that are not currently received at intervals of a preset time period, and then stopping receiving application notification messages again:
  • the processor 501 When determining the corresponding target application level according to the number of time periods, the processor 501 performs the following steps:
  • the processor 501 When determining the target application corresponding to the target application level from the frozen applications, the processor 501 performs the following steps:
  • an application whose application level is the target application level and an application whose application level is higher than the target application level are determined as the target application.
  • the electronic device of the embodiment of the present application stops receiving application notification messages when entering sleep mode; receives application notification messages that are not currently received every preset time period, and then stops receiving application notification messages again; In the sleep mode, the reception of application notification messages is resumed.
  • the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
  • the display 503 can be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
  • the radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to transmit and receive signals with the network equipment or other electronic equipment.
  • the audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
  • the power supply 506 can be used to power various components of the electronic device 500.
  • the power supply 506 may be logically connected to the processor 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
  • the electronic device 500 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the embodiments of the present application also provide a storage medium that stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the data processing method in any of the above embodiments, for example, when the electronic device is entering In the sleep mode, stop receiving application notification messages; every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again; when exiting the sleep mode, resume receiving application notification messages.
  • the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device.
  • the execution process can include, for example, the implementation of a data processing method Example process.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
  • its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiments of the present application provide a data processing method and apparatus, a storage medium, and an electronic device. The data processing method comprises: if an electronic device enters a sleep mode, stopping receiving application notification messages; receiving, every preset time period, application notification messages that have not been received currently, and then stopping receiving application notification messages again; and if the electronic device exits the sleep mode, resuming the reception of the application notification messages.

Description

数据处理方法、装置、存储介质及电子设备Data processing method, device, storage medium and electronic equipment 技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种数据处理方法、装置、存储介质及电子设备。This application relates to the field of electronic technology, and in particular to a data processing method, device, storage medium and electronic equipment.
背景技术Background technique
相关技术中,当用户处于睡眠状态时,智能手机、平板电脑等电子设备会将所连接的网络断开,使其无法接收到通知消息(即时通讯消息以及后台消息),从而达到降功耗的目的。当用户从睡眠状态醒来时,可以通过手动开启网络。然而,由于在电子设备未连接网络时,没能接收到的通知消息将会集中性进行通知提醒,造成电子设备卡顿,影响电子设备的正常运行。In related technologies, when the user is in a sleep state, electronic devices such as smart phones and tablets will disconnect the connected network, making it impossible to receive notification messages (instant messaging messages and background messages), thereby reducing power consumption purpose. When the user wakes up from sleep, the network can be turned on manually. However, when the electronic device is not connected to the network, notification messages that cannot be received will be notified in a centralized manner, which causes the electronic device to freeze and affect the normal operation of the electronic device.
发明内容Summary of the invention
本申请实施例提供一种数据处理方法、装置、存储介质及电子设备,可以提升网络信号强度。The embodiments of the present application provide a data processing method, device, storage medium, and electronic equipment, which can improve network signal strength.
第一方面,本申请实施例提供一种数据处理方法,应用于电子设备,包括:In the first aspect, an embodiment of the present application provides a data processing method applied to an electronic device, including:
所述电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
第二方面,本申请实施例提供一种数据处理装置,应用于电子设备,所述数据处理装置包括:In a second aspect, an embodiment of the present application provides a data processing device applied to an electronic device, and the data processing device includes:
停止模块,用于当所述电子设备在进入睡眠模式时,停止接收应用通知消息The stop module is used to stop receiving application notification messages when the electronic device enters the sleep mode
处理模块,用于每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;The processing module is used to receive application notification messages that are not currently received at a preset time period, and then stop receiving application notification messages again;
恢复模块,用于在退出所述睡眠模式时,恢复对应用通知消息的接收。The restoring module is used to restore the reception of application notification messages when exiting the sleep mode.
第三方面,本申请实施例提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:In a third aspect, an embodiment of the present application provides a storage medium in which multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform the following steps:
电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
第四方面,本申请实施例提供一种电子设备,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述处理器加载所述指令以执行以下步骤:In a fourth aspect, an embodiment of the present application provides an electronic device including a processor and a storage medium, the storage medium stores multiple instructions, and the processor loads the instructions to perform the following steps:
所述电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
为了更完整地理解本申请及其有益效果,下面将结合附图来进行以下说明,其中在下面的描述中相同的附图标号表示相同部分。In order to have a more complete understanding of the present application and its beneficial effects, the following description will be made with reference to the accompanying drawings, in which the same reference numerals in the following description represent the same parts.
图1是本申请实施例提供的数据处理方法的第一流程示意图。FIG. 1 is a schematic diagram of the first flow of a data processing method provided by an embodiment of the present application.
图2是本申请实施例提供的数据处理方法的第二流程示意图。FIG. 2 is a schematic diagram of a second flow of a data processing method provided by an embodiment of the present application.
图3是本申请实施例提供的数据处理方法的第三流程示意图。FIG. 3 is a schematic diagram of the third flow of a data processing method provided by an embodiment of the present application.
图4是本申请实施例提供的数据处理装置的第一结构示意图。Fig. 4 is a first structural diagram of a data processing device provided by an embodiment of the present application.
图5是本申请实施例提供的数据处理装置的第二结构示意图。FIG. 5 is a schematic diagram of a second structure of a data processing device provided by an embodiment of the present application.
图6是本申请实施例提供的数据处理装置的第三结构示意图。FIG. 6 is a third structural diagram of a data processing device provided by an embodiment of the present application.
图7是本申请实施例提供的数据处理装置的第四结构示意图。FIG. 7 is a fourth structural diagram of a data processing device provided by an embodiment of the present application.
图8是本申请实施例提供的数据处理装置的第五结构示意图。Fig. 8 is a fifth structural schematic diagram of a data processing device provided by an embodiment of the present application.
图9是本申请实施例提供的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图10是本申请实施例提供的电子设备的又一结构示意图。FIG. 10 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the protection scope of this application.
本申请实施例提供一种数据处理方法、装置、存储介质及电子设备,以下将分别进行详细说明。The embodiments of the present application provide a data processing method, device, storage medium, and electronic equipment, which will be described in detail below.
如图1所示,数据处理方法,应用于电子设备。该电子设备可以是智能手机、平板电脑等智能终端。该数据处理方法可以包括以下步骤:As shown in Figure 1, the data processing method is applied to electronic equipment. The electronic device may be a smart terminal such as a smart phone or a tablet computer. The data processing method may include the following steps:
101、电子设备在进入睡眠模式时,停止接收应用通知消息。101. When the electronic device enters the sleep mode, it stops receiving application notification messages.
在本申请实施例中,检测电子设备进入睡眠状态的方式可以有多种。In the embodiment of the present application, there may be multiple ways to detect that the electronic device enters the sleep state.
例如,可以将智能手环、心率计、呼吸计等外设与电子设备建立通信连接,用户可佩戴智能手环、心率计、呼吸计等设备。智能手环、心率计、呼吸计等设备可以监控用户的生理数据,并发送给电子设备。电子设备则可基于接收到的生理数据,结合相关算法,来确定电子设备是否进入睡眠状态。For example, peripherals such as smart bracelets, heart rate meters, and respirometers can be connected to electronic devices, and users can wear devices such as smart bracelets, heart rate meters, and respirometers. Devices such as smart bracelets, heart rate meters, and respirometers can monitor the user's physiological data and send it to electronic devices. The electronic device can determine whether the electronic device enters a sleep state based on the received physiological data and related algorithms.
又例如,可以基于用户的历史睡眠数据构建睡眠预测模型来预测用户是否进入睡眠状态。如可结合当前的时间信息、地理位置信息、电子设备的运动状态等数据,基于所构建的睡眠预设模型来预测用户是否处于睡眠状态。若是,则确定电子设备进入睡眠状态,否则确定电子设备未进入睡眠状态。For another example, a sleep prediction model can be constructed based on the user's historical sleep data to predict whether the user enters a sleep state. For example, data such as current time information, geographic location information, and motion status of electronic devices can be combined to predict whether the user is in a sleep state based on the constructed sleep preset model. If yes, it is determined that the electronic device enters the sleep state, otherwise, it is determined that the electronic device does not enter the sleep state.
具体的,当检测到用户进入睡眠状态时,为节省电子设备功耗可控制其停止接收应用通知消息,如即时通讯消息、应用推送消息、***消息等。实际应用中,可以通过断开电子设备当前所连网络的方式,来实现停止电子设备接收应用通知消息;或者,可以通过限制应用的权限(如网络连接权限、信息接收权限)的方式,来实现停止电子设备接收应用通知消息。Specifically, when it is detected that the user enters the sleep state, in order to save power consumption of the electronic device, it can be controlled to stop receiving application notification messages, such as instant messaging messages, application push messages, system messages, etc. In actual applications, you can stop the electronic device from receiving application notification messages by disconnecting the network that the electronic device is currently connected to; or, it can be achieved by restricting the permissions of the application (such as network connection permissions, information receiving permissions) Stop the electronic device from receiving application notification messages.
在一些实施例中,可以预先基于用户在历史时间段内(如一个月内、一周内)的睡眠信息数据构建睡眠预测模型,以便后续可基于该睡眠预设模型来预测当前用户的睡眠时长。实际应用中,可结合当前的季节(春夏秋冬)、气候(温度、天气)、地理位置、以及日程信息(工作日或休息日等),来预测当前用户的睡眠时长。In some embodiments, a sleep prediction model can be constructed based on the sleep information data of the user in a historical time period (such as within a month, within a week) in advance, so that the sleep duration of the current user can be predicted subsequently based on the sleep preset model. In practical applications, the current season (spring, summer, autumn and winter), climate (temperature, weather), geographic location, and schedule information (working days or rest days, etc.) can be combined to predict the sleep duration of the current user.
102、每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息。102. Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again.
具体地,可根据用户的历史睡眠信息预测其睡眠时长,然后将睡眠时长划分为多个时间周期,并可将该事件周期作为上述预设时间段。具体实施时,可基于该时间周期,周期性地检测是否有待接收的应用通知消息。在检测到有待接收的应用通知消息时,取消停止电子设备接收应用通知消息限定,并可获取待接收的应用通知消息。具体的,可将当前所检测到的应用通知消息从服务器中拉取下来,实现数据处理。Specifically, the user's sleep duration can be predicted according to his historical sleep information, and then the sleep duration can be divided into multiple time periods, and the event period can be regarded as the aforementioned preset time period. During specific implementation, it is possible to periodically detect whether there is an application notification message to be received based on the time period. When the application notification message to be received is detected, the restriction of stopping the electronic device from receiving the application notification message is cancelled, and the application notification message to be received can be obtained. Specifically, the currently detected application notification message can be pulled from the server to implement data processing.
例如,睡眠时长为8小时,则可以基于预设规则将睡眠时长划分为4个周期,每一周期为2小时。预设规则可由本领域技术人员或产品生产产商进行设置;另外,也可以由用户自主进行设置。For example, if the sleep duration is 8 hours, the sleep duration can be divided into 4 cycles based on a preset rule, and each cycle is 2 hours. The preset rules can be set by those skilled in the art or the product manufacturer; in addition, they can also be set independently by the user.
在一些实施例中,该时间周期可以是不等时长的周期。例如,可以划分第一周期为4小时,第二周期为2小时,第三周期为1小时,第四周期为1小时。In some embodiments, the time period may be a period of unequal duration. For example, the first period can be divided into 4 hours, the second period is 2 hours, the third period is 1 hour, and the fourth period is 1 hour.
具体的,基于所划分的时间周期,每隔一周期时长执行一次待接收的应用通知消息的检测操作。如,每隔2小时执行一次检测是否有待接收的应用通知消息。Specifically, based on the divided time period, the detection operation of the application notification message to be received is performed every other period. For example, it checks whether there are application notification messages to be received every 2 hours.
在一些实施例中,当电子设备处于睡眠状态时,可通过断开网络连接以进行功耗节省,并设置时间周期,在检测到时间达到时间周期时,临时连接网络接收后台消息,依此类推,间歇性(如周期性)地接收应用通知消息。例如,参考图2,步骤“停止接收应用通知消息”可以包括以下流程:In some embodiments, when the electronic device is in a sleep state, the network connection can be disconnected to save power consumption, and a time period can be set. When the detection time reaches the time period, the network is temporarily connected to receive background messages, and so on , Receive application notification messages intermittently (such as periodically). For example, referring to Figure 2, the step "stop receiving application notification messages" may include the following process:
1011、断开当前电子设备所连网络,以停止接收应用通知消息;1011. Disconnect the network currently connected to the electronic device to stop receiving application notification messages;
具体的,断开电子设备所连网络,包括断开无线网络和数据网络,从而实现阻止电子设备接收应用通知消息。Specifically, disconnecting the network connected to the electronic device includes disconnecting the wireless network and the data network, thereby preventing the electronic device from receiving application notification messages.
则,步骤“每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息”,可以包括以下流程:Then, the step of "receiving application notification messages that are not currently received every preset time period, and then stop receiving application notification messages again" may include the following process:
1021、每隔预设时间段连接当前网络;1021. Connect to the current network every preset time period;
例如,睡眠时长为8小时,划分为4个周期,每一周期2小时。则当检测到完成第一周期时,控制电子设备连接当前网络,可以是无线网络或数据网络。其中,可以优先连接无线网络。For example, sleep duration is 8 hours, divided into 4 cycles, each cycle is 2 hours. Then, when it is detected that the first cycle is completed, the control electronic device is connected to the current network, which may be a wireless network or a data network. Among them, the wireless network can be connected first.
1022、基于当前网络接收当前未接收的应用通知消息,并在连网时长达到预设时长时,断开当前网络以停止接收应用通知消息。1022. Receive application notification messages that are not currently received based on the current network, and disconnect the current network to stop receiving application notification messages when the network connection time reaches a preset time length.
在一些实施例中,在每隔预设时间段,接收当前未接收的应用通知消息, 然后再次停止接收应用通知消息之前,该方法还可以包括以下流程:In some embodiments, before receiving the currently unreceived application notification message every preset time period, and then stopping receiving the application notification message again, the method may further include the following process:
确定所述应用通知消息所属的目标应用;Determine the target application to which the application notification message belongs;
判断所述目标应用的应用级别是否高于预设级别,其中,所述应用级别基于电子设备中各应用的历史使用信息划分得到;Judging whether the application level of the target application is higher than a preset level, where the application level is obtained based on historical usage information of each application in the electronic device;
若是,则执行每隔预设时间段,接收当前未接收的应用通知消息的步骤。If yes, execute the step of receiving application notification messages that are not currently received every preset time period.
具体的,可以预先对电子设备中所安装的应用进行等级划分。实际应用中,可以根据用户的应用使用习惯划分应用等级,将常用的应用等级划分为较高级别,将不常用的应用等级划分为较低级别。Specifically, the applications installed in the electronic device can be classified in advance. In actual applications, application levels can be divided according to the user's application usage habits, commonly used application levels are divided into higher levels, and infrequently used application levels are divided into lower levels.
其中,应用的历史使用信息可以包括在历史时间段内的使用频率、使用时长、前台运行时长、运行时间点等等信息。Among them, the historical usage information of the application may include information such as the usage frequency, usage duration, foreground running duration, running time point, etc. in the historical time period.
在基于当前网络获取待接收的应用通知消息之后,还可以断开当前网络,从而使电子设备无法获取应用通知消息,使其处于睡眠状态,降低电子设备功耗。After obtaining the application notification message to be received based on the current network, the current network can also be disconnected, so that the electronic device cannot obtain the application notification message, so that it is in a sleep state, and the power consumption of the electronic device is reduced.
在一些实施例中,在用户进入睡眠状态后,结束睡眠状态前,可基于应用的历史使用数据阶段性地提前打开对应的应用。例如,参考图3,步骤“停止接收应用通知消息”可以包括以下流程:In some embodiments, after the user enters the sleep state and before ending the sleep state, the corresponding application may be opened in advance based on the historical usage data of the application. For example, referring to Figure 3, the step "stop receiving application notification messages" may include the following process:
1012、冻结电子设备中所安装应用,以停止接收应用通知消息;1012. Freeze the applications installed in the electronic device to stop receiving application notification messages;
具体的,在电子设备处于睡眠状态时,可冻结电子设备中所安装的所有应用,限制其运行,从而实现阻止电子设备接收应用通知消息。Specifically, when the electronic device is in a sleep state, all applications installed in the electronic device can be frozen to restrict its operation, thereby preventing the electronic device from receiving application notification messages.
则,步骤“每隔预设时间段,接收当前未接收的应用通知消息”,可以包括以下流程:Then, the step of "receiving application notification messages that are not currently received every preset time period" may include the following process:
1023、每当检测到完成一次应用通知消息的接收,统计完成接收的次数;1023. Whenever it is detected that the reception of an application notification message is completed, count the number of times the reception is completed;
例如,当检测到完成第一次消息接收时,统计次数为1;当检测到完成第二消息接收时,统计次数为2;当检测到完成第三次消息接收时,统计次数量为3,以此类推。For example, when the completion of the first message reception is detected, the number of statistics is 1; when the completion of the second message reception is detected, the number of statistics is 2; when the completion of the third message reception is detected, the number of statistics is 3. And so on.
1024、根据次数确定对应的目标应用级别。1024. Determine the corresponding target application level according to the number of times.
在本申请实施例中,可以预先建立消息接收次数与应用级别之间对应关系。也即,在一些实施例中,在基于每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,还可以包括以下流程:In the embodiment of the present application, the correspondence between the number of message receptions and the application level may be established in advance. That is, in some embodiments, before receiving application notification messages that are not currently received based on a preset time period, and then stopping receiving application notification messages again, the following process may also be included:
基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用 级别;Based on the usage information of each application in the electronic device in the historical time period, classify the installed applications by application level;
建立预设次数与应用级别之间的映射关系。Establish a mapping relationship between preset times and application levels.
具体的,在基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别时,可以根据用户的应用使用习惯划分应用等级,将常用的应用等级划分为较高级别,将不常用的应用等级划分为较低级别。其中,各应用的使用信息可以包括在历史时间段内的使用频率、使用时长、前台运行时长、运行时间点等等信息。Specifically, when classifying the installed applications based on the usage information of each application in the electronic device in the historical time period, the application levels can be divided according to the user's application usage habits, and the commonly used application levels can be divided into higher levels. Applications that are not commonly used are classified into lower levels. Among them, the usage information of each application may include information such as usage frequency, usage duration, foreground running duration, running time point, etc. in the historical time period.
进一步的,步骤“根据次数确定对应的目标应用级别”可以包括以下流程:Further, the step of "determining the corresponding target application level according to the number of times" may include the following process:
根据映射关系,获取次数对应的应用级别,作为目标应用级别。According to the mapping relationship, the application level corresponding to the acquisition times is used as the target application level.
在一些实施例中,还可基于用户实际睡眠时长来制定通知消息接收策略。例如,上述划分时间周期的总数量为4,则对应将应用级别也划分为4个等级。然后,按照周期顺序多个对时间周期编号为第一周期、第二周期、第三周期、第四周期,等级划分为第一应用级别、第二应用级别、第三应用级别、第四应用级别。并将划分好的每一周期作为上述预设时间段,每个周期可以等时长划分,也可不等时长划分。例如,第一周期时长可以与第二周期时长不同,也可相同。最后,建立第一周期与第一应用级别之间的映射关系、第二周期与第二应用级别之间的映射关系,以此类推。其中,第一应用级别为最高级别,第四应用级别为最低级别。In some embodiments, a notification message receiving strategy can also be formulated based on the actual sleep duration of the user. For example, if the total number of the aforementioned divided time periods is 4, the application levels are also divided into 4 levels accordingly. Then, the time periods are numbered as the first period, the second period, the third period, and the fourth period according to the sequence of the period. . And each divided period is regarded as the aforementioned preset time period, and each period can be divided into equal duration or unequal duration. For example, the duration of the first period may be different from the duration of the second period or may be the same. Finally, establish the mapping relationship between the first cycle and the first application level, the mapping relationship between the second cycle and the second application level, and so on. Among them, the first application level is the highest level, and the fourth application level is the lowest level.
具体实施时,可基于接收消息时统计的时间周期数量、及该映射关系确定目标周期编号,然后基于编号确定相应的应用级别。例如,当前的时间周期数量为2,则可以确定对应的周期编号为第二周期,则根据映射关系,可以获取到第二周期对应的应用级别为第二应用级别,并将第二应用级别作为目标应用级别。然后,确定该应用级别对应的应用,作为当前可接收应用通知消息的应用,并恢复这些应用的通知消息接收权限。In specific implementation, the target period number can be determined based on the number of time periods counted when the message is received and the mapping relationship, and then the corresponding application level can be determined based on the number. For example, if the current number of time periods is 2, it can be determined that the corresponding period number is the second period. According to the mapping relationship, the application level corresponding to the second period can be obtained as the second application level, and the second application level is taken as Target application level. Then, the application corresponding to the application level is determined as the application that can currently receive application notification messages, and the notification message receiving permission of these applications is restored.
1025、从所冻结应用中确定该目标应用级别对应的目标应用。1025. Determine the target application corresponding to the target application level from the frozen applications.
例如,第二应用级为目标应用级别,则可以获取第二应用级别对应的应用(如应用级别为第二应用级别的应用)作为目标应用。For example, if the second application level is the target application level, an application corresponding to the second application level (for example, an application with the second application level) can be acquired as the target application.
则,步骤“接收当前未接收的应用通知消息”,具体可以为:对目标应用解除冻结,以获取待接收的应用通知消息。Then, the step of "receiving an application notification message that is not currently received" may specifically be: unfreezing the target application to obtain the application notification message to be received.
在一些实施例中,步骤“从所冻结应用中确定该目标应用级别对应的目标 应用”,可以包括以下流程:In some embodiments, the step of "determining the target application corresponding to the target application level from the frozen applications" may include the following process:
从所冻结应用中确定出应用级别为目标应用级别的应用、以及应用级别高于目标应用级别的应用,作为该目标应用。An application whose application level is the target application level and an application whose application level is higher than the target application level are determined from the frozen applications as the target application.
例如,第二应用级为目标应用级别,则可以获取应用级别为第二应用级别的应用、以及应用级别为第一应用级别的应用,作为目标应用。For example, if the second application level is the target application level, an application with the second application level and an application with the first application level can be acquired as the target application.
1026、对目标应用解除冻结,以获取所述待接收的应用通知消息。1026. Unfreeze the target application to obtain the application notification message to be received.
具体的,在确定好目标应用后,可对这些应用进行解冻,从而实现接收针对这些应用的通知消息。Specifically, after the target applications are determined, these applications can be unfrozen, so that notification messages for these applications can be received.
103、在退出睡眠模式时,恢复对应用通知消息的接收。103. When exiting the sleep mode, resume receiving the application notification message.
由上可知,本申请实施例提供的数据处理方法,电子设备在进入睡眠模式时,停止接收应用通知消息;每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;在退出所述睡眠模式时,恢复对应用通知消息的接收。本申请方案在电子设备进入睡眠状态时,通过周期性地接收应用的通知消息,可以避免电子设备切换到睡醒状态时,因集中性拉取应用通知信息导致的电子设备卡顿的问题,从而提升电子设备运行的流畅性。As can be seen from the above, in the data processing method provided by the embodiments of this application, when the electronic device enters sleep mode, it stops receiving application notification messages; every preset time period, it receives application notification messages that are not currently received, and then stops receiving application notifications again Message; when exiting the sleep mode, resume receiving application notification messages. When the electronic device enters the sleep state, by periodically receiving notification messages from the application, the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
本申请实施例还提供一种数据处理装置300,该装置可以集成在电子设备中,该电子设备可以是智能手机、平板电脑等智能终端设备。An embodiment of the present application also provides a data processing apparatus 300, which may be integrated in an electronic device, which may be a smart terminal device such as a smart phone or a tablet computer.
如图4所示,数据处理装置300可包括:停止模块31、处理模块32、恢复模块33。其中:As shown in FIG. 4, the data processing device 300 may include: a stop module 31, a processing module 32, and a recovery module 33. among them:
停止模块31,用于当检测到用户进入睡眠状态时,停止接收应用通知消息;The stop module 31 is used to stop receiving application notification messages when it is detected that the user enters the sleep state;
处理模块32,用于每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;The processing module 32 is configured to receive application notification messages that are not currently received at a preset time period, and then stop receiving application notification messages again;
恢复模块33,用于在退出所述睡眠模式时,恢复对应用通知消息的接收。The restoring module 33 is configured to restore the reception of application notification messages when exiting the sleep mode.
在一些实施例中,所述停止模块31具体可以用于:断开当前电子设备所连网络,以停止接收应用通知消息In some embodiments, the stop module 31 may be specifically used to: disconnect the network currently connected to the electronic device to stop receiving application notification messages
在一些实施例中,参考图5,处理模块32可以包括:In some embodiments, referring to FIG. 5, the processing module 32 may include:
连网子模块321,用于每隔预设时间段连接当前网络;The network connection sub-module 321 is used to connect to the current network every preset time period;
接收子模块322,用于基于所述当前网络接收未接收的应用通知消息The receiving submodule 322 is configured to receive unreceived application notification messages based on the current network
断网子模块323,用于当连网时长达到预设时长时,断开所述当前网络以 停止接收应用通知消息。The network disconnection sub-module 323 is configured to disconnect the current network to stop receiving application notification messages when the network connection duration reaches the preset duration.
在一些实施例中,参考图6,数据处理装置300,还可以包括:In some embodiments, referring to FIG. 6, the data processing apparatus 300 may further include:
确定模块34,用于在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,确定所述应用通知消息所属的目标应用;The determining module 34 is configured to receive application notification messages that are not currently received at intervals of a preset time period, and then determine the target application to which the application notification message belongs before stopping receiving the application notification message again;
判断模块35,用于判断所述目标应用的应用级别是否高于预设级别,其中,所述应用级别基于电子设备中各应用的历史使用信息划分得到;The judging module 35 is configured to judge whether the application level of the target application is higher than a preset level, wherein the application level is divided based on historical usage information of each application in the electronic device;
处理模块32,具体可以用于在所述判断模块35判定为是时,每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息。The processing module 32 may be specifically configured to receive application notification messages that are not currently received every preset time period when the judgment module 35 determines yes, and then stop receiving application notification messages again.
在一些实施例中,参考图7,停止模块31具体可以用于冻结电子设备中所安装应用,以停止接收应用通知消息;In some embodiments, referring to FIG. 7, the stop module 31 may be specifically used to freeze applications installed in the electronic device to stop receiving application notification messages;
所述处理模块32可以包括:The processing module 32 may include:
统计子模块324,用于每当检测到完成一次应用通知消息的接收,统计完成接收的次数;The statistics sub-module 324 is configured to count the number of times the reception of the application notification message is completed every time it is detected that the reception of an application notification message is completed;
第一确定子模块325,用于根据所述次数确定对应的目标应用级别;The first determining sub-module 325 is configured to determine the corresponding target application level according to the number of times;
第二确定子模块326,用于从所冻结应用中确定所述目标应用级别对应的目标应用;The second determining submodule 326 is configured to determine the target application corresponding to the target application level from the frozen applications;
解冻子模块327,用于对所述目标应用解除冻结,以获取所述待接收的应用通知消息。The unfreezing submodule 327 is used to unfreeze the target application to obtain the application notification message to be received.
在一些实施例中,参考图8,数据处理装置300还可以包括:In some embodiments, referring to FIG. 8, the data processing apparatus 300 may further include:
级别划分模块36,用于在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别;The level division module 36 is used to receive the currently unreceived application notification messages every preset time period, and then stop receiving the application notification messages again, based on the usage information of each application in the electronic device in the historical time period, to check the installed Application division application level;
建立模块37,用于建立预设次数与应用级别之间的映射关系;The establishment module 37 is used to establish a mapping relationship between the preset times and the application level;
第一确定子模块325,具体用于:The first determining sub-module 325 is specifically used for:
根据所述映射关系,获取所述次数对应的应用级别,作为所述目标应用级别。According to the mapping relationship, the application level corresponding to the number of times is obtained as the target application level.
在一些实施例中,第二确定子模块326,可以用于从所冻结应用中确定出应用级别为所述目标应用级别的应用、以及应用级别高于所述目标应用级别的应用,作为所述目标应用。In some embodiments, the second determining submodule 326 may be used to determine from the frozen applications an application whose application level is the target application level and an application whose application level is higher than the target application level, as the Target application.
由上可知,本申请实施例提供了一种数据处理装置,电子设备在进入睡眠模式时,停止接收应用通知消息;每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;在退出所述睡眠模式时,恢复对应用通知消息的接收。本申请方案在电子设备进入睡眠状态时,通过周期性地接收应用的通知消息,可以避免电子设备切换到睡醒状态时,因集中性拉取应用通知信息导致的电子设备卡顿的问题,从而提升电子设备运行的流畅性。As can be seen from the above, this embodiment of the application provides a data processing device. When an electronic device enters sleep mode, it stops receiving application notification messages; every preset time period, it receives application notification messages that are not currently received, and then stops receiving it again Application notification message; when exiting the sleep mode, resume receiving the application notification message. When the electronic device enters the sleep state, by periodically receiving notification messages from the application, the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
本申请实施例还提供一种电子设备。请参阅图9,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。The embodiment of the application also provides an electronic device. Please refer to FIG. 9, the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
该处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而对电子设备500进行整体监控。The processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes by running or loading the computer program stored in the memory 502 and calling the data stored in the memory 502. Various functions of the electronic device 500 and data are processed, so as to monitor the electronic device 500 as a whole.
该存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的计算机程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, a computer program required for at least one function, and the like; the data storage area may store data created according to the use of the electronic device. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 502 may further include a memory controller to provide the processor 501 with access to the memory 502.
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 501 in the electronic device 500 will load the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and run the instructions by the processor 501 and store them in the memory 502 In order to realize various functions in the computer program, as follows:
所述电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
在某些实施方式中,在停止接收应用通知消息时,所述处理器501用于执行以下步骤:In some implementation manners, when stopping receiving application notification messages, the processor 501 is configured to perform the following steps:
断开当前电子设备所连网络,以停止接收应用通知消息;Disconnect the network currently connected to the electronic device to stop receiving application notification messages;
在某些实施方式中,每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息时,所述处理器501用于执行以下步骤:In some implementation manners, when receiving application notification messages that are not currently received every preset time period, and then stopping receiving application notification messages again, the processor 501 is configured to perform the following steps:
每隔预设时间段连接当前网络;Connect to the current network every preset time period;
基于所述当前网络接收当前未接收的应用通知消息,并在连网时长达到预设时长时,断开所述当前网络以停止接收应用通知消息。Based on the current network receiving application notification messages that are not currently received, and when the network connection period reaches a preset time period, disconnect the current network to stop receiving application notification messages.
在某些实施方式中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,所述处理器501还执行以下步骤:In some implementation manners, before receiving application notification messages that are not currently received at every preset time period, and then stopping receiving application notification messages again, the processor 501 further performs the following steps:
确定所述应用通知消息所属的目标应用;Determine the target application to which the application notification message belongs;
判断所述目标应用的应用级别是否高于预设级别,其中,所述应用级别基于电子设备中各应用的历史使用信息划分得到;Judging whether the application level of the target application is higher than a preset level, where the application level is obtained based on historical usage information of each application in the electronic device;
所述处理器501,还用于若在目标应用的应用级别高于预设级别时,每隔预设时间段,接收当前未接收的应用通知消息。The processor 501 is further configured to receive application notification messages that are not currently received at intervals of a preset time period when the application level of the target application is higher than the preset level.
在某些实施例中,在停止接收应用通知消息时,所述处理器501执行以下步骤:In some embodiments, when stopping receiving the application notification message, the processor 501 performs the following steps:
冻结电子设备中所安装应用,以停止接收应用通知消息;Freeze the applications installed in the electronic device to stop receiving application notification messages;
在每隔预设时间段,接收当前未接收的应用通知消息时,所述处理器501执行以下步骤:When receiving application notification messages that are not currently received at every preset time period, the processor 501 performs the following steps:
每当检测到完成一次应用通知消息的接收,统计完成接收的次数;Whenever it is detected that the receipt of an application notification message is completed, count the number of times the receipt is completed;
根据所述次数确定对应的目标应用级别;Determine the corresponding target application level according to the number of times;
从所冻结应用中确定所述目标应用级别对应的目标应用;Determine the target application corresponding to the target application level from the frozen applications;
检测是否有针对所述目标应用的待接收的应用通知消息;Detecting whether there is an application notification message to be received for the target application;
在获取所述待接收的应用通知消息时,所述处理器501执行以下步骤:When acquiring the application notification message to be received, the processor 501 performs the following steps:
对所述目标应用解除冻结,以获取所述待接收的应用通知消息。Unfreeze the target application to obtain the application notification message to be received.
在某些实施例中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,所述处理器501执行以下步骤:In some embodiments, the processor 501 performs the following steps before receiving application notification messages that are not currently received at intervals of a preset time period, and then stopping receiving application notification messages again:
基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别;Based on the usage information of each application in the electronic device in the historical time period, classify the installed applications into application levels;
建立预设次数与应用级别之间的映射关系;Establish a mapping relationship between preset times and application levels;
在根据所述时间周期数量确定对应的目标应用级别时,所述处理器501执行以下步骤:When determining the corresponding target application level according to the number of time periods, the processor 501 performs the following steps:
根据所述映射关系,获取所述次数对应的应用级别,作为所述目标应用级别;Obtaining, according to the mapping relationship, the application level corresponding to the number of times as the target application level;
在从所冻结应用中确定所述目标应用级别对应的目标应用时,所述处理器501执行以下步骤:When determining the target application corresponding to the target application level from the frozen applications, the processor 501 performs the following steps:
从所冻结应用中确定出应用级别为所述目标应用级别的应用、以及应用级别高于所述目标应用级别的应用,作为所述目标应用。From the frozen applications, an application whose application level is the target application level and an application whose application level is higher than the target application level are determined as the target application.
由上述可知,本申请实施例的电子设备,在进入睡眠模式时停止接收应用通知消息;每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;在退出所述睡眠模式时,恢复对应用通知消息的接收。本申请方案在电子设备进入睡眠状态时,通过周期性地接收应用的通知消息,可以避免电子设备切换到睡醒状态时,因集中性拉取应用通知信息导致的电子设备卡顿的问题,从而提升电子设备运行的流畅性。It can be seen from the above that the electronic device of the embodiment of the present application stops receiving application notification messages when entering sleep mode; receives application notification messages that are not currently received every preset time period, and then stops receiving application notification messages again; In the sleep mode, the reception of application notification messages is resumed. When the electronic device enters the sleep state, by periodically receiving notification messages from the application, the solution of this application can avoid the problem of electronic device freezing caused by centralized pulling of application notification information when the electronic device switches to the awake state, thereby Improve the fluency of electronic equipment operation.
请一并参阅图10,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。Please also refer to FIG. 10. In some embodiments, the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506. Among them, the display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
该显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。The display 503 can be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof.
该射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to transmit and receive signals with the network equipment or other electronic equipment.
该音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 505 can be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
该电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理***与处理器501逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。The power supply 506 can be used to power various components of the electronic device 500. In some embodiments, the power supply 506 may be logically connected to the processor 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
尽管图10中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 10, the electronic device 500 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
本申请实施例还提供一种存储介质,该存储介质存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上述任一实施例中的数据处理方法,比如:电子设备在进入睡眠模式时,停止接收应用通知消息;每隔预 设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;在退出所述睡眠模式时,恢复对应用通知消息的接收。The embodiments of the present application also provide a storage medium that stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the data processing method in any of the above embodiments, for example, when the electronic device is entering In the sleep mode, stop receiving application notification messages; every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again; when exiting the sleep mode, resume receiving application notification messages.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对本申请实施例的数据处理方法而言,本领域普通测试人员可以理解实现本申请实施例的数据处理方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如数据处理方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that for the data processing method of the embodiment of this application, ordinary testers in the field can understand that all or part of the process of implementing the data processing method of the embodiment of this application can be completed by controlling the relevant hardware through a computer program. The computer program can be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device. The execution process can include, for example, the implementation of a data processing method Example process. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
对本申请实施例的数据处理装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,该存储介质譬如为只读存储器,磁盘或光盘等。For the data processing device of the embodiment of the present application, its functional modules may be integrated in one processing chip, or each module may exist alone physically, or two or more modules may be integrated in one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
以上对本申请实施例所提供的一种数据处理方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The data processing method, device, storage medium, and electronic equipment provided by the embodiments of the application are described in detail above. Specific examples are used in this article to explain the principles and implementations of the application. The description of the above embodiments is only It is used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and the scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (21)

  1. 一种数据处理方法,应用于电子设备,其中,所述数据处理方法包括:所述电子设备在进入睡眠模式时,停止接收应用通知消息;A data processing method applied to an electronic device, wherein the data processing method includes: when the electronic device enters a sleep mode, stopping receiving application notification messages;
    每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
    在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
  2. 根据权利要求1所述的数据处理方法,其中,所述停止接收应用通知消息,包括:The data processing method according to claim 1, wherein the stopping receiving application notification messages comprises:
    断开当前电子设备所连网络,以停止接收应用通知消息。Disconnect the network currently connected to the electronic device to stop receiving application notification messages.
  3. 根据权利要求1所述的数据处理方法,其中,所述每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息,包括:The data processing method according to claim 1, wherein the receiving application notification messages that are not currently received at intervals of a preset time period and then stopping receiving application notification messages again comprises:
    每隔预设时间段连接当前网络;Connect to the current network every preset time period;
    基于所述当前网络接收当前未接收的应用通知消息,并在连网时长达到预设时长时,断开所述当前网络以停止接收应用通知消息。Based on the current network receiving application notification messages that are not currently received, and when the network connection period reaches a preset time period, disconnect the current network to stop receiving application notification messages.
  4. 根据权利要求1所述的数据处理方法,其中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,还包括:The data processing method according to claim 1, wherein, before receiving the currently unreceived application notification message every preset time period, and then stopping receiving the application notification message again, the method further comprises:
    确定所述应用通知消息所属的目标应用;Determine the target application to which the application notification message belongs;
    判断所述目标应用的应用级别是否高于预设级别,其中,所述应用级别基于电子设备中各应用的历史使用信息划分得到;Judging whether the application level of the target application is higher than a preset level, where the application level is obtained based on historical usage information of each application in the electronic device;
    若是,则执行每隔预设时间段,接收当前未接收的应用通知消息的步骤。If yes, execute the step of receiving application notification messages that are not currently received every preset time period.
  5. 根据权利要求1所述的数据处理方法,其中,所述停止接收应用通知消息,包括:The data processing method according to claim 1, wherein the stopping receiving application notification messages comprises:
    冻结电子设备中所安装应用,以停止接收应用通知消息;Freeze the applications installed in the electronic device to stop receiving application notification messages;
    则,所述每隔预设时间段,接收当前未接收的应用通知消息,包括:Then, the receiving application notification messages that are not currently received at a preset time period includes:
    每当检测到完成一次应用通知消息的接收,统计完成接收的次数;Whenever it is detected that the receipt of an application notification message is completed, count the number of times the receipt is completed;
    根据所述次数确定对应的目标应用级别;Determine the corresponding target application level according to the number of times;
    从所冻结应用中确定所述目标应用级别对应的目标应用;Determine the target application corresponding to the target application level from the frozen applications;
    对所述目标应用解除冻结,以获取所述待接收的应用通知消息。Unfreeze the target application to obtain the application notification message to be received.
  6. 根据权利要求5所述的数据处理方法,其中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,还包括:The data processing method according to claim 5, wherein, before receiving the currently unreceived application notification message every preset time period, and then stopping receiving the application notification message again, the method further comprises:
    基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别;Based on the usage information of each application in the electronic device in the historical time period, classify the installed applications into application levels;
    建立预设次数与应用级别之间的映射关系;Establish a mapping relationship between preset times and application levels;
    根据所述次数确定对应的目标应用级别,包括:Determining the corresponding target application level according to the number of times includes:
    根据所述映射关系,获取所述次数对应的应用级别,作为所述目标应用级别。According to the mapping relationship, the application level corresponding to the number of times is obtained as the target application level.
  7. 根据权利要求6所述的数据处理方法,其中,所述从所冻结应用中确定所述目标应用级别对应的目标应用,包括:The data processing method according to claim 6, wherein the determining the target application corresponding to the target application level from the frozen applications comprises:
    从所冻结应用中确定出应用级别为所述目标应用级别的应用、以及应用级别高于所述目标应用级别的应用,作为所述目标应用。From the frozen applications, an application whose application level is the target application level and an application whose application level is higher than the target application level are determined as the target application.
  8. 一种数据处理装置,应用于电子设备,其中,所述数据处理装置包括:A data processing device applied to electronic equipment, wherein the data processing device includes:
    停止模块,用于所述电子设备在进入睡眠模式时,停止接收应用通知消息处理模块,用于每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;The stop module is configured to stop receiving application notification messages when the electronic device enters the sleep mode, and the processing module is configured to receive application notification messages that are not currently received every preset time period, and then stop receiving application notification messages again;
    恢复模块,用于在退出所述睡眠模式时,恢复对应用通知消息的接收。The restoring module is used to restore the reception of application notification messages when exiting the sleep mode.
  9. 根据权利要求8所述的数据处理装置,其中,所述停止模块用于断开当前电子设备所连网络,以停止接收应用通知消息。8. The data processing device according to claim 8, wherein the stop module is used to disconnect the network currently connected to the electronic device to stop receiving application notification messages.
  10. 根据权利要求8所述的数据处理装置,其中,所述处理模块包括:The data processing device according to claim 8, wherein the processing module comprises:
    连网子模块,用于每隔预设时间段连接当前网络;Networking sub-module, used to connect to the current network every preset time period;
    接收子模块,用于基于所述当前网络接收未接收的应用通知消息The receiving submodule is used to receive unreceived application notification messages based on the current network
    断网子模块,用于当连网时长达到预设时长时,断开所述当前网络以停止接收应用通知消息。The network disconnection sub-module is used to disconnect the current network to stop receiving application notification messages when the network connection duration reaches the preset duration.
  11. 根据权利要求8所述的数据处理装置,其中,还包括:The data processing device according to claim 8, further comprising:
    确定模块,用于每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,确定所述应用通知消息所属的目标应用;The determining module is configured to receive application notification messages that are not currently received every preset time period, and then determine the target application to which the application notification message belongs before stopping receiving the application notification message again;
    判断模块,用于判断所述目标应用的应用级别是否高于预设级别,其中,所述应用级别基于电子设备中各应用的历史使用信息划分得到;A judging module for judging whether the application level of the target application is higher than a preset level, wherein the application level is obtained based on historical usage information of each application in the electronic device;
    所述处理模块,用于在所述判断模块判定为是时,每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息。The processing module is configured to receive application notification messages that are not currently received every preset time period when the judgment module determines that it is yes, and then stop receiving application notification messages again.
  12. 根据权利要求8所述的数据处理装置,其中,所述停止模块用于冻结 电子设备中所安装应用,以停止接收应用通知消息;The data processing device according to claim 8, wherein the stop module is used to freeze an application installed in the electronic device to stop receiving application notification messages;
    所述处理模块包括:The processing module includes:
    统计子模块,用于每当检测到完成一次应用通知消息的接收,统计完成接收的次数;The statistics sub-module is used to count the number of times the reception is completed whenever it is detected that the reception of an application notification message is completed;
    第一确定子模块,用于根据所述次数确定对应的目标应用级别;The first determining sub-module is configured to determine the corresponding target application level according to the number of times;
    第二确定子模块,用于从所冻结应用中确定所述目标应用级别对应的目标应用;The second determining submodule is used to determine the target application corresponding to the target application level from the frozen applications;
    解冻子模块,用于对所述目标应用解除冻结,以获取所述待接收的应用通知消息。The unfreeze submodule is used to unfreeze the target application to obtain the application notification message to be received.
  13. 根据权利要求12所述的数据处理装置,其中,还包括:The data processing device according to claim 12, further comprising:
    级别划分模块,用于在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别;The level division module is used to receive the currently unreceived application notification message every preset time period, and then stop receiving the application notification message again, based on the usage information of each application in the electronic device in the historical time period, to check the installed application Divide application levels;
    建立模块,用于建立预设次数与应用级别之间的映射关系;The establishment module is used to establish the mapping relationship between the preset times and the application level;
    所述第一确定子模块,用于:The first determining submodule is used to:
    根据所述映射关系,获取所述次数对应的应用级别,作为所述目标应用级别。According to the mapping relationship, the application level corresponding to the number of times is obtained as the target application level.
  14. 根据权利要求13所述的数据处理装置,其中,第二确定子模块,用于从所冻结应用中确定出应用级别为所述目标应用级别的应用、以及应用级别高于所述目标应用级别的应用,作为所述目标应用。The data processing device according to claim 13, wherein the second determining sub-module is configured to determine from the frozen applications the application whose application level is the target application level and the application whose application level is higher than the target application level. Application as the target application.
  15. 一种存储介质,其中,所述存储介质中存储有多条指令,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行以下步骤:A storage medium, wherein multiple instructions are stored in the storage medium, multiple instructions are stored in the storage medium, and the instructions are adapted to be loaded by a processor to perform the following steps:
    电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
    每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
    在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
  16. 一种电子设备,其中,包括处理器以及存储介质,所述存储介质中存储有多条指令,所述处理器加载所述指令以执行以下步骤:An electronic device, which includes a processor and a storage medium, the storage medium stores a plurality of instructions, and the processor loads the instructions to perform the following steps:
    所述电子设备在进入睡眠模式时,停止接收应用通知消息;When the electronic device enters the sleep mode, stop receiving application notification messages;
    每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应 用通知消息;Every preset time period, receive application notification messages that are not currently received, and then stop receiving application notification messages again;
    在退出所述睡眠模式时,恢复对应用通知消息的接收。When exiting the sleep mode, the reception of application notification messages is resumed.
  17. 根据权利要求16所述的电子设备,其中,在停止接收应用通知消息时,所述处理器用于执行以下步骤:The electronic device according to claim 16, wherein, when stopping receiving the application notification message, the processor is configured to perform the following steps:
    断开当前电子设备所连网络,以停止接收应用通知消息。Disconnect the network currently connected to the electronic device to stop receiving application notification messages.
  18. 根据权利要求16所述的电子设备,其中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息时,所述处理器还执行以下步骤:The electronic device according to claim 16, wherein, when receiving application notification messages that are not currently received at every preset time period, and then stopping receiving application notification messages again, the processor further performs the following steps:
    每隔预设时间段连接当前网络;Connect to the current network every preset time period;
    基于所述当前网络接收当前未接收的应用通知消息,并在连网时长达到预设时长时,断开所述当前网络以停止接收应用通知消息。Based on the current network receiving application notification messages that are not currently received, and when the network connection period reaches a preset time period, disconnect the current network to stop receiving application notification messages.
  19. [根据细则91更正 05.12.2019] 
    [Corrected according to Rule 91 05.12.2019]
  20. 根据权利要求16所述的电子设备,其中,在停止接收应用通知消息时,所述处理器执行以下步骤:The electronic device according to claim 16, wherein, when stopping receiving the application notification message, the processor performs the following steps:
    冻结电子设备中所安装应用,以停止接收应用通知消息;Freeze the applications installed in the electronic device to stop receiving application notification messages;
    在每隔预设时间段,接收当前未接收的应用通知消息时,所述处理器执行以下步骤:When receiving application notification messages that are not currently received at every preset time period, the processor performs the following steps:
    每当检测到完成一次应用通知消息的接收,统计完成接收的次数;Whenever it is detected that the receipt of an application notification message is completed, count the number of times the receipt is completed;
    根据所述次数确定对应的目标应用级别;Determine the corresponding target application level according to the number of times;
    从所冻结应用中确定所述目标应用级别对应的目标应用;Determine the target application corresponding to the target application level from the frozen applications;
    对所述目标应用解除冻结,以获取所述待接收的应用通知消息。Unfreeze the target application to obtain the application notification message to be received.
  21. 根据权利要求19所述的电子设备,其中,在每隔预设时间段,接收当前未接收的应用通知消息,然后再次停止接收应用通知消息之前,所述处理 器执行以下步骤:The electronic device according to claim 19, wherein the processor performs the following steps before receiving application notification messages that are not currently received at intervals of a preset time period, and then stopping receiving application notification messages again:
    基于历史时间段内电子设备中各应用的使用信息,对所安装应用划分应用级别;Based on the usage information of each application in the electronic device in the historical time period, classify the installed applications into application levels;
    建立预设次数与应用级别之间的映射关系;Establish a mapping relationship between preset times and application levels;
    在根据所述次数确定对应的目标应用级别时,所述处理器执行以下步骤:When determining the corresponding target application level according to the number of times, the processor performs the following steps:
    根据所述映射关系,获取所述次数对应的应用级别,作为所述目标应用级别;Obtaining, according to the mapping relationship, the application level corresponding to the number of times as the target application level;
    在从所冻结应用中确定所述目标应用级别对应的目标应用时,所述处理器执行以下步骤:When determining the target application corresponding to the target application level from the frozen applications, the processor performs the following steps:
    从所冻结应用中确定出应用级别为所述目标应用级别的应用、以及应用级别高于所述目标应用级别的应用,作为所述目标应用。From the frozen applications, an application whose application level is the target application level and an application whose application level is higher than the target application level are determined as the target application.
PCT/CN2019/082565 2019-04-12 2019-04-12 Data processing method and apparatus, storage medium, and electronic device WO2020206701A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980092360.XA CN113439434B (en) 2019-04-12 2019-04-12 Data processing method and device, storage medium and electronic equipment
PCT/CN2019/082565 WO2020206701A1 (en) 2019-04-12 2019-04-12 Data processing method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082565 WO2020206701A1 (en) 2019-04-12 2019-04-12 Data processing method and apparatus, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
WO2020206701A1 true WO2020206701A1 (en) 2020-10-15

Family

ID=72750594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082565 WO2020206701A1 (en) 2019-04-12 2019-04-12 Data processing method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113439434B (en)
WO (1) WO2020206701A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364123B2 (en) * 2009-02-25 2013-01-29 Apple Inc. Managing notification messages
CN103795846A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method for realizing intelligent rest anti-interference for application in mobile terminal and server
CN108833677A (en) * 2018-05-18 2018-11-16 珠海格力电器股份有限公司 Method, device, storage medium and mobile phone for shielding message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105245692A (en) * 2015-08-31 2016-01-13 深圳市金立通信设备有限公司 Message prompting method and terminal
CN106060913A (en) * 2016-07-29 2016-10-26 宇龙计算机通信科技(深圳)有限公司 Wake-on-LAN method and device
CN108234143B (en) * 2016-12-13 2020-10-16 腾讯科技(深圳)有限公司 Method, device and equipment for processing messages in live broadcast

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364123B2 (en) * 2009-02-25 2013-01-29 Apple Inc. Managing notification messages
CN103795846A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method for realizing intelligent rest anti-interference for application in mobile terminal and server
CN108833677A (en) * 2018-05-18 2018-11-16 珠海格力电器股份有限公司 Method, device, storage medium and mobile phone for shielding message

Also Published As

Publication number Publication date
CN113439434B (en) 2023-04-21
CN113439434A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
AU2019204877B2 (en) Method for interaction between terminal and network device, and terminal
US8245062B1 (en) Postponing suspend
CN107407956B (en) Method and system for coordinating operating states among multiple SOCs within a computing device
US10198059B2 (en) Adaptive doze to hibernate
CN107729216B (en) Application program control method and device, storage medium and electronic equipment
CN107577508B (en) Application processing method and device, readable storage medium and mobile terminal
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
WO2020052471A1 (en) Method and apparatus for detecting application to be managed, method and apparatus for controlling application, terminal, and storage medium
CN106550438B (en) Method and system for limiting regular awakening and mobile device
TW201513703A (en) Method of management of a wireless interface of a device and corresponding wireless device
EP3926467B1 (en) Application control method and apparatus, terminal, and computer-readable storage medium
CN101888435A (en) Portable terminal and state control method thereof
CN110018903A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
US9661480B2 (en) Triggering application action using non-standard controls
WO2016180241A1 (en) Energy-conservation management method and apparatus for terminal and terminal
US20210294766A1 (en) Terminal and type c interface anti-corrosion method
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
WO2020206701A1 (en) Data processing method and apparatus, storage medium, and electronic device
CN110045811B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN109992369B (en) Application program processing method and device, electronic equipment and computer readable storage medium
US20140364174A1 (en) On-device energy estimation for portable electronic devices
US11452033B2 (en) Variable wireless beaconing based on system context
CN109600763A (en) A kind of suspend mode, wake-up control method, device, CU, DU and storage medium
CN106899943A (en) Control broadcast transmission person sends method, device and the terminal device of broadcast message
WO2020206703A1 (en) Terminal control method and apparatus, storage medium, and electronic device

Legal Events

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

Ref document number: 19924216

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.03.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19924216

Country of ref document: EP

Kind code of ref document: A1