WO2017092260A1 - 一种移动终端行为上报方法和装置 - Google Patents

一种移动终端行为上报方法和装置 Download PDF

Info

Publication number
WO2017092260A1
WO2017092260A1 PCT/CN2016/083724 CN2016083724W WO2017092260A1 WO 2017092260 A1 WO2017092260 A1 WO 2017092260A1 CN 2016083724 W CN2016083724 W CN 2016083724W WO 2017092260 A1 WO2017092260 A1 WO 2017092260A1
Authority
WO
WIPO (PCT)
Prior art keywords
duration
preset time
time interval
configuration information
server
Prior art date
Application number
PCT/CN2016/083724
Other languages
English (en)
French (fr)
Inventor
吴启纲
张瑞洁
Original Assignee
乐视控股(北京)有限公司
乐视网信息技术(北京)股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 乐视控股(北京)有限公司, 乐视网信息技术(北京)股份有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/119,846 priority Critical patent/US20180260298A1/en
Publication of WO2017092260A1 publication Critical patent/WO2017092260A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • 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

  • the present invention relates to the field of mobile communication technologies, and in particular, to a method and apparatus for reporting behavior of a mobile terminal.
  • the main functions of the existing behavior reporting system are as follows: 1. Take configuration information from the server; 2. Report the message; implement two threads: Config thread and MessageProcess thread. Specifically, the Config thread obtains the configuration information from the server every other fixed time interval, and the MessageProcess thread reports all the behavior data recorded in the reporting time period every other fixed reporting time according to the configuration information acquired by the Config thread. It can be seen that the traditional implementation method is that each thread periodically waits for a period of time, and the time slice is exhausted to start doing things, which causes the thread to idle and consume the CPU when there is nothing to do, and the unnecessary increase of power consumption.
  • the purpose of the embodiments of the present invention is to provide a method and apparatus for reporting behavior of a mobile terminal, so that the power consumption of the mobile terminal when performing behavior reporting is significantly reduced.
  • An embodiment of the present invention provides a method for reporting behavior of a mobile terminal according to the foregoing.
  • the method includes:
  • the user behavior is monitored, and when the behavior of the user is detected, the behavior data of the user behavior is obtained locally, and the behavior data is reported to the server.
  • the method further comprises the steps of:
  • the duration of the preset time interval is reset to the initial duration.
  • the method further includes the steps of:
  • the preset time interval is reset to an initial duration.
  • the method further comprises the steps of:
  • the correction duration is updated according to the preset time period and the number of resets.
  • the method when the behavior data is obtained locally, if the network connection is not available, the method further includes the steps of:
  • the apparatus includes:
  • An obtaining module configured to continuously obtain configuration information from a server at intervals of preset time intervals
  • the execution module is configured to compare whether the configuration information acquired before and after the preset time interval is the same. If the configuration information acquired before and after the preset time interval is the same, the duration of the preset time interval is extended by a correction duration. If the configuration information acquired before and after the preset time interval is not And resetting the duration of the preset time interval to an initial duration;
  • the reporting module is configured to monitor the user behavior according to the configuration information, and when the user behavior is detected, the behavior data of the user behavior is obtained locally, and the behavior data is reported to the server.
  • the obtaining module is further configured to: receive an acquisition instruction sent by the server, acquire configuration information from the server, and then cause the execution module to reset the duration of the preset time interval to an initial duration.
  • the execution module is further configured to: compare a duration of the preset time interval with a preset duration threshold; and when determining that the duration of the preset time interval is greater than the duration threshold, The preset time interval is reset to an initial duration.
  • the apparatus further includes: an update module, configured to reset, during a preset time period, a resetting time period of the preset time interval to an initial duration; according to the preset time The number of segments and resets, and the length of the correction is updated.
  • an update module configured to reset, during a preset time period, a resetting time period of the preset time interval to an initial duration; according to the preset time The number of segments and resets, and the length of the correction is updated.
  • the apparatus further includes: a temporary storage module configured to temporarily store all behavior data acquired during a period of unavailable network connection, and continuously monitor a network connection status; and, when the network connection becomes available And causing the reporting module to report the temporarily stored behavior data to the server.
  • a temporary storage module configured to temporarily store all behavior data acquired during a period of unavailable network connection, and continuously monitor a network connection status; and, when the network connection becomes available And causing the reporting module to report the temporarily stored behavior data to the server.
  • an apparatus in still another aspect of an embodiment of the present invention, includes:
  • One or more processors are One or more processors;
  • a memory for storing operational instructions
  • the one or more processors are configured to retrieve an operational instruction from the memory and execute:
  • the user behavior is monitored, and when the behavior of the user is detected, the behavior data of the user behavior is obtained locally, and the behavior data is reported to the server.
  • the processor is further configured to: receive an acquisition finger sent by the server Ordering, obtaining configuration information from the server;
  • the duration of the preset time interval is reset to the initial duration.
  • the processor is further configured to: compare a duration of the preset time interval with a preset duration threshold;
  • the duration of the preset time interval is reset to an initial duration.
  • the processor is further configured to: during a preset time period, record a resetting time period of resetting the preset time interval to an initial duration;
  • the correction duration is updated according to the preset time period and the number of resets.
  • the processor is further configured to: temporarily store all behavior data acquired during an unavailable period of the network connection, and continuously monitor the network connection status;
  • the method and device for reporting the behavior of the mobile terminal provided by the embodiment of the present invention make the time interval between the two acquisitions gradually become longer when the acquired configuration information does not change, and only obtains The behavior data is reported, so that each thread "hibernates" for as long as possible, and when there is a message, there is a higher immediacy, so that the low-power report has low power consumption and the message is reported in real-time reporting.
  • FIG. 1 is a flowchart of a method for reporting behavior of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for reporting behavior of a mobile terminal according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a device for reporting behavior of a mobile terminal according to an embodiment of the present invention.
  • the embodiment of the invention is applied to the behavior reporting process of the mobile terminal.
  • the behavior reporting process refers to: monitoring and recording specific user behaviors, and then generating behavior data and reporting to the server for subsequent analysis and processing.
  • Behavior reporting generally involves two processes: obtaining configuration information from the server and reporting behavior data to the server.
  • the configuration information is generated by the server, and is used to set relevant parameters for behavior reporting for the mobile terminal, that is, “tell” the mobile terminal to monitor which user behavior is reported, the reporting priority between different user behaviors, and the like.
  • Obtaining configuration information and reporting behavior data are generally implemented by separate function modules.
  • corresponding threads Config thread and MessageProcess thread
  • the embodiments of the present invention provide a low power consumption behavior reporting solution for the deficiencies of the prior art as described above.
  • An embodiment of the present invention provides a method for reporting behavior of a mobile terminal.
  • FIG. 1 it is a flowchart of a method for reporting behavior of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal behavior reporting method includes the following steps:
  • Step 101 Continuously obtain configuration information from the server at preset time intervals.
  • the configuration information is obtained from the server every time a preset time interval elapses. Only one configuration information can take effect, so the obtained configuration information is updated and stored. That is, in the timing, the new configuration information obtained later will overwrite the previous configuration information that is in effect.
  • the preset time interval has a default initial duration.
  • the initial duration of the preset time interval may be set to several minutes to several hours according to different usage situations.
  • the initial duration of the preset time interval is set to 1 hour. That is, the configuration information is obtained once from the server every hour.
  • Step 102 Compare whether the configuration information acquired before and after the same preset time interval is the same. If yes, go to step 103; if no, go to step 104.
  • the two configuration information acquired before and after each preset time interval are compared to determine whether they are the same.
  • Step 103 Extend the duration of the preset time interval by a correction duration.
  • the configuration generated by the server in a short time is considered. If the information should not change, the duration of the preset time interval is extended, and the preset time interval is extended by adding a correction duration to the current preset time interval duration; the correction duration is preset.
  • the unit length that is set to extend the preset time interval is increased by one correction time each time the preset time interval is extended.
  • Step 104 Reset the duration of the preset time interval to an initial duration.
  • the duration of the preset time interval is reset to the initial duration.
  • the correction duration is set to 1 hour, that is, the same as the initial duration of the preset time interval.
  • the duration of the preset time interval will become 2 hours, and then the second time before the configuration information acquired twice is the same, the duration of the preset time interval will be It becomes 3 hours, and so on, that is, the doubling of the duration of the preset time interval.
  • the duration of the preset time interval is reset to 1 hour.
  • the correction duration can be set according to different usage conditions, that is, the correction duration can also be set to a value greater than or less than the initial duration of the preset time interval, such as half or twice the initial duration of the preset time interval. .
  • step 105 the user behavior is monitored according to the configuration information.
  • the behavior data of the user behavior is obtained locally, and the behavior data is reported to the server.
  • This step performs the reporting process of behavior data.
  • Commonly used mobile terminal systems have been provided with functional modules for monitoring the recording of user behavior, such as looper handlers in the Android system. Therefore, the method of the embodiment of the present invention does not separately set a special function module for generating behavior data, but directly acquires behavior data from a corresponding local function module.
  • the user behavior is continuously monitored according to the configuration information that is currently in effect.
  • the behavior data corresponding to the monitored user behavior is obtained locally, and the behavior data is reported to the server immediately after the acquisition. That is to say, an instant behavior data reporting method is implemented, and when the user behavior is detected, the behavior data is immediately reported, and when the user behavior is not detected, the report is not reported.
  • the instant behavior data reporting method adapts to the user's general use characteristics of the mobile terminal, because the user's continuous concentrated long-term user behavior is not very frequent, so the fixed period report in the prior art The way is obviously unreasonable, and the above problem is solved well by the method in this step.
  • the process of obtaining configuration information and the reporting process using the fixed cycle work in the prior art are separately optimized.
  • the process of obtaining the configuration information when the configuration information acquired twice is the same, the preset time interval is extended, so that the interval for obtaining the configuration information becomes longer, that is, compared with the prior art, the unit time is reduced.
  • the number of times the server communicates can effectively reduce the power consumption of the mobile terminal.
  • the method of reporting behavior data is used immediately. When the user behavior does not occur for a long time, the server does not communicate with the server, and the power consumption of the mobile terminal is effectively reduced.
  • FIG. 2 is a flowchart of a method for reporting behavior of a mobile terminal according to another embodiment of the present invention.
  • the mobile terminal behavior reporting method includes the following steps:
  • Step 201 Continuously obtain configuration information from the server at preset time intervals.
  • Step 202 Compare whether the configuration information acquired before and after the same preset time interval is the same. If yes, execute step 203; if no, perform step 204.
  • Step 203 Extend the duration of the preset time interval by a correction duration.
  • Step 204 Reset the duration of the preset time interval to an initial duration.
  • Step 205 Compare the duration of the preset time interval with a preset duration threshold.
  • the duration of the preset time interval is longer and longer. Obviously, when the duration of the preset time interval is too long, it can affect the timely acquisition of subsequent new configuration information. Therefore, in this step, a duration threshold for limiting the maximum duration of the preset time interval is also preset.
  • Step 206 When determining that the duration of the preset time interval is greater than the duration threshold, resetting the duration of the preset time interval to an initial duration.
  • the duration threshold is set to 24 hours.
  • Step 207 Monitor user behavior, and when it is detected that user behavior occurs, obtain behavior data of the user behavior from the local.
  • Step 208 Detect whether the network connection is available. If the network connection is available, go to step 209. If the network connection is unavailable, go to step 210.
  • the behavior data is immediately uploaded to the server in an optional manner, so after the behavior data is obtained, the current network connection is first detected. If it is available, it can communicate with the server.
  • Step 209 Report the behavior data to the server.
  • Step 210 Temporarily store all the behavior data acquired during the unavailable period of the network connection, and continuously monitor the network connection status; when the network connection becomes available, immediately report all the temporary behavior data to the server.
  • the mobile terminal behavior reporting method may further include the following steps:
  • Receiving an acquisition instruction sent by the server acquiring configuration information from the server; and resetting the duration of the preset time interval to an initial duration.
  • the server when the server generates a new configuration information that is changed relative to the previous one, it will actively send an acquisition instruction to the mobile terminal to notify the mobile terminal to acquire new configuration information in time. After receiving the acquisition command, the mobile terminal immediately obtains the latest configuration information from the server; correspondingly, after obtaining the latest configuration information, the duration of the preset time interval is reset to the initial duration.
  • the mobile terminal behavior reporting method may further include the following steps:
  • the recording resets the duration of the preset time interval to the reset time of the initial duration; and updates the correction duration according to the preset time period and the reset times.
  • the above steps are used to update the correction duration according to the actual working conditions. Specifically, first, a time period (for example, 24 hours) is preset, and then the duration of the preset time interval is reset to the initial number of times of resetting in the time period, that is, the number of times the acquired configuration information changes is recorded. . Then, the duration of the time period is divided by the number of resets to obtain an updated value of the modified duration. During the subsequent work, the updated value is used to correct the duration of the preset time interval. When the number of resets is small, the obtained update value may be large, and using a larger update value may be disadvantageous for timely acquisition of new configuration information; further, a correction for limiting the correction duration may be preset.
  • the duration threshold after obtaining the updated value of the modified duration, compares the updated value with the modified duration threshold, and when the updated value is greater than the modified duration threshold, discards the updated value or sets the updated value to Equal to the correction duration threshold.
  • the embodiment of the present invention further provides a mobile terminal behavior reporting apparatus.
  • FIG. 3 it is a schematic structural diagram of a mobile terminal behavior reporting apparatus according to an embodiment of the present invention.
  • the mobile terminal behavior reporting device includes:
  • the obtaining module 301 is configured to continuously obtain configuration information from the server at intervals of preset time intervals.
  • the execution module 302 is configured to compare whether the configuration information acquired before and after the same preset time interval is the same. If the configuration information acquired before and after the preset time interval is the same, the duration of the preset time interval is extended by one. Correcting the duration; if the configuration information acquired before and after the preset time interval is different, resetting the duration of the preset time interval to an initial duration;
  • the reporting module 303 is configured to continuously monitor the user behavior, and if the user behavior is detected, the behavior data is obtained locally, and the behavior data is reported to the server.
  • the behavior reporting device for a mobile terminal provided by the embodiment of the present invention optimizes the process of acquiring configuration information and the reporting process using fixed-cycle work in the prior art.
  • the process of obtaining the configuration information when the configuration information acquired twice is the same, the preset time interval is extended, so that the interval for obtaining the configuration information becomes longer, that is, compared with the prior art, the unit time is reduced.
  • the number of times the server communicates can effectively reduce the power consumption of the mobile terminal.
  • the method of reporting behavior data is used immediately. When the user behavior does not occur for a long time, the server does not communicate with the server, and the power consumption of the mobile terminal is effectively reduced.
  • the executing module 302 is further configured to: compare a duration of the preset time interval with a preset duration threshold; and when determining that the duration of the preset time interval is greater than the duration threshold, The preset time interval is reset to the initial duration.
  • the mobile terminal behavior reporting apparatus further includes: an updating module 304, configured to reset, in a preset time period, a resetting time period of the preset time interval to an initial duration; The preset time period and the number of resets are updated to update the correction duration.
  • an updating module 304 configured to reset, in a preset time period, a resetting time period of the preset time interval to an initial duration; The preset time period and the number of resets are updated to update the correction duration.
  • the mobile terminal behavior reporting apparatus further includes: a temporary storage module 305, configured to temporarily store all behavior data acquired during an unavailable period of the network connection, and continuously monitor the network connection status; and, for connecting in the network When it becomes available, the reporting module 303 causes all the temporarily stored behavior data to be reported to the server.
  • a temporary storage module 305 configured to temporarily store all behavior data acquired during an unavailable period of the network connection, and continuously monitor the network connection status; and, for connecting in the network When it becomes available, the reporting module 303 causes all the temporarily stored behavior data to be reported to the server.
  • the obtaining module 301 is further configured to: receive the Obtaining an instruction, obtaining configuration information from the server, and then causing the execution module 302 to reset the duration of the preset time interval to an initial duration.
  • an apparatus comprising: one or more processors; optionally, the one or more processors are configured to perform any one or more of the above The steps defined in the methods described in the embodiments; and:
  • the user behavior is monitored, and when the behavior of the user is detected, the behavior data of the user behavior is obtained locally, and the behavior data is reported to the server.
  • the processor is further configured to: receive an acquisition instruction sent by the server, and acquire configuration information from the server;
  • the duration of the preset time interval is reset to the initial duration.
  • the processor is further configured to: compare a duration of the preset time interval with a preset duration threshold;
  • the duration of the preset time interval is reset to an initial duration.
  • the processor is further configured to: during a preset time period, record a resetting time of resetting the preset time interval to an initial duration;
  • the correction duration is updated according to the preset time period and the number of resets.
  • the processor is further configured to: temporarily store all behavior data acquired during an unavailable period of the network connection, and continuously monitor the network connection status;
  • the device described in the present disclosure may be various handheld terminal devices, such as a mobile phone, a personal digital assistant (PDA), a tablet computer (PAD), a smart TV, etc., and thus the scope of protection of the present disclosure should not be limited to a certain A specific type of device.
  • PDA personal digital assistant
  • PAD tablet computer
  • smart TV etc.
  • the method according to the present disclosure may also be implemented as a computer program executed by a CPU, which may be stored in a computer readable storage medium.
  • the computer program is CPU At the time of execution, the above-described functions defined in the method of the present disclosure are performed.
  • the method steps and system units described above may also be implemented with a controller and a computer readable storage medium for storing a computer program that causes the controller to implement the steps or unit functions described above.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash flash.
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM) and direct Rambus RAM (DRRAM).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Synchronous Link DRAM
  • DRRAM direct Rambus RAM
  • Storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
  • DSPs digital signal processors
  • ASIC dedicated An integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two.
  • Software modules can reside in RAM Memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with a processor.
  • the processor and the storage medium can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used to carry or store a form of instructions Or the required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium.
  • a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave is used to transmit software from a website, server, or other remote source
  • the coaxial line Cables, fiber optic cables, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are all included in the definition of the medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, in which a disk generally reproduces data magnetically, and the optical disk optically reproduces data using a laser. . Combinations of the above should also be included within the scope of computer readable media.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Abstract

本发明公开了一种移动终端行为上报方法和装置,包括:以预设时间间隔从服务器持续获取配置信息;比较同一所述预设时间间隔前后获取的所述配置信息是否相同,若是,则将所述预设时间间隔的时长延长一个修正时长;若否,则将所述预设时间间隔的时长重置为初始时长;持续监测用户行为,如果监测到用户行为发生,从本地获取行为数据,将所述行为数据上报至所述服务器;本发明能够使获取配置信息和上报行为数据的线程尽量长时间的"休眠",而在有消息上报时又有较高的即时性,从而达到无消息上报功耗低有消息上报实时上报的效果,相比于现有技术中的固定周期获取配置信息和上报的方式,显著的降低了耗电量。

Description

一种移动终端行为上报方法和装置
本申请基于申请号为201510857536X、申请日为2015年11月30日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明涉及移动通信技术领域,特别是指一种移动终端行为上报方法和装置。
背景技术
在移动通信技术高度发展、移动终端广泛应用的环境下,对于移动终端行为的分析越来越有价值;目前,常用的各种类型的如手机、PAD等移动终端上均设置有行为上报系统,用于将用户在移动终端上的特定操作行为记录并上传至服务器进行统计分析,分析结果将作为向用户提供更好的服务的依据。
现有的行为上报系统主要功能如下:1.从服务器取配置信息;2.上报消息;分别采用两个线程实现:Config thread和MessageProcess thread。具体的,Config thread每隔一个固定的时间间隔便从服务器获取配置信息,MessageProcess thread根据Config thread获取的配置信息,每隔一个固定的上报时长便上报一次该上报时长内记录的所有行为数据。可见,传统的实现方式是每个线程周期性的等待一段时间片,时间片耗尽开始做事,这样会造成线程在没有事情可做时仍然空转消耗CPU,无谓的增加了耗电量。
发明内容
有鉴于此,本发明实施例的目的在于提出一种移动终端行为上报方法和装置,使移动终端进行行为上报时的耗电量显著降低。
基于上述目的本发明实施例提供了一种移动终端行为上报方法,作为一个实施例该方法包括:
以预设时间间隔从服务器持续获取配置信息;
比较所述预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
在一些实施方式中,所述方法还包括步骤:
接收服务器发送的获取指令,从所述服务器获取配置信息;
将所述预设时间间隔的时长重置为初始时长。
在一些实施方式中,所述将所述预设时间间隔的时长延长一个修正时长之后,进一步包括步骤:
将所述预设时间间隔的时长与预设的时长阈值进行比较;
在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔重置为初始时长。
在一些实施方式中,所述方法还包括步骤:
在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;
根据所述预设时间段和重置次数,更新所述修正时长。
在一些实施方式中,从本地获取行为数据时,若网络连接不可用,则进一步包括步骤:
暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;
当网络连接变为可用时,将暂存的行为数据上报至所述服务器。
在本发明实施例的另一方面还提供了一种移动终端行为上报装置,作为一个实施例该装置包括:
获取模块,用于以预设时间间隔为间隔,从服务器持续获取配置信息;
执行模块,用于比较预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不 同,则将所述预设时间间隔的时长重置为初始时长;
上报模块,用于根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
在一些实施方式中,所述获取模块还用于:接收服务器发送的获取指令,从所述服务器获取配置信息,然后令所述执行模块将所述预设时间间隔的时长重置为初始时长。
在一些实施方式中,所述执行模块还用于:将所述预设时间间隔的时长与预设的时长阈值进行比较;在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔重置为初始时长。
在一些实施方式中,所述装置还包括:更新模块,用于在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;根据所述预设时间段和重置次数,更新所述修正时长。
在一些实施方式中,所述装置还包括:暂存模块,用于暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;以及,用于在网络连接变为可用时,令所述上报模块将暂存的行为数据上报至所述服务器。
在本发明实施例的又一方面,还提供了一种装置,作为一个实施例该装置包括:
一个或多个处理器;以及
用于存储操作指令的存储器;
所述一个或多个处理器被配置为从所述存储器中获取操作指令并执行:
以预设时间间隔从服务器持续获取配置信息;
比较所述预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
在一些实施方式中,所述处理器还用于执行:接收服务器发送的获取指 令,从所述服务器获取配置信息;
将所述预设时间间隔的时长重置为初始时长。
在一些实施方式中,所述处理器还用于执行:将所述预设时间间隔的时长与预设的时长阈值进行比较;
在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔的时长重置为初始时长。
在一些实施方式中,所述处理器还用于执行:在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;
根据所述预设时间段和重置次数,更新所述修正时长。
在一些实施方式中,所述处理器还用于执行:暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;
当网络连接变为可用时,将暂存的行为数据上报至所述服务器。
从上面所述可以看出,本发明实施例提供的移动终端行为上报方法和装置,在获取的配置信息没有发生变化时,使两次获取之间的时间间隔逐渐变长,以及仅在获取到行为数据时进行上报,使每个线程尽量长时间的“休眠”,而在有消息上报时又有较高的即时性,从而达到无消息上报功耗低有消息上报实时上报的效果,相比于现有技术中的固定周期获取配置信息和上报的方式,显著的降低了耗电量。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例的移动终端行为上报方法流程图;
图2为本发明另一实施例的移动终端行为上报方法流程图;
图3为本发明实施例的移动终端行为上报装置结构示意图。
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围, 而是通过参考特定实施例为本领域技术人员说明本公开的概念。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。
本发明实施例应用于移动终端的行为上报过程。所述的行为上报过程,即是指:对特定的用户行为进行监测并记录,然后生成行为数据并上报至服务器进行后续的分析处理。行为上报一般包括两个过程:从服务器获取配置信息和向服务器上报行为数据。其中,所述配置信息为服务器端生成,用于为移动终端设定行为上报的相关参数,即“告诉”移动终端需要监测上报何种用户行为、不同的用户行为间的上报优先级等等。获取配置信息以及上报行为数据一般由单独的功能模块实现,具体实施中会在系统中创建相应的线程(Config thread和MessageProcess thread)来进行工作,如背景技术中所述,其均是以固定周期的高功耗方式工作的。本发明实施例提出了针对如上所述的现有技术的不足,提供一种低功耗的行为上报方案。
首先,本发明实施例提供了一种移动终端行为上报方法,参考图1,为本发明实施例的移动终端行为上报方法流程图。
所述的移动终端行为上报方法,包括以下步骤:
步骤101、以预设时间间隔从服务器持续获取配置信息。
本步骤即每经过一个预设时间间隔便从服务器获取一次配置信息。配置信息只能有一个生效,所以获取的配置信息采用更新存储的方式,即在时序上,在后获取到的新的配置信息会覆盖在前的正在生效中的配置信息。
所述预设时间间隔具有默认的初始时长,根据不同的使用情况,预设时间间隔的初始时长可以设置为数分钟到数小时,本实施例中,预设时间间隔的初始时长设置为1小时,即每隔1小时从服务器获取一次配置信息。
步骤102、比较同一所述预设时间间隔前后获取的所述配置信息是否相同,若是,则执行步骤103;若否,则执行步骤104。
本步骤中,从开始获取配置信息起,将每一个预设时间间隔前后获取的、即连续的两个配置信息进行对比,判断其是否相同。
步骤103、将所述预设时间间隔的时长延长一个修正时长。
当前后获取的所述配置信息相同时,认为短时间内服务器端生成的配置 信息应该不会发生变化,则将预设时间间隔的时长进行延长,将预设时间间隔延长的具体方式为:将当前的预设时间间隔时长上加上一个修正时长;该修正时长为预设设定的用于延长预设时间间隔的单位时长,每次将预设时间间隔延长时,均增加一个修正时长。
步骤104、将所述预设时间间隔的时长重置为初始时长。
当前后获取的所述配置信息不同时,表明服务器端生成的配置信息发生了变化,则将预设时间间隔的时长重置为初始时长。
本实施例的上述三步骤中,修正时长设置为1小时,即与预设时间间隔的初始时长相同。具体实施过程中,在首次判定前后两次获取的配置信息相同时,预设时间间隔的时长会变成2小时,然后再次判定前后两次获取的配置信息相同时,预设时间间隔的时长会变成3小时,以此类推即预设时间间隔的时长单倍数的增长。当判定前后两次获取的配置信息不同时,预设时间间隔的时长会被重置为1小时。
显然,修正时长可以根据不同的使用情况而设定,即修正时长也可以设置为大于或小于预设时间间隔的初始时长的数值,如设置为预设时间间隔的初始时长的一半或二倍等。
步骤105、根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
本步骤执行的是行为数据的上报过程。常用的移动终端系统中,都已经设置有用于监测记录用户行为的功能模块,例如Android系统中的looper handler。所以,本发明实施例的方法不再单独设置专门的用于生成行为数据的功能模块,而是直接从本地的相应的功能模块中获取行为数据。具体的,根据当前生效的配置信息,持续监测用户行为,在监测到用户行为发生时,从本地获取对应于上述监测到的用户行为的行为数据,获取后立即将该行为数据上报至所述服务器;也就是实施一种即时的行为数据上报方式,监测到用户行为时,立即上报行为数据,而未监测到用户行为时,则不进行上报。这种即时的行为数据上报方式,适应了用户的一般的对移动终端的使用特点,因为用户持续集中的发生长时间的用户行为的情况不会十分的频繁,所以现有技术中的固定周期上报的方式显然不合理,通过本步骤中的方式,便很好的解决了上述问题。
由上述实施例可见,本发明实施例对现有技术中采用固定周期工作的获取配置信息过程和上报过程分别进行了优化。对于获取配置信息过程,当前后两次获取的配置信息相同时,延长预设时间间隔,使下次获取配置信息的间隔时间变长,即相比于现有技术在单位时间内,减少了与服务器通讯的次数,能够有效的降低移动终端的耗电量。对于上报过程,采用即时上报行为数据的方式,当在较长时间内没有发生用户行为时,便一直不会与服务器通讯,也有效的降低了移动终端的耗电量。
参考图2,为本发明另一实施例的移动终端行为上报方法流程图。
作为另一个更具体的实施例,所述移动终端行为上报方法,包括以下步骤:
步骤201、以预设时间间隔从服务器持续获取配置信息。
步骤202、比较同一所述预设时间间隔前后获取的所述配置信息是否相同,若是,则执行步骤203;若否,则执行步骤204。
步骤203、将所述预设时间间隔的时长延长一个修正时长。
步骤204、将所述预设时间间隔的时长重置为初始时长。
步骤205、将所述预设时间间隔的时长与预设的时长阈值进行比较。
当判定前后获取的两个配置信息相同、将预设时间间隔延长的情况连续发生时,预设时间间隔的时长会越来越长。显然,在预设时间间隔的时长过长时也能会影响后续的新的配置信息的及时获取。所以,在本步骤中,还预设有一个用于限制预设时间间隔最大时长的时长阈值。
步骤206、在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔的时长重置为初始时长。
每次对预设时间间隔的时长进行修改后,都会将其与时长阈值比较,当预设时间间隔的时长大于时长阈值时,会将预设时间间隔重置为初始时长。本实施例中,所述的时长阈值设置为24小时。
步骤207、监测用户行为,当监测到用户行为发生,从本地获取所述用户行为的行为数据。
步骤208、检测网络连接是否可用,若网络连接可用,则执行步骤209;若网络连接不可用,则执行步骤210。
从本地的相关功能模块获取到行为数据后,将所述行为数据即时的上传至服务器时可选的方式,所以在获取到行为数据后,首先检测当前的网络连 接是否可用,即能够与服务器进行通讯。
步骤209、将所述行为数据上报至所述服务器。
网络连接可用,则立即建立与服务器的通讯连接,将所述行为数据上
报。
步骤210、暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;当网络连接变为可用时,立即将所有暂存的行为数据上报至所述服务器。
网络连接不可用,则将网络连接不可用时段内获取的所有行为数据暂存于本地;同时,持续的监测网络连接状态,当网络连接变为可用时,立即建立与服务器的通讯连接,将之前暂存的所有行为数据上报至服务器。
在一些其他实施例中,所述的移动终端行为上报方法还可以包括以下步骤:
接收服务器发送的获取指令,从所述服务器获取配置信息;将所述预设时间间隔的时长重置为初始时长。
即在服务器生成了新的、相对于之前发生改变的配置信息时,会主动的向移动终端发送一个获取指令,用于通知移动终端及时获取新的配置信息。移动终端接收到获取指令后,将立即向服务器获取最新的配置信息;相应的,在获取到最新的配置信息后,将预设时间间隔的时长重置为初始时长。
在一些其他实施例中,所述的移动终端行为上报方法还可以包括以下步骤:
在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;根据所述预设时间段和重置次数,更新所述修正时长。
上述步骤用于根据实际的工作情况对修正时长进行更新。具体的:首先预设一个时间段(如24小时),然后记录该时间段内将预设时间间隔的时长重置为初始时长的重置次数,也就是记录获取到的配置信息发生变化的次数。然后用所述时间段的时长除以重置次数,得到一个修正时长的更新值,后续工作过程中,使用该更新值对预设时间间隔的时长进行修正。当重置次数较少时,得到的更新值可能较大,使用一个较大的更新值可能不利于新的配置信息的及时获取;则进一步的,还可以预设一个用于限制修正时长的修正时长阈值,在得到修正时长的更新值后,将更新值与修正时长阈值进行比较,当更新值大于修正时长阈值时,放弃使用该更新值或者将更新值设置为 与修正时长阈值相等。
另一方面,本发明实施例还提供了一种移动终端行为上报装置,参考图3,为本发明实施例的移动终端行为上报装置结构示意图。
所述移动终端行为上报装置,包括:
获取模块301,用于以预设时间间隔为间隔,从服务器持续获取配置信息;
执行模块302,用于比较同一预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
上报模块303,用于持续监测用户行为,如果监测到用户行为发生,从本地获取行为数据,将所述行为数据上报至所述服务器。
由上述实施例可见,本发明实施例提供的移动终端行为上报装置,对现有技术中采用固定周期工作的获取配置信息过程和上报过程分别进行了优化。对于获取配置信息过程,当前后两次获取的配置信息相同时,延长预设时间间隔,使下次获取配置信息的间隔时间变长,即相比于现有技术在单位时间内,减少了与服务器通讯的次数,能够有效的降低移动终端的耗电量。对于上报过程,采用即时上报行为数据的方式,当在较长时间内没有发生用户行为时,便一直不会与服务器通讯,也有效的降低了移动终端的耗电量。
作为选的,所述执行模块302还用于:将所述预设时间间隔的时长与预设的时长阈值进行比较;在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔重置为初始时长。
作为选的,所述的移动终端行为上报装置还包括:更新模块304,用于在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;根据所述预设时间段和重置次数,更新所述修正时长。
作为选的,所述的移动终端行为上报装置还包括:暂存模块305,用于暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;以及,用于在网络连接变为可用时,令所述上报模块303将所有暂存的行为数据上报至所述服务器。
在一些其他实施例中,所述获取模块301还用于:接收服务器发送的获 取指令,从所述服务器获取配置信息,然后令所述执行模块302将所述预设时间间隔的时长重置为初始时长。
本发明的又一方面,还提供了一种装置,所述装置的一个实施例,包括:一个或多个处理器;可选的,所述一个或多个处理器用于执行上面任意一个或多个实施例所述的方法中所限定的步骤;以及:
以预设时间间隔从服务器持续获取配置信息;
比较所述预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
较佳的,所述处理器还用于执行:接收服务器发送的获取指令,从所述服务器获取配置信息;
将所述预设时间间隔的时长重置为初始时长。
较佳的,所述处理器还用于执行:将所述预设时间间隔的时长与预设的时长阈值进行比较;
在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔的时长重置为初始时长。
较佳的,所述处理器还用于执行:在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;
根据所述预设时间段和重置次数,更新所述修正时长。
较佳的,所述处理器还用于执行:暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;
当网络连接变为可用时,将暂存的行为数据上报至所述服务器。
此外,典型地,本公开所述的装置可为各种手持终端设备,例如手机、个人数字助理(PDA)、平板电脑(PAD)、智能电视等,因此本公开的保护范围不应限定为某种特定类型的装置。
此外,根据本公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU 执行时,执行本公开的方法中限定的上述功能。
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。
此外,应该明白的是,本文所述的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDR SDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)以及直接RambusRAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的功能,但是这种实现决定不应被解释为导致脱离本公开的范围。
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里所述功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP核、或任何其它这种配置。
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存 储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,所述存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。
在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外先、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。
公开的示例性实施例,但是应当注公开的示例性实施例,但是应当注意,在不背离权利要求限定的本公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本公开的元素可以以个体形式描述或要求,但是也可以设想多个,除非明确限制为单数。
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单 数形式“一个”(“a”、“an”、“the”)旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (15)

  1. 一种移动终端行为上报方法,包括:
    以预设时间间隔从服务器持续获取配置信息;
    比较所述预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
    根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
  2. 根据权利要求1所述的方法,其中,还包括步骤:
    接收服务器发送的获取指令,从所述服务器获取配置信息;
    将所述预设时间间隔的时长重置为初始时长。
  3. 根据权利要求1所述的方法,其中,所述将所述预设时间间隔的时长延长一个修正时长之后,进一步包括步骤:
    将所述预设时间间隔的时长与预设的时长阈值进行比较;
    在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔的时长重置为初始时长。
  4. 根据权利要求1所述的方法,其中,还包括步骤:
    在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;
    根据所述预设时间段和重置次数,更新所述修正时长。
  5. 根据权利要求1所述的方法,其中,从本地获取行为数据时,若网络连接不可用,则进一步包括步骤:
    暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;
    当网络连接变为可用时,将暂存的行为数据上报至所述服务器。
  6. 一种移动终端行为上报装置,包括:
    获取模块,用于以预设时间间隔为间隔,从服务器持续获取配置信息;
    执行模块,用于比较同一预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间 间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
    上报模块,用于根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
  7. 根据权利要求6所述的装置,其中,所述获取模块还用于:接收服务器发送的获取指令,从所述服务器获取配置信息,然后令所述执行模块将所述预设时间间隔的时长重置为初始时长。
  8. 根据权利要求6所述的装置,其中,所述执行模块还用于:将所述预设时间间隔的时长与预设的时长阈值进行比较;在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔重置为初始时长。
  9. 根据权利要求6所述的装置,其中,还包括:更新模块,用于在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;根据所述预设时间段和重置次数,更新所述修正时长。
  10. 根据权利要求6所述的装置,其中,还包括:暂存模块,用于暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;以及,用于在网络连接变为可用时,令所述上报模块将暂存的行为数据上报至所述服务器。
  11. 一种装置,包括:
    一个或多个处理器;以及
    用于存储操作指令的存储器;
    所述一个或多个处理器被配置为从所述存储器中获取操作指令并执行:
    以预设时间间隔从服务器持续获取配置信息;
    比较所述预设时间间隔前后获取的所述配置信息是否相同,若所述预设时间间隔前后获取的所述配置信息相同,则将所述预设时间间隔的时长延长一个修正时长;若所述预设时间间隔前后获取的所述配置信息不同,则将所述预设时间间隔的时长重置为初始时长;
    根据所述配置信息,监测用户行为,当监测到用户行为发生时,从本地获取所述用户行为的行为数据,将所述行为数据上报至所述服务器。
  12. 根据权利要求11所述的装置,其中,所述处理器还用于执行:接收服务器发送的获取指令,从所述服务器获取配置信息;
    将所述预设时间间隔的时长重置为初始时长。
  13. 根据权利要求11所述的装置,其中,所述处理器还用于执行:将所述预设时间间隔的时长与预设的时长阈值进行比较;
    在判定所述预设时间间隔的时长大于所述时长阈值时,将所述预设时间间隔的时长重置为初始时长。
  14. 根据权利要求11所述的装置,其中,所述处理器还用于执行:在预设时间段内,记录将所述预设时间间隔的时长重置为初始时长的重置次数;
    根据所述预设时间段和重置次数,更新所述修正时长。
  15. 根据权利要求11所述的装置,其中,所述处理器还用于执行:暂存网络连接不可用时段内获取的所有行为数据,并持续监测网络连接状态;
    当网络连接变为可用时,将暂存的行为数据上报至所述服务器。
PCT/CN2016/083724 2015-11-30 2016-05-27 一种移动终端行为上报方法和装置 WO2017092260A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/119,846 US20180260298A1 (en) 2015-11-30 2016-05-27 Method and Device for Reporting Mobile Terminal Behaviors

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510857536.XA CN105873194A (zh) 2015-11-30 2015-11-30 一种移动终端行为上报方法和装置
CN201510857536.X 2015-11-30

Publications (1)

Publication Number Publication Date
WO2017092260A1 true WO2017092260A1 (zh) 2017-06-08

Family

ID=56623846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083724 WO2017092260A1 (zh) 2015-11-30 2016-05-27 一种移动终端行为上报方法和装置

Country Status (3)

Country Link
US (1) US20180260298A1 (zh)
CN (1) CN105873194A (zh)
WO (1) WO2017092260A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713410A (zh) * 2016-10-27 2017-05-24 腾讯科技(深圳)有限公司 一种用户信息获取方法和相关设备
CN106686705A (zh) * 2016-12-29 2017-05-17 深圳天珑无线科技有限公司 终端感知状态控制方法和终端感知状态控制装置
CN108803502B (zh) * 2017-04-27 2022-07-26 横河电机株式会社 数据收集装置及系统、数据服务器、数据收集方法及计算机可读取的非易失性的记录介质
CN110381155B (zh) * 2019-07-25 2022-03-25 北京达佳互联信息技术有限公司 任务管理方法、装置、存储介质及终端
CN113483462B (zh) * 2021-04-30 2022-12-16 佛山市顺德区美的电子科技有限公司 空调器及其基于电力线通讯的数据传输方法和存储介质
CN116304594B (zh) * 2023-05-11 2023-09-08 北京融信数联科技有限公司 一种基于通信数据的用户区域识别方法、系统及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491512A (zh) * 2012-06-12 2014-01-01 腾讯科技(深圳)有限公司 消息推送的实现方法和装置
CN103997711A (zh) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 在移动终端上实现定位服务的方法以及软件开发包模块
CN104053180A (zh) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 一种信号强度显示方法和移动终端
WO2015020588A2 (en) * 2013-08-09 2015-02-12 Telefonaktiebolaget L M Ericsson (Publ) A network node and mobile device for use in a communication network, and methods of operating the same and computer program products

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6274236B1 (en) * 1995-06-12 2001-08-14 National Label Company Labels and method of making same
JP4966097B2 (ja) * 2007-05-30 2012-07-04 キヤノン株式会社 情報処理装置および情報処理方法
CN101651903B (zh) * 2008-08-12 2012-07-18 中兴通讯股份有限公司 一种控制终端运动状态评估的方法及终端
US9137198B2 (en) * 2011-10-21 2015-09-15 Hewlett-Packard Development Company, L.P. Centralized configuration with dynamic distributed address management
CN103166827A (zh) * 2011-12-09 2013-06-19 北京神州泰岳软件股份有限公司 用户行为数据上报方法和系统
US9628980B2 (en) * 2012-03-23 2017-04-18 Nec Corporation Subscriber server, monitoring server, mobile terminal, methods related thereto, and computer readable medium
CA2907219C (en) * 2013-03-15 2021-11-02 Daniel P. Soehnlen Method and package for a frozen food product
CN104932911B (zh) * 2014-03-20 2019-06-18 上海携程商务有限公司 定时下载任务的执行方法及装置
CN104065729B (zh) * 2014-06-27 2017-12-05 广州猎豹网络科技有限公司 信息推送方法及装置
JP2016066996A (ja) * 2014-09-16 2016-04-28 株式会社リコー 無線通信装置および無線通信システム

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491512A (zh) * 2012-06-12 2014-01-01 腾讯科技(深圳)有限公司 消息推送的实现方法和装置
CN103997711A (zh) * 2013-02-20 2014-08-20 百度在线网络技术(北京)有限公司 在移动终端上实现定位服务的方法以及软件开发包模块
WO2015020588A2 (en) * 2013-08-09 2015-02-12 Telefonaktiebolaget L M Ericsson (Publ) A network node and mobile device for use in a communication network, and methods of operating the same and computer program products
CN104053180A (zh) * 2014-06-27 2014-09-17 青岛海信移动通信技术股份有限公司 一种信号强度显示方法和移动终端

Also Published As

Publication number Publication date
CN105873194A (zh) 2016-08-17
US20180260298A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
WO2017092260A1 (zh) 一种移动终端行为上报方法和装置
US10552216B2 (en) Application heartbeat period adjusting method and apparatus, and terminal
US8695008B2 (en) Method and system for dynamically controlling power to multiple cores in a multicore processor of a portable computing device
CN104601203B (zh) 一种低功耗蓝牙设备动态调整连接参数的方法及装置
WO2020228289A1 (zh) 日志获取方法、装置、终端及存储介质
WO2017096799A1 (zh) 耗电应用的监测方法、装置、用户终端、计算机程序和存储介质
CN108628890B (zh) 一种数据导出方法及系统
US20170269984A1 (en) Systems and methods for improved detection of processor hang and improved recovery from processor hang in a computing device
CN111913669B (zh) Ssd掉电速度提高方法、装置、计算机设备及存储介质
WO2018210080A1 (zh) 一种数据同步方法、装置、设备及计算机可读存储介质
WO2020102928A1 (zh) 一种无线信号发送方法、无线信号发送装置及终端设备
CN106708431B (zh) 一种存储数据的方法、装置、主机设备和存储设备
US9377966B2 (en) Method and apparatus for efficiently processing storage commands
WO2016058414A1 (zh) 一种实现终端应用处理的方法及装置
TWI443506B (zh) 資訊散佈技術
TWI656441B (zh) 待機異常耗電偵測系統及方法
CN109213589B (zh) 一种消息处理的方法及装置
US11144647B2 (en) System and method for secure image load boot flow using hashed metadata
US9877285B2 (en) Method and system for device aware power save
US8539132B2 (en) Method and system for dynamically managing a bus of a portable computing device
US9639137B2 (en) Control method and electronic device
CN109992369A (zh) 应用程序处理方法和装置、电子设备、计算机可读存储介质
WO2016054902A1 (zh) 一种中央微处理器时钟管理方法、装置及存储介质
CN108768768B (zh) 用于业务系统的阻塞检测方法、装置及存储介质
US20160099997A1 (en) Method and system for managing application data in a communication device

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 15119846

Country of ref document: US

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

Ref document number: 16869574

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16869574

Country of ref document: EP

Kind code of ref document: A1