WO2015161436A1 - 一种版本检测周期调节方法及装置 - Google Patents

一种版本检测周期调节方法及装置 Download PDF

Info

Publication number
WO2015161436A1
WO2015161436A1 PCT/CN2014/075923 CN2014075923W WO2015161436A1 WO 2015161436 A1 WO2015161436 A1 WO 2015161436A1 CN 2014075923 W CN2014075923 W CN 2014075923W WO 2015161436 A1 WO2015161436 A1 WO 2015161436A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
detection period
user
operation record
target
Prior art date
Application number
PCT/CN2014/075923
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 PCT/CN2014/075923 priority Critical patent/WO2015161436A1/zh
Priority to CN201480001296.7A priority patent/CN104350476B/zh
Publication of WO2015161436A1 publication Critical patent/WO2015161436A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for adjusting a version detection period. Background technique
  • the terminal device periodically triggers automatic detection by setting a detection period, automatically Once the test is triggered, the server will detect if there is a new version, and if so, prompt the user to detect the new version.
  • the detection period of the terminal device is fixed. If the cycle time is set too long, when a new version is released, the user will not be able to obtain the new version information in a short time. If the cycle time is set too short, the terminal The device will frequently perform unnecessary detection, resulting in wasted resources. Summary of the invention
  • Embodiments of the present invention disclose a method and apparatus for adjusting a version detection period for reducing a version detection period.
  • a first aspect of the embodiments of the present invention discloses a method for adjusting a version detection period, including:
  • the method further includes:
  • the operation record of the user for the version includes: the current detection period of the user The number of times the new version is detected;
  • the target operation record includes:
  • the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times.
  • the operation record of the user for the version includes: a detection period greater than zero;
  • the target operation record includes:
  • the number of the target detection periods is greater than or equal to the number of preset target detection periods.
  • the operation record of the user for the version includes:
  • the version number of the version after the user upgrades the new version
  • the target operation record includes: in conjunction with the second possible implementation manner of the first aspect of the embodiment of the present invention, in a sixth possible implementation manner of the first aspect of the embodiment of the present invention, the operation record of the server for the version
  • the method includes: a version number of the version uploaded by a third party stored on the server;
  • the target operation record includes:
  • a second aspect of the embodiments of the present invention discloses a version detection period adjustment apparatus, including: An obtaining unit, configured to obtain an operation record for a version;
  • a period adjusting unit configured to reduce a current detection period of the version when the operation record acquired by the acquiring unit includes a target operation record.
  • the period adjusting unit is further configured to: when the operation record acquired by the acquiring unit does not include a target When the operation is recorded, the current detection period of the version is increased, or the current detection period of the version is kept unchanged.
  • the acquiring unit is specifically used to Obtain the user's operation record for the version, or obtain the operation record for the version stored on the server.
  • the acquiring unit is specifically configured to acquire a user to detect in a current detection period.
  • the target operation record includes:
  • the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times.
  • the acquiring unit is specifically configured to acquire a detection period of a target detection period
  • the target operation record includes:
  • the number of the target detection periods is greater than or equal to the number of preset target detection periods.
  • the acquiring unit is specifically configured to obtain, after the user upgrades the new version, Version number of the version;
  • the target operation record includes: in combination with the second possible implementation manner of the second aspect of the embodiment of the present invention, in the sixth possible implementation manner of the second aspect of the embodiment, the acquiring unit is specifically configured to obtain Storage on the server The version number of the version uploaded by the third party;
  • the target operation record includes:
  • a third aspect of the embodiments of the present invention discloses a version detection period adjustment apparatus, including: a memory and a processor, wherein the memory stores a set of program codes, and the processor is configured to invoke a program code stored in the memory. , do the following:
  • the processor further performs the following operations:
  • the current detection period of the version is kept unchanged.
  • the processor obtains a version for The operation record is specifically as follows:
  • the manner in which the processor obtains the operation record of the user for the version is specifically :
  • the target operation record includes:
  • the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times.
  • the processor acquires an operation record of the user for the version.
  • the specific way is:
  • the target detection period is a detection period in which the number of times the user detects a new version in the target detection period is greater than zero;
  • the target operation record includes:
  • the number of the target detection periods is greater than or equal to the number of preset target detection periods.
  • the manner in which the processor obtains the operation record of the user for the version is specifically :
  • the target operation record includes: in combination with the second possible implementation manner of the third aspect of the embodiment of the present invention, in a sixth possible implementation manner of the third aspect of the embodiment, the processor acquires the server for the version.
  • the operation record is specifically as follows:
  • the target operation record includes:
  • the version number of the version on the server is updated with respect to the version number of the version on the terminal device.
  • the operation record for the version is obtained, and when the operation record includes the target operation record, the current detection period of the version is reduced. Therefore, the version detection cycle can be reduced according to the operation record for the version, so that the new version of the version can be detected in time to improve the user experience.
  • FIG. 1 is a flowchart of a method for adjusting a calibration period disclosed in an embodiment of the present invention
  • 2 is a flowchart of another method for adjusting a version detection period according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for adjusting a version detection period according to an embodiment of the present invention
  • FIG. 4 is a disclosure of an embodiment of the present invention
  • FIG. 5 is a flowchart of still another method for adjusting the version detection period disclosed in the embodiment of the present invention
  • FIG. 6 is a version of the calibration period disclosed in the embodiment of the present invention.
  • FIG. 7 is a structural diagram of another version detection period adjusting apparatus disclosed in an embodiment of the present invention. detailed description
  • FIG. 1 is a flow chart of a method for adjusting a version detection period according to an embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. 1 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjustment method may include the following steps.
  • the operation record for the version is first acquired to adjust the version detection period in accordance with the operation record for the version.
  • the version may be a system version, a Kernel kernel version, a firmware parameter, etc., which is not limited in this embodiment, as long as the versions can be upgraded by over the air (OTA) technology.
  • OTA over the air
  • the operation record includes the target operation record
  • reduce the current detection period of the version after obtaining the operation record for the version, it is determined whether the acquired operation record includes the target operation record.
  • the current detection period of the version is reduced, and the new version detection period may be current.
  • the step of the detection period is reduced by one step of the detection period, and the step of the detection period may be several hours or several days, which is not limited in this embodiment.
  • a preset minimum detection period can be set in advance, so that the reduced version detection period is greater than Or equal to the preset minimum detection period.
  • the preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment.
  • the version detection period can be reduced according to the target operation record for the version, so that the new version of the version can be detected in time, and the user experience is improved.
  • the current detection period of the version is increased, or the current detection period of the version is kept unchanged.
  • FIG. 2 is a flow chart of another method for adjusting a version detection period according to an embodiment of the present invention.
  • the method for adjusting the version detection period shown in FIG. 2 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. 2 is based on the number of times the user detects a new version in the current detection period as a basis for changing the detection period of the version.
  • the version detection period adjustment method may include the following steps.
  • a version detection cycle is performed from the completion of the last automatic detection to the completion of the automatic detection.
  • the number of times that the user detects the new version in the current version detection period is obtained.
  • the user can detect the new version by clicking, sliding, etc., which is not limited in this embodiment.
  • the version can be the system version, the Kernel kernel version, the firmware parameters, etc., which are not limited in this embodiment, as long as these versions can be upgraded by OTA technology.
  • the number of times the user detects a new version in the current detection period is counted in the current version detection period.
  • the number of times the user detects the new version may be zeroed.
  • the number of times the user detects the new version will increase.
  • the number of times the user detects the new version is the number of times the user detects the new version in the current detection period.
  • the new version detection period can reduce the detection step size based on the current version of the measurement period.
  • the step of the detection cycle may be several hours, or several days, and the like, which is not limited in this embodiment. If the version detection period is too short, unnecessary detection will be performed frequently, which directly causes the terminal device to consume more power and waste data traffic. Therefore, a preset minimum detection period can be set in advance to make the reduced version detection period. Greater than or equal to the preset minimum detection period. The preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment.
  • the current detection period of the version is increased, or the current detection period of the version is kept unchanged.
  • the current detection period of the version when the number of times the new version is detected by the user in the current detection period is less than the preset number of times, the current detection period of the version may be increased, or the detection period of the version may be kept unchanged. Not limited.
  • FIG. 3 is a flowchart of still another method for adjusting a version detection period according to an embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. 3 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. 3 is based on whether the number of detection periods in which the number of times the new version is detected by the user in the detection period is greater than zero is used as the basis for changing the detection period.
  • the version detection period adjustment method may include the following Steps.
  • acquiring the number of target detection periods may include the following steps.
  • a version detection cycle is performed from the completion of the last automatic detection to the completion of the automatic detection. After each automatic detection is completed, it is determined whether the number of times the user detects the new version in the current version detection period is greater than zero; the user can detect the new version by clicking, sliding, etc., which is not limited in this embodiment.
  • the version can be the system version, the Kernel kernel version, the firmware parameters, etc., and the embodiment is not limited, as long as these versions can be upgraded by OTA technology. The number of times the user detects a new version in the current detection period is counted in the current version detection period.
  • the user when the current version detection period starts, the user can detect that the new version of the flag bit is set to F.
  • the current version detection period when the number of times the user detects the new version is greater than zero, the user detects that the new version of the flag bit will be F becomes T. Therefore, it is judged whether the number of times the user detects the new version in the current detection period is greater than zero, that is, the user is judged to detect whether the flag of the new version is F or ⁇ .
  • the number of target detection periods is increased by one. For example, suppose that when the last automatic detection is completed, the number of target detection periods is zero, and the number of times the user detects a new version in the current detection period is greater than zero, the number of target detection periods after the completion of this automatic detection is completed. If the number of times the user detects a new version is greater than zero from the completion of the automatic detection to the next automatic detection completion time, the number of target detection cycles is two after the next automatic detection is completed.
  • the number of detection periods in which the number of times the user detects a new version in the detection period is equal to zero may be kept unchanged or zeroed.
  • the number of detection periods in which the number of times the user detects a new version in the detection period is equal to zero is set, the number of detection periods in which the number of times the user detects the new version is equal to zero in the detection period is continuous; when the user is in the detection period
  • the number of detection cycles in which the number of times of detecting a new version is equal to zero remains unchanged, the number of detection cycles in which the number of times the user detects a new version in the detection period is equal to zero is discontinuous; the user checks in the detection period
  • the number of detection cycles in which the number of times of the new version is equal to zero is continuous or discontinuous, and is set by the developer, which is not limited in this embodiment.
  • the number of detection cycles in which the number of times the user detects a new version in the detection cycle is zero is zero, and when the number of times the user detects a new version in the last detection cycle is equal to zero, the last time After the automatic detection is completed, the number of detection cycles in which the number of times the user detects the new version is equal to zero in the detection period is one.
  • the number of times the user detects the new version in the current detection period is greater than zero, after the automatic detection is completed, the user The number of detection cycles in which the number of detections of the new version is equal to zero in the detection period is one.
  • the user detects the new version in the detection period.
  • the number of detection periods whose number is equal to zero is two. At this time, the number of detection periods in which the number of times the user detects the new version is equal to zero in the detection period is discontinuous; when the user detects the new version in the last detection period, the number of times is equal to zero. , after the last automatic detection is completed, the user detects the new version during the detection period.
  • the number of detection periods whose number is equal to zero is one.
  • the user detects the detection period of the new version in the detection period equal to zero.
  • the number of zeros is zero.
  • the number of detection cycles in which the number of times the user detects a new version in the detection period is equal to zero is continuous.
  • the number of detection periods in which the number of times the user detects the new version is equal to zero in the detection period is increased by one, and the number of target detection periods remains unchanged or Zero is set, and it is judged whether the number of detection cycles in which the number of times the user detects a new version is equal to zero in the detection period is greater than or equal to the number of preset undetected periods, and the detection period when the user detects the new version in the detection period is equal to zero. If the number of presets is greater than or equal to the number of preset undetected cycles, increase the current detection period of the version.
  • a preset maximum detection can be set in advance.
  • the period is such that the increased version detection period is less than or equal to the preset maximum detection period; when the number of detection periods in which the number of times the user detects the new version is equal to zero in the detection period is less than the number of preset undetected periods, the version is maintained.
  • the detection period is unchanged for the current version detection period.
  • the preset maximum detection period may be set according to requirements, and may be several days or several tens of days, which is not limited in this embodiment. When the number of target detection periods is set to zero, the number of target detection periods is continuous; when the number of target detection periods remains unchanged, the number of target detection periods is discontinuous; The number is continuous or discontinuous, developed by The quotient setting is not limited in this embodiment.
  • the current detection period of the version is reduced.
  • the new version detection period may be in the current version.
  • the step size of one detection period is reduced, and the step size of the detection period may be several hours or several days, which is not limited in this embodiment. If the version detection period is too short, unnecessary detection will be performed frequently, which directly causes the terminal device to consume more power and waste data traffic. Therefore, a preset minimum detection period can be set in advance to make the reduced version detection period. Greater than or equal to the preset minimum detection period. The preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment.
  • the number of target detection periods is less than the number of preset target detection periods, it indicates that the user does not have the willingness to upgrade the version, and the version detection period is kept unchanged for the current version detection period.
  • FIG. 4 is a flow chart of still another method for adjusting a version detection period according to an embodiment of the present invention. The version detection period adjustment method shown in FIG.
  • version detection period adjustment method shown in FIG. 4 is as shown in FIG. 4, and the version detection period adjustment method may include the following steps.
  • the version number of the upgraded version is obtained after the user upgrades the version.
  • the user can upgrade the new version by clicking, sliding, etc., which is not limited in this embodiment.
  • the version can This embodiment is not limited to the system version, the Kernel kernel version, the firmware parameters, etc., as long as these versions can be upgraded by the OTA technology.
  • the current detection period of the version When the current detection period of the version is reduced, the new version detection period may be reduced by one detection period step based on the current version detection period, and the detection period step may be several hours or several days, etc. The example is not limited.
  • the version number of the upgraded version may be higher than the version number of the pre-upgrade version, or may be lower than the version number of the pre-upgrade version, which is not limited in this embodiment. If the version detection period is too short, unnecessary detection will be performed frequently, which directly causes the terminal to consume more power and waste data traffic. Therefore, a preset minimum detection period can be set in advance so that the reduced version detection period is greater than Or equal to the preset minimum detection period.
  • the preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment.
  • the version detection period is stored in a Secure Digital (SD) card.
  • SD Secure Digital
  • the storage detection period is first obtained from the SD card, and the new detection period is re-stored to the SD card after the adjustment.
  • the SD card may be a built-in SD card or an external SD card, and the implementation is not limited.
  • the version number of the version is the same as that of the version of the pre-upgrade version, you can keep the version detection period as the current version detection period. You can also increase the version detection period based on the current version detection period. This example is not limited. .
  • FIG. 5 is a flowchart of still another method for adjusting a version detection period according to an embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. 5 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjustment method shown in FIG. The basis of the period. As shown in FIG. 5, the version detection period adjustment method may include the following steps.
  • the version number of the third-party uploaded version stored on the server is obtained.
  • the terminal device may request the version number of the version from the server, and then the server sends the version number of the version to the terminal device.
  • the server may actively push the version number of the version to the terminal device, which is not limited in this embodiment.
  • the version can be a system version, a Kernel kernel version, firmware parameters, etc., which are not limited in this embodiment, as long as these versions can be upgraded by OTA technology.
  • the third party refers to a third party other than the terminal and the server, which may be a version developer of the version, or may be a consumer who improves the version.
  • the embodiments of the present invention are not limited. When you reduce the current detection period of the version.
  • the detection period field on the server when the version number of the version on the server is higher than the version number of the version on the terminal device, whether the detection period field on the server is filled in, and if the detection period field on the server is not filled, the current version of the version is decreased.
  • the detection period, the new version detection period may be reduced by one detection period step based on the current version detection period, and the detection period step may be several hours, or may be several days, etc., which is not limited in this embodiment. If the version detection period is too short, unnecessary detection will be performed frequently, which will waste data traffic. Therefore, a preset minimum detection period can be set in advance so that the reduced version detection period is greater than or equal to the preset minimum detection period. .
  • the preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment. If the detection period field on the server is filled, it is determined whether the current version detection period is greater than the detection period of the detection period field. If the current version detection period is less than or equal to the detection period of the detection period field, the current detection of the version is reduced according to the above manner. Period; if the current version detection period is greater than the detection period field, the detection period is greater than or equal to the preset minimum detection period. If the version number of the version on the server is the same as the version number of the version on the terminal device, you can keep the version detection period as the current version detection period or increase the version based on the current version detection period. This detection period is not limited in this embodiment.
  • FIG. 6 is a structural diagram of a version detection period adjusting apparatus according to an embodiment of the present invention.
  • the version detection period adjusting device shown in FIG. 6 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjusting device 600 may include:
  • the obtaining unit 601 is configured to obtain an operation record for the version
  • the period adjusting unit 602 is configured to reduce the current detection period of the version when the operation record acquired by the obtaining unit 601 includes the target operation record.
  • the first obtaining unit 601 acquires an operation record for the version to adjust the version detection period according to the operation record for the version.
  • the version may be a system version, a Kernel kernel version, a firmware parameter, etc., which is not limited in this embodiment, as long as the versions can be upgraded by over the air (OTA) technology.
  • OTA over the air
  • the period adjusting unit 602 determines whether the operation record acquired by the obtaining unit 601 includes the target operation record, and when the operation record includes the target operation record, reduces the current detection of the version. cycle. If the version detection period is too short, unnecessary detection will be performed frequently, which will waste data traffic. Therefore, a preset minimum detection period can be set in advance so that the reduced version detection period is greater than or equal to the preset minimum detection period. .
  • the preset minimum detection period may be set as needed, and may be several hours or several days, which is not limited in this embodiment.
  • the period adjusting unit 602 is further configured to: when the operation record acquired by the obtaining unit 601 does not include the target operation record, increase the current detection period of the version, or keep the current detection period of the version unchanged.
  • the period adjusting unit 602 may increase the current detection period of the version, or may keep the detection period of the version as The current version detection period is unchanged, and is not limited in this embodiment.
  • the obtaining unit 601 is specifically configured to obtain an operation record of the user for the version, or acquire an operation record for the version stored on the server.
  • the obtained operation record may be an operation record of the user for the version, or may be an operation record for the version stored on the server, which is not limited in this embodiment.
  • the obtaining unit 601 is specifically configured to acquire the number of times the user detects a new version in the current detection period
  • the target operation record includes:
  • the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times.
  • a version detection cycle is performed from the completion of the last automatic detection to the completion of the automatic detection.
  • the obtaining unit 601 will acquire the number of times the user detects the new version in the current version detection period, and then the period adjusting unit 602 determines whether the number of times the user detects the new version in the current detection period is greater than or equal to the preset. The number of times, when the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times, indicating that the user has the willingness to upgrade the version, and reduces the current detection period of the version.
  • the obtaining unit 601 is specifically configured to acquire the number of target detection periods, where the target detection period is a detection period in which the number of times the user detects a new version in the target detection period is greater than zero;
  • the target operation record includes:
  • the number of target detection periods is greater than or equal to the number of preset target detection periods.
  • the obtaining unit 601 acquires the number of target detection periods, and then the period adjusting unit 602 determines whether the number of target detection periods is greater than or equal to the number of preset target detection periods. When the number of target detection periods is greater than or equal to the preset target detection period, it indicates that the user has the willingness to upgrade the version, and reduces the current detection period of the version.
  • the obtaining unit 601 is specifically configured to obtain a version number of the version after the user upgrades the new version.
  • the target operation record includes:
  • the obtaining unit 601 will obtain the upgraded version. When new, reduce the current detection period of the version.
  • the obtaining unit 601 is specifically configured to obtain a version number of a version uploaded by a third party stored on the server;
  • the target operation record includes:
  • the obtaining unit 601 acquires the version number of the third-party uploaded version stored on the server, and then the period adjusting unit 602 determines that the version number of the version on the server is relative to the terminal device. Whether the version number of the previous version is updated.
  • the current detection period of the version is reduced.
  • FIG. 7 is a structural diagram of another version detection period adjusting apparatus according to an embodiment of the present invention.
  • the version detection period adjusting device shown in FIG. 7 is applicable to a smart terminal device such as a mobile phone or a tablet computer, which is not limited in the embodiment of the present invention.
  • the version detection period adjusting apparatus 700 may include a memory 701 and a processor 702, wherein the memory 701 stores a set of program codes, and the processor 702 is configured to call the program code stored in the memory 701 for execution.
  • the current detection period of the version is reduced.
  • the processor 702 also performs the following operations:
  • the current detection period of the version is increased; or, when the operation record does not include the target operation record, the current detection period of the version is kept unchanged.
  • the manner in which the processor 702 obtains an operation record for the version is:
  • the processor 702 acquires the user's operation record for the version.
  • the specific form is:
  • the target operation record includes:
  • the number of times the user detects a new version in the current detection period is greater than or equal to the preset number of times.
  • the manner in which the processor 702 obtains the operation record of the user for the version is specifically:
  • the number of target detection periods, and the target detection period is a detection period in which the number of times the user detects a new version in the target detection period is greater than zero;
  • the target operation record includes:
  • the number of target detection periods is greater than or equal to the number of preset target detection periods.
  • the manner in which the processor 702 obtains the operation record of the user for the version is specifically:
  • the version number of the version after the user upgrades the new version
  • the target operation record includes: As a possible implementation manner, the manner in which the processor 702 obtains the operation record of the server for the version is specifically:
  • the target operation record includes: In the version detection period adjusting device described in Fig. 7, the detection period of the version can be changed according to the operation record for the version, thereby improving the user experience.
  • embodiments of the present invention further disclose a computer storage medium storing a computer program when a computer program in the computer storage medium is read to a computing step.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, read-only memory (ROM), random access memory (RAM), disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

本发明实施例涉及通信技术领域,公开了一种版本检测周期调节方法及装置,该方法包括:获取针对版本的操作记录;当操作记录包括目标操作记录时,减小版本的当前检测周期。本发明实施例可以减小版本检测周期。

Description

一种版本检测周期调节方法及装置 技术领域
本发明涉及通信技术领域, 尤其涉及一种版本检测周期调节方法及装置。 背景技术
终端设备作为电子技术的产物, 随着电子技术的不断发展, 其更新速度也 越来越快, 这将使终端设备的生产周期变短,从而导致终端设备的版本由于测 试不够充分而带来许多问题,供应商为了改善这些问题将发布新版本, 并将新 版本的数据包放置在服务器中。 由于新版本的更新包放置在服务器中, 因此, 需要用户检测服务器中有没有新版本, 目前常见的一种检测服务器中新版本的 方式为:终端设备通过设置检测周期来定期触发自动检测,自动检测一旦触发, 将从服务器中检测有没有新版本, 若有, 则提示用户检测到新版本。
上述方式中,终端设备的检测周期是固定不变的,如果周期时间设置过长, 当有新版本发布时, 用户将无法在短时间内获得新版本的信息, 如果周期时间 设置过短, 终端设备将频繁进行不必要的检测, 导致资源浪费。 发明内容
本发明实施例公开了一种版本检测周期调节方法及装置,用于减小版本检 测周期。
本发明实施例第一方面公开一种版本检测周期调节方法, 包括:
获取针对版本的操作记录;
当所述操作记录包括目标操作记录时, 减小所述版本的当前检测周期。 结合本发明实施例第一方面,在本发明实施例第一方面的第一种可能的实 现方式中, 所述方法还包括:
当所述操作记录不包括目标操作记录时, 增大所述版本的当前检测周期; 或者,
当所述操作记录不包括目标操作记录时,保持所述版本的当前检测周期不 变。 结合本发明实施例第一方面或本发明实施例第一方面的第一种可能的实 现方式,在本发明实施例第一方面的第二种可能的实现方式中, 所述获取针对 版本的操作记录, 包括:
获取用户针对版本的操作记录; 或者,
获取服务器上存储的针对版本的操作记录。
结合本发明实施例第一方面的第二种可能的实现方式,在本发明实施例第 一方面的第三种可能的实现方式中, 所述用户针对版本的操作记录包括: 用户在当前检测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
结合本发明实施例第一方面的第二种可能的实现方式,在本发明实施例第 一方面的第四种可能的实现方式中, 所述用户针对版本的操作记录包括: 测新版本的次数大于零的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
结合本发明实施例第一方面的第二种可能的实现方式,在本发明实施例第 一方面的第五种可能的实现方式中所述用户针对版本的操作记录包括:
用户升级新版本后所述版本的版本号;
所述目标操作记录包括: 结合本发明实施例第一方面的第二种可能的实现方式,在本发明实施例第 一方面的第六种可能的实现方式中, 所述服务器针对版本的操作记录包括: 服务器上存储的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有 更新。 本发明实施例第二方面公开一种版本检测周期调节装置, 包括: 获取单元, 用于获取针对版本的操作记录;
周期调整单元,用于当所述获取单元获取的所述操作记录包括目标操作记 录时, 减小所述版本的当前检测周期。
结合本发明实施例第二方面,在本发明实施例第二方面的第一种可能的实 现方式中, 所述周期调整单元,还用于当所述获取单元获取的所述操作记录不 包括目标操作记录时, 增大所述版本的当前检测周期, 或, 保持所述版本的当 前检测周期不变。
结合本发明实施例第二方面或本发明实施例第二方面的第一种可能的实 现方式,在本发明实施例第二方面的第二种可能的实现方式中, 所述获取单元 具体用于获取用户针对版本的操作记录, 或, 获取服务器上存储的针对版本的 操作记录。
结合本发明实施例第二方面的第二种可能的实现方式,在本发明实施例第 二方面的第三种可能的实现方式中,所述获取单元具体用于获取用户在当前检 测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
结合本发明实施例第二方面的第二种可能的实现方式,在本发明第二方面 的第四种可能的实现方式中, 所述获取单元具体用于获取目标检测周期的个 的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
结合本发明实施例第二方面的第二种可能的实现方式,在本发明实施例第 二方面的第五种可能的实现方式中,所述获取单元具体用于获取用户升级新版 本后所述版本的版本号;
所述目标操作记录包括: 结合本发明实施例第二方面的第二种可能的实现方式,在本发明实施例第 二方面的第六种可能的实现方式中,所述获取单元具体用于获取服务器上存储 的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有 更新。 本发明实施例第三方面公开一种版本检测周期调节装置, 包括: 存储器和 处理器, 其中, 所述存储器中存储一组程序代码, 且所述处理器用于调用所述 存储器中存储的程序代码, 执行以下操作:
获取针对版本的操作记录;
当所述操作记录包括目标操作记录时, 减小所述版本的当前检测周期。 结合本发明实施例第三方面,在本发明实施例第三方面的第一种可能的实 现方式中, 所述处理器还执行以下操作:
当所述操作记录不包括目标操作记录时, 增大所述版本的当前检测周期; 或者,
当所述操作记录不包括目标操作记录时,保持所述版本的当前检测周期不 变。
结合本发明实施例第三方面或本发明实施例第三方面的第一种可能的实 现方式,在本发明实施例第三方面的第二种可能的实现方式中, 所述处理器获 取针对版本的操作记录的方式具体为:
获取用户针对版本的操作记录; 或者,
获取服务器上存储的针对版本的操作记录。
结合本发明实施例第三方面的第二种可能的实现方式,在本发明实施例第 三方面的第三种可能的实现方式中,所述处理器获取用户针对版本的操作记录 的方式具体为:
获取用户在当前检测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
结合本发明实施例第三方面的第二种可能的实现方式,在本发明实施例第 三方面的第四种可能的实现方式中,所述处理器获取用户针对版本的操作记录 的方式具体为:
获取目标检测周期的个数,所述目标检测周期为用户在所述目标检测周期 内检测新版本的次数大于零的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
结合本发明实施例第三方面的第二种可能的实现方式,在本发明实施例第 三方面的第五种可能的实现方式中,所述处理器获取用户针对版本的操作记录 的方式具体为:
获取用户升级新版本后所述版本的版本号;
所述目标操作记录包括: 结合本发明实施例第三方面的第二种可能的实现方式,在本发明实施例第 三方面的第六种可能的实现方式中,所述处理器获取服务器针对版本的操作记 录的方式具体为:
获取服务器上存储的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有 更新。 本发明实施例中, 获取到针对版本的操作记录, 当操作记录包括目标操作 记录时, 减小版本的当前检测周期。 因此, 可以根据针对版本的操作记录减小 版本检测周期, 以便及时检测到版本的新版本, 提高用户体验。 附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要 使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例公开的一种版^测周期调节方法的流程图; 图 2是本发明实施例公开的另一种版本检测周期调节方法的流程图; 图 3是本发明实施例公开的又一种版本检测周期调节方法的流程图; 图 4是本发明实施例公开的又一种版本检测周期调节方法的流程图; 图 5是本发明实施例公开的又一种版本检测周期调节方法的流程图; 图 6是本发明实施例公开的一种版^测周期调节装置的结构图; 图 7是本发明实施例公开的另一种版本检测周期调节装置的结构图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明公开了一种版本检测周期调节方法及装置, 用于减小版本检测周 期。 以下分别进行详细说明。 请参阅图 1,图 1是本发明实施例公开的一种版本检测周期调节方法的流程 图。 其中, 图 1所示的版本检测周期调节方法适用于手机、 平板电脑等智能终 端设备, 本发明实施例不作限定。 如图 1所示, 该版本检测周期调节方法可以 包括以下步骤。
5101、 获取针对版本的操作记录。
本实施例中, 首先获取针对版本的操作记录, 以便根据针对版本的操作记 录来调节版本检测周期。 其中, 版本可以为系统版本、 Kernel内核版本、 固件 参数等, 本实施例不做限定, 只要这些版本能够通过空中下载 (over the air, OTA )技术进行升级即可。
5102、 当操作记录包括目标操作记录时, 减小版本的当前检测周期。 本实施例中, 获取针对版本的操作记录之后,将判断获取的操作记录是否 包括目标操作记录, 当操作记录包括目标操作记录时, 减小版本的当前检测周 期,新的版本检测周期可以在当前版本检测周期的基础上减小一个检测周期步 长, 检测周期步长可以为几小时、 也可以为几天等, 本实施例不作限定。 如果 版本检测周期过短,将会频繁进行不必要的检测,直接导致终端设备功耗较大, 并且浪费数据流量, 因此, 可以预先设置一个预设最小检测周期, 使减小后的 版本检测周期大于或等于预设最小检测周期。其中,预设最小检测周期可以根 据需要设定, 可以为几小时, 也可以为几天, 本实施例不作限定。
在图 1所描述的版本检测周期调节方法中, 可以根据针对版本的目标操作 记录减小版本检测周期, 以便及时检测到版本的新版本, 提高用户体验。 本发明的一个实施例中, 当操作记录不包括目标操作记录时,增大版本的 当前检测周期, 或者保持版本的当前检测周期不变。
本实施例中, 当操作记录不包括目标操作记录时, 可以增大版本的当前检 测周期,也可以保持版本的检测周期为当前版本检测周期不变, 本实施例不作 限定。 当操作记录不包括目标操作记录时, 增大版本的当前检测周期, 可以降 低终端设备的功耗和节约数据流量; 保持版本的当前检测周期不变, 可以减小 版本检测周期过多的变动。 请参阅图 2,图 2是本发明实施例公开的另一种版本检测周期调节方法的流 程图。 其中, 图 2所示的版本检测周期调节方法适用于手机、 平板电脑等智能 终端设备, 本发明实施例不作限定。 此外, 图 2所示的版本检测周期调节方法 是以用户在当前检测周期内检测新版本的次数作为是否改变版本的检测周期 的依据的。 如图 2所示, 该版本检测周期调节方法可以包括以下步骤。
S201、 获取用户在当前检测周期内检测新版本的次数。
本实施例中,从上次自动检测完成到本次自动检测完成即为一个版本检测 周期。在每次自动检测完成之后, 将获取用户在当前版本检测周期内检测新版 本的次数; 用户可以通过点击、 滑动等操作检测新版本, 本实施例不作限定。 其中, 版本可以为系统版本、 Kernel内核版本、 固件参数等, 本实施例不做限 定, 只要这些版本能够通过 OTA技术进行升级即可。 其中, 用户在当前检测周 期内检测新版本的次数是在当前版本检测周期内统计出来的。
举例说明,在当前版本检测周期开始时,可将用户检测新版本的次数置零, 在当前版本检测周期内, 用户每检测新版本一次, 用户检测新版本的次数将加 一, 当当前版本检测周期结束时, 用户检测新版本的次数即为用户在当前检测 周期内检测新版本的次数。
S202、 当用户在当前检测周期内检测新版本的次数大于或等于预设次数 时, 减小版本的当前检测周期。
本实施例中, 获取到用户在当前检测周期内检测新版本的次数之后,将判 断用户在当前检测周期内检测新版本的次数是否大于或等于预设次数,当用户 在当前检测周期内检测新版本的次数大于或等于预设次数时,表明用户有升级 版本的意愿, 减小版本的当前检测周期,新的版本检测周期可以在当前版^ 测周期的基础上减小一个检测周期步长,检测周期步长可以为几小时、也可以 为几天等, 本实施例不作限定。 如果版本检测周期过短, 将会频繁进行不必要 的检测, 直接导致终端设备功耗较大, 并且浪费数据流量, 因此, 可以预先设 置一个预设最小检测周期,使减小后的版本检测周期大于或等于预设最小检测 周期。 其中, 预设最小检测周期可以根据需要设定, 可以为几小时, 也可以为 几天, 本实施例不作限定。
作为一种可能的实施方式,当用户在当前检测周期内检测新版本的次数小 于预设次数时,增大版本的当前检测周期,或者保持版本的当前检测周期不变。
本实施例中, 当用户在当前检测周期内检测新版本的次数小于预设次数 时, 可以增大版本的当前检测周期,也可以保持版本的检测周期为当前版本检 测周期不变, 本实施例不作限定。
在图 2所描述的版本检测周期调节方法中, 获取用户在当前检测周期内检 测新版本的次数,当用户在当前检测周期内检测新版本的次数大于或等于预设 次数时, 减小版本的当前检测周期。 因此, 可以根据用户在当前检测周期内检 测新版本的次数来改变版本的检测周期, 提高用户体验。 请参阅图 3,图 3是本发明实施例公开的又一种版本检测周期调节方法的流 程图。 其中, 图 3所示的版本检测周期调节方法适用于手机、 平板电脑等智能 终端设备, 本发明实施例不作限定。 此外, 图 3所示的版本检测周期调节方法 是以用户在检测周期内检测新版本的次数大于零的检测周期的个数作为是否 改变检测周期的依据的。 如图 3所示, 该版本检测周期调节方法可以包括以下 步骤。
S301、获取目标检测周期的个数,该目标检测周期为用户在该目标检测周 期内检测新版本的次数大于零的检测周期。
作为一种可能的实施方式, 获取目标检测周期的个数可以包括以下步骤。
3011 , 判断用户在当前检测周期内检测新版本的次数是否大于零。
本实施例中,从上次自动检测完成到本次自动检测完成即为一个版本检测 周期。在每次自动检测完成之后, 将判断用户在当前版本检测周期内检测新版 本的次数是否大于零; 用户可以通过点击、 滑动等操作检测新版本, 本实施例 不作限定。 其中, 版本可以为系统版本、 Kernel内核版本、 固件参数等, 本实 施例不做限定, 只要这些版本能够通过 OTA技术进行升级即可。 其中, 用户在 当前检测周期内检测新版本的次数是在当前版本检测周期内统计出来的。
举例说明, 在当前版本检测周期开始时, 可将用户检测新版本的标志位设 置为 F, 在当前版本检测周期内, 当用户检测新版本的次数大于零时, 用户检 测新版本的标志位将由 F变为 T。 因此, 判断用户在当前检测周期内检测新版 本的次数是否大于零, 即判断用户检测新版本的标志位为 F还是 Τ。
3012、若用户在当前检测周期内检测新版本的次数大于零, 则将目标检测 周期的个数加一。
本实施例中, 若用户在当前检测周期内检测新版本的次数大于零, 则将目 标检测周期的个数加一。 例如, 假设在上次自动检测完成时, 目标检测周期的 个数为零, 而用户在当前检测周期内检测新版本的次数大于零, 则在本次自动 检测完成后, 目标检测周期的个数为一; 当从本次自动检测完成到下次自动检 测完成时间内, 用户检测新版本的次数大于零时, 在下次自动检测完成后, 目 标检测周期的个数为二。
本实施例中,将目标检测周期的个数加一的同时, 可以将用户在检测周期 内检测新版本的次数等于零的检测周期的个数保持不变或置零。当将用户在检 测周期内检测新版本的次数等于零的检测周期的个数置零时,用户在检测周期 内检测新版本的次数等于零的检测周期的个数是连续的;当将用户在检测周期 内检测新版本的次数等于零的检测周期的个数保持不变时,用户在检测周期内 检测新版本的次数等于零的检测周期的个数是不连续的;用户在检测周期内检 测新版本的次数等于零的检测周期的个数为连续或不连续, 由开发商设置, 本 实施例不作限定。
举例说明,假设在上次检测周期之前, 用户在检测周期内检测新版本的次 数等于零的检测周期的个数为零,当用户在上次检测周期内检测新版本的次数 等于零时, 在上次自动检测完成后, 用户在检测周期内检测新版本的次数等于 零的检测周期的个数为一,当用户在当前检测周期内检测新版本的次数大于零 时,在本次自动检测完成后, 用户在检测周期内检测新版本的次数等于零的检 测周期的个数为一, 当用户在下次检测周期内检测新版本的次数等于零时,在 下次自动检测完成后,用户在检测周期内检测新版本的次数等于零的检测周期 的个数为二, 此时, 用户在检测周期内检测新版本的次数等于零的检测周期的 个数为不连续的; 当用户在上次检测周期内检测新版本的次数等于零, 则在上 次自动检测完成后,用户在检测周期内检测新版本的次数等于零的检测周期的 个数为一, 当用户在当前检测周期内检测新版本的次数大于零, 则在本次自动 检测完成后,用户在检测周期内检测新版本的次数等于零的检测周期的个数为 零, 此时, 用户在检测周期内检测新版本的次数等于零的检测周期的个数为连 续的。
相应地, 若用户在当前检测周期内检测新版本的次数等于零, 则将用户在 检测周期内检测新版本的次数等于零的检测周期的个数加一,将目标检测周期 的个数保持不变或置零,并判断用户在检测周期内检测新版本的次数等于零的 检测周期的个数是否大于或等于预设未检测周期的个数,当用户在检测周期内 检测新版本的次数等于零的检测周期的个数大于或等于预设未检测周期的个 数时, 增大版本的当前检测周期, 如果版本检测周期过长, 将无法及时检测到 版本的更新, 因此, 可以预先设置一个预设最大检测周期, 使增大后的版本检 测周期小于或等于预设最大检测周期; 当用户在检测周期内检测新版本的次数 等于零的检测周期的个数小于预设未检测周期的个数时,保持版本的检测周期 为当前版本检测周期不变。 其中, 预设最大检测周期可以根据需要设定, 可以 为几天, 也可以为几十天, 本实施例不作限定。 当将目标检测周期的个数置零 时, 目标检测周期的个数是连续的; 当将目标检测周期的个数保持不变时, 目 标检测周期的个数是不连续的; 目标检测周期的个数为连续或不连续, 由开发 商设置, 本实施例不作限定。
3013、 判断目标检测周期的个数是否大于或等于预设目标检测周期的个 数。
S302、 当目标检测周期的个数大于或等于预设目标检测周期的个数时,减 小版本的当前检测周期。
本实施例中,当目标检测周期的个数大于或等于预设目标检测周期的个数 时, 表明用户有升级版本的意愿, 减小版本的当前检测周期, 新的版本检测周 期可以在当前版本检测周期的基础上减小一个检测周期步长,检测周期步长可 以为几小时、 也可以为几天等, 本实施例不作限定。 如果版本检测周期过短, 将会频繁进行不必要的检测,直接导致终端设备功耗较大,并且浪费数据流量, 因此, 可以预先设置一个预设最小检测周期,使减小后的版本检测周期大于或 等于预设最小检测周期。 其中, 预设最小检测周期可以根据需要设定, 可以为 几小时, 也可以为几天, 本实施例不作限定。
相应地, 当目标检测周期的个数小于预设目标检测周期的个数时, 则表明 用户没有升级版本的意愿, 则保持版本检测周期为当前版本检测周期不变。
在图 3所描述的版本检测周期调节方法中, 获取检测周期的个数, 该检测 周期为用户在该检测周期内检测新版本的次数大于零,当检测周期的个数大于 或等于预设个数时, 减小版本的当前检测周期。 因此, 可以根据用户在检测周 期内检测新版本的次数大于零的检测周期的个数来改变版本的检测周期,提高 用户体验。 请参阅图 4,图 4是本发明实施例公开的又一种版本检测周期调节方法的流 程图。 其中, 图 4所示的版本检测周期调节方法适用于手机、 平板电脑等智能 终端设备, 本发明实施例不作限定。 此外, 图 4所示的版本检测周期调节方法 如图 4所示, 该版本检测周期调节方法可以包括以下步骤。
S401、 获取用户升级新版本后版本的版本号。
本实施例中, 在用户每次升级版本后, 将获取升级后版本的版本号; 用户 可以通过点击、 滑动等操作升级新版本, 本实施例不作限定。 其中, 版本可以 为系统版本、 Kernel内核版本、 固件参数等, 本实施例不做限定, 只要这些版 本能够通过 OTA技术进行升级即可。 版本的当前检测周期。 时, 减小版本的当前检测周期,新的版本检测周期可以在当前版本检测周期的 基础上减小一个检测周期步长,检测周期步长可以为几小时、也可以为几天等, 本实施例不作限定。其中,升级后版本的版本号可以高于升级前版本的版本号, 也可以低于升级前版本的版本号,本实施例不作限定。如果版本检测周期过短, 将会频繁进行不必要的检测, 直接导致终端功耗较大, 并且浪费数据流量, 因 此, 可以预先设置一个预设最小检测周期,使减小后的版本检测周期大于或等 于预设最小检测周期。 其中, 预设最小检测周期可以根据需要设定, 可以为几 小时, 也可以为几天, 本实施例不作限定。 其中, 版本检测周期存储在安全数 码(Secure Digital, SD )卡中, 对检测周期进行调整时, 先从 SD卡中获取存 储的检测周期, 调整完后将新的检测周期重新存储到 SD卡, 其中, SD卡可以 是内置 SD卡, 也可以是外置 SD卡, 本实施不作限定。 级后版本的版本号与升级前版本的版本号一致时,可以保持版本检测周期为当 前版本检测周期不变, 也可以在当前版本检测周期的基础上增大版本检测周 期, 本实施例不作限定。
在图 4所描述的版本检测周期调节方法中, 获取用户升级新版本后版本的
本的检测周期, 提高用户体验。 请参阅图 5,图 5是本发明实施例公开的又一种版本检测周期调节方法的流 程图。 其中, 图 5所示的版本检测周期调节方法适用于手机、 平板电脑等智能 终端设备, 本发明实施例不作限定。 此外, 图 5所示的版本检测周期调节方法 期的依据的。 如图 5所示, 该版本检测周期调节方法可以包括以下步骤。
S501、 获取服务器上存储的第三方上传的版本的版本号。
本实施例中,在每次自动检测开启时, 获取服务器上存储的第三方上传的 版本的版本号。可以是终端设备从服务器上主动请求获取版本的版本号,之后 服务器将版本的版本号发送给终端设备;也可以是服务器主动将版本的版本号 推送给终端设备, 本实施例不作限定。 其中, 版本可以为系统版本、 Kernel内 核版本、 固件参数等, 本实施例不做限定, 只要这些版本能够通过 OTA技术进 行升级即可。 此处, 所述第三方是指除所述终端和所述服务器之外的第三方, 其可以是所述版本的版本开发者,也可以是对所述版本进行改进的消费者,对 此, 本发明实施例不做限定。 时, 减小版本的当前检测周期。
本实施例中, 当服务器上版本的版本号高于终端设备上版本的版本号时, 器上的检测周期字段是否被填写, 若服务器上的检测周期字段未被填写, 则减 小版本的当前检测周期,新的版本检测周期可以在当前版本检测周期的基础上 减小一个检测周期步长, 检测周期步长可以为几小时、 也可以为几天等, 本实 施例不作限定。 如果版本检测周期过短, 将会频繁进行不必要的检测, 这将浪 费数据流量, 因此, 可以预先设置一个预设最小检测周期, 使减小后的版本检 测周期大于或等于预设最小检测周期。 其中,预设最小检测周期可以根据需要 设定, 可以为几小时, 也可以为几天, 本实施例不作限定。 若服务器上的检测 周期字段被填写, 则判断当前版本检测周期是否大于检测周期字段的检测周 期, 若当前版本检测周期小于或等于检测周期字段的检测周期, 则按照上述方 式减小版本的当前检测周期;若当前版本检测周期大于检测周期字段的检测周 周期大于或等于预设最小检测周期。 即服务器上版本的版本号与终端设备上版本的版本号一致时,可以保持版本检 测周期为当前版本检测周期不变,也可以在当前版本检测周期的基础上增大版 本检测周期, 本实施例不作限定。
在图 5所描述的版本检测周期调节方法中, 获取服务器上版本的版本号, 的当前检测周期。 因此, 可以根据服务器上版本的版本号来改变版本的检测周 期, 提高用户体验。 请参阅图 6, 图 6是本发明实施例公开的一种版本检测周期调节装置的结 构图。 其中, 图 6所示的版本检测周期调节装置适用于手机、 平板电脑等智能 终端设备, 本发明实施例不作限定。 如图 6 所示, 该版本检测周期调节装置 600可以包括:
获取单元 601, 用于获取针对版本的操作记录;
周期调整单元 602,用于当获取单元 601获取的操作记录包括目标操作记录 时, 减小版本的当前检测周期。
本实施例中, 首先获取单元 601获取针对版本的操作记录, 以便根据针对 版本的操作记录来调节版本检测周期。 其中, 版本可以为系统版本、 Kernel内 核版本、 固件参数等, 本实施例不做限定, 只要这些版本能够通过空中下载 ( over the air, OTA )技术进行升级即可。
本实施例中, 获取单元 601获取针对版本的操作记录之后, 周期调整单元 602将判断获取单元 601获取的操作记录是否包括目标操作记录,当操作记录包 括目标操作记录时, 减小版本的当前检测周期。 如果版本检测周期过短, 将会 频繁进行不必要的检测, 这将浪费数据流量, 因此, 可以预先设置一个预设最 小检测周期, 使减小后的版本检测周期大于或等于预设最小检测周期。 其中, 预设最小检测周期可以根据需要设定, 可以为几小时, 也可以为几天, 本实施 例不作限定。
作为一种可能的实施方式, 周期调整单元 602,还用于当获取单元 601获取 的操作记录不包括目标操作记录时, 增大版本的当前检测周期, 或, 保持版本 的当前检测周期不变。
本实施例中, 当获取单元 601获取的操作记录不包括目标操作记录时, 周 期调整单元 602可以增大版本的当前检测周期, 也可以保持版本的检测周期为 当前版本检测周期不变, 本实施例不作限定。
作为一种可能的实施方式, 获取单元 601具体用于获取用户针对版本的操 作记录, 或, 获取服务器上存储的针对版本的操作记录。
本实施例中, 获取的操作记录可以是用户针对版本的操作记录, 也可以是 服务器上存储的针对版本的操作记录, 本实施例不作限定。
作为一种可能的实施方式, 获取单元 601具体用于获取用户在当前检测周 期内检测新版本的次数;
目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
本实施例中,从上次自动检测完成到本次自动检测完成即为一个版本检测 周期。 在每次自动检测完成之后, 获取单元 601将获取用户在当前版本检测周 期内检测新版本的次数, 之后周期调整单元 602将判断用户在当前检测周期内 检测新版本的次数是否大于或等于预设次数,当用户在当前检测周期内检测新 版本的次数大于或等于预设次数时,表明用户有升级版本的意愿, 减小版本的 当前检测周期。
作为一种可能的实施方式, 获取单元 601具体用于获取目标检测周期的个 数,目标检测周期为用户在目标检测周期内检测新版本的次数大于零的检测周 期;
目标操作记录包括:
目标检测周期的个数大于或等于预设目标检测周期的个数。
本实施例中, 在每次自动检测完成之后, 获取单元 601将获取目标检测周 期的个数, 之后周期调整单元 602将判断目标检测周期的个数是否大于或等于 预设目标检测周期的个数,当目标检测周期的个数是否大于或等于预设目标检 测周期时, 表明用户有升级版本的意愿, 减小版本的当前检测周期。
作为一种可能的实施方式, 获取单元 601具体用于获取用户升级新版本后 所述版本的版本号;
目标操作记录包括: 本实施例中, 在用户每次升级版本后, 获取单元 601将获取升级后版本的 新时, 减小版本的当前检测周期。
作为一种可能的实施方式, 获取单元 601具体用于获取服务器上存储的第 三方上传的版本的版本号;
目标操作记录包括: 本实施例中, 在每次自动检测时, 获取单元 601获取服务器上存储的第三 方上传的版本的版本号, 之后周期调整单元 602判断服务器上版本的版本号相 对于终端设备上版本的版本号是否有更新,当服务器上版本的版本号相对于终 端设备上版本的版本号有更新时, 减小版本的当前检测周期。
在图 6所描述的版本检测周期调节装置中,可以根据针对版本的操作记录 减小版本检测周期, 以便及时检测到版本的新版本, 提高用户体验。 请参阅图 7, 图 7是本发明实施例公开的另一种版本检测周期调节装置的 结构图。 其中, 图 7所示的版本检测周期调节装置适用于手机、 平板电脑等智 能终端设备, 本发明实施例不作限定。 如图 7所示, 该版本检测周期调节装置 700可以包括存储器 701和处理器 702,其中存储器 701中存储一组程序代码, 且处理器 702用于调用存储器 701中存储的程序代码, 用于执行以下操作: 获取针对版本的操作记录;
当操作记录包括目标操作记录时, 减小版本的当前检测周期。
作为一种可能的实施方式, 处理器 702还执行以下操作:
当操作记录不包括目标操作记录时, 增大版本的当前检测周期; 或者, 当操作记录不包括目标操作记录时, 保持版本的当前检测周期不变。
作为一种可能的实施方式, 处理器 702获取针对版本的操作记录的方式具 体为:
获取用户针对版本的操作记录; 或者,
获取服务器上存储的针对版本的操作记录。
作为一种可能的实施方式, 处理器 702获取用户针对版本的操作记录的方 式具体为:
用户在当前检测周期内检测新版本的次数;
目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
作为一种可能的实施方式, 处理器 702获取用户针对版本的操作记录的方 式具体为:
目标检测周期的个数,目标检测周期为用户在目标检测周期内检测新版本 的次数大于零的检测周期;
目标操作记录包括:
目标检测周期的个数大于或等于预设目标检测周期的个数。
作为一种可能的实施方式, 处理器 702获取用户针对版本的操作记录的方 式具体为:
用户升级新版本后版本的版本号;
目标操作记录包括: 作为一种可能的实施方式, 处理器 702获取服务器针对版本的操作记录的 方式具体为:
服务器上存储的第三方上传的版本的版本号;
目标操作记录包括: 在图 7所描述的版本检测周期调节装置中,可以根据针对版本的操作记录 来改变版本的检测周期, 提高用户体验。
一个实施例中, 本发明实施例进一步公开一种计算机存储介质, 该计算机 存储介质存储有计算机程序,当计算机存储介质中的计算机程序被读取到计算 步骤。
需要说明的是, 对于前述的各个方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合,但是本领域技术人员应该知悉, 本发明并不受所描述 的动作顺序的限制, 因为依据本发明, 某一些步骤可以釆用其他顺序或者同时 进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属于优 选实施例, 所涉及的动作和模块并不一定是本发明所必须的。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: 闪存盘、 只读存储器(Read-Only Memory , ROM ), 随机存取器(Random Access Memory, RAM ), 磁盘或光盘等。
施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域 的一般技术人员,依据本发明的思想, 在具体实施方式及应用范围上均会有改 变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种版本检测周期调节方法, 其特征在于, 所述方法包括:
获取针对版本的操作记录;
当所述操作记录包括目标操作记录时, 减小所述版本的当前检测周期。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 当所述操作记录不包括目标操作记录时, 增大所述版本的当前检测周期; 或者,
当所述操作记录不包括目标操作记录时,保持所述版本的当前检测周期不 变。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述获取针对版本的操 作记录, 包括:
获取用户针对版本的操作记录; 或者,
获取服务器上存储的针对版本的操作记录。
4、 根据权利要求 3所述的方法, 其特征在于, 所述用户针对版本的操作记 录包括:
用户在当前检测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
5、 根据权利要求 3所述的方法, 其特征在于, 所述用户针对版本的操作记 录包括: 测新版本的次数大于零的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
6、 根据权利要求 3所述的方法, 其特征在于, 所述用户针对版本的操作记 录包括:
用户升级新版本后所述版本的版本号;
所述目标操作记录包括:
7、 根据权利要求 3所述的方法, 其特征在于, 所述服务器针对版本的操作 i己录包括:
服务器上存储的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有 更新。
8、 一种版本检测周期调节装置, 其特征在于, 包括:
获取单元, 用于获取针对版本的操作记录;
周期调整单元,用于当所述获取单元获取的所述操作记录包括目标操作记 录时, 减小所述版本的当前检测周期。
9、 如权利要求 8所述的装置, 其特征在于, 所述周期调整单元, 还用于当 所述获取单元获取的所述操作记录不包括目标操作记录时,增大所述版本的当 前检测周期, 或, 保持所述版本的当前检测周期不变。
10、 如权利要求 8或 9所述的装置, 其特征在于, 所述获取单元具体用于获 取用户针对版本的操作记录, 或, 获取服务器上存储的针对版本的操作记录。
11、 如权利要求 10所述的装置, 其特征在于, 所述获取单元具体用于获取 用户在当前检测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
12、 如权利要求 10所述的装置, 其特征在于, 所述获取单元具体用于获取 版本的次数大于零的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
13、 如权利要求 10所述的装置, 其特征在于, 所述获取单元具体用于获取 用户升级新版本后所述版本的版本号;
所述目标操作记录包括:
14、 如权利要求 10所述的装置, 其特征在于, 所述获取单元具体用于获取 服务器上存储的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有 更新。
15、 一种版本检测周期调节装置, 其特征在于, 包括: 存储器和处理器, 其中, 所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中 存储的程序代码, 执行以下操作:
获取针对版本的操作记录;
当所述操作记录包括目标操作记录时, 减小所述版本的当前检测周期。
16、如权利要求 15所述的装置,其特征在于,所述处理器还执行以下操作: 当所述操作记录不包括目标操作记录时, 增大所述版本的当前检测周期; 或者,
当所述操作记录不包括目标操作记录时,保持所述版本的当前检测周期不 变。
17、 如权利要求 15或 16所述的装置, 其特征在于, 所述处理器获取针对版 本的操作记录的方式具体为:
获取用户针对版本的操作记录; 或者,
获取服务器上存储的针对版本的操作记录。
18、 如权利要求 17所述的装置, 其特征在于, 所述处理器获取用户针对版 本的操作记录的方式具体为:
获取用户在当前检测周期内检测新版本的次数;
所述目标操作记录包括:
用户在当前检测周期内检测新版本的次数大于或等于预设次数。
19、 如权利要求 17所述的装置, 其特征在于, 所述处理器获取用户针对版 本的操作记录的方式具体为:
获取目标检测周期的个数,所述目标检测周期为用户在所述目标检测周期 内检测新版本的次数大于零的检测周期;
所述目标操作记录包括:
所述目标检测周期的个数大于或等于预设目标检测周期的个数。
20、 如权利要求 17所述的装置, 其特征在于, 所述处理器获取用户针对版 本的操作记录的方式具体为:
获取用户升级新版本后所述版本的版本号;
所述目标操作记录包括:
21、 如权利要求 17所述的装置, 其特征在于, 所述处理器获取服务器针对 版本的操作记录的方式具体为:
获取服务器上存储的第三方上传的所述版本的版本号;
所述目标操作记录包括:
所述服务器上所述版本的版本号相对于终端设备上所述版本的版本号有
-ίΖ-
CZ6S.0/M0ZN3/X3d 9CM9l/ST0Z OAV
PCT/CN2014/075923 2014-04-22 2014-04-22 一种版本检测周期调节方法及装置 WO2015161436A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/075923 WO2015161436A1 (zh) 2014-04-22 2014-04-22 一种版本检测周期调节方法及装置
CN201480001296.7A CN104350476B (zh) 2014-04-22 2014-04-22 一种版本检测周期调节方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/075923 WO2015161436A1 (zh) 2014-04-22 2014-04-22 一种版本检测周期调节方法及装置

Publications (1)

Publication Number Publication Date
WO2015161436A1 true WO2015161436A1 (zh) 2015-10-29

Family

ID=52504148

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075923 WO2015161436A1 (zh) 2014-04-22 2014-04-22 一种版本检测周期调节方法及装置

Country Status (2)

Country Link
CN (1) CN104350476B (zh)
WO (1) WO2015161436A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107451172B (zh) * 2016-03-31 2021-05-28 阿里巴巴集团控股有限公司 用于版本管理系统的数据同步方法及设备
CN110413008B (zh) * 2019-07-17 2022-08-12 国核电力规划设计研究院有限公司 固定可调光伏支架角度调整日期的确定方法和装置
CN112559380A (zh) * 2021-02-19 2021-03-26 鹏城实验室 项目的测试方法、装置及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179791A (zh) * 2007-12-03 2008-05-14 中兴通讯股份有限公司 一种移动终端软件版本升级的方法
CN101877650A (zh) * 2010-05-20 2010-11-03 中兴通讯股份有限公司 一种自动更新软件版本的方法及系统
CN101883372A (zh) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 无线通信设备自动更新方法和装置
CN102271327A (zh) * 2011-08-30 2011-12-07 大唐移动通信设备有限公司 一种指示软件版本更新的方法及设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6490597B1 (en) * 1999-07-14 2002-12-03 Ericsson Inc. Stored data object management and archive control
CN100337200C (zh) * 2005-04-22 2007-09-12 珠海金山软件股份有限公司 一种在计算机系统中使用的软件升级方法
CN101984405A (zh) * 2010-10-11 2011-03-09 中兴通讯股份有限公司 一种软件版本升级方法、终端及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179791A (zh) * 2007-12-03 2008-05-14 中兴通讯股份有限公司 一种移动终端软件版本升级的方法
CN101877650A (zh) * 2010-05-20 2010-11-03 中兴通讯股份有限公司 一种自动更新软件版本的方法及系统
CN101883372A (zh) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 无线通信设备自动更新方法和装置
CN102271327A (zh) * 2011-08-30 2011-12-07 大唐移动通信设备有限公司 一种指示软件版本更新的方法及设备

Also Published As

Publication number Publication date
CN104350476B (zh) 2017-06-27
CN104350476A (zh) 2015-02-11

Similar Documents

Publication Publication Date Title
US10430183B1 (en) Device interrogation framework
EP3096224B1 (en) Method and apparatus for processing application installation package
KR102400384B1 (ko) 외장 메모리를 구비하는 전자장치 및 그 동작 방법
TWI489818B (zh) 遠端升級伺服器及其適用之負載平衡方法
US9411573B2 (en) Testing framework for applications
TWI622933B (zh) Client update method and device
US20110078341A1 (en) Method of monitoring host activity
US10853026B2 (en) Method and apparatus for streaming audio by using wireless link
WO2016000544A1 (zh) 处理app的cpu占用率异常的方法、装置及移动终端
KR20150067214A (ko) 외부 메모리 튜닝 시퀀스의 최적의 사용을 위한 알고리즘
US9823945B2 (en) Method and apparatus for managing application program
WO2014173135A1 (en) Method, apparatus, server and system for adpating a client to a hardware environment
US20170041652A1 (en) Image data processing method and electronic device supporting the same
WO2015161436A1 (zh) 一种版本检测周期调节方法及装置
WO2016023520A1 (zh) 引起终端温度升高的应用程序识别方法、装置及终端
US9087569B2 (en) Non-volatile memory validity
CN114328312B (zh) 数据处理方法、计算机设备及可读存储介质
CN110113391B (zh) 一种客户端上线方法、装置及一种客户端运行方法、装置
US10514422B2 (en) Aspects for determining charging capacity of a battery
CN107608923B (zh) 测试的处理方法及相关产品
US20160077790A1 (en) Audio data operating method and electronic device supporting the same
US9170629B2 (en) Medium, control method and information processing apparatus
US20160103722A1 (en) Hardware lockup detection mechanism for user devices
CN107329845B (zh) 图像处理方法、装置、终端及服务端
CN103559440A (zh) ios设备用户权限的检测方法、装置和系统

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: 14890108

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: 14890108

Country of ref document: EP

Kind code of ref document: A1