WO2017206677A1 - 管理设备闹钟的方法及装置 - Google Patents

管理设备闹钟的方法及装置 Download PDF

Info

Publication number
WO2017206677A1
WO2017206677A1 PCT/CN2017/083625 CN2017083625W WO2017206677A1 WO 2017206677 A1 WO2017206677 A1 WO 2017206677A1 CN 2017083625 W CN2017083625 W CN 2017083625W WO 2017206677 A1 WO2017206677 A1 WO 2017206677A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
time
duration
power
preset
Prior art date
Application number
PCT/CN2017/083625
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 中兴通讯股份有限公司
Publication of WO2017206677A1 publication Critical patent/WO2017206677A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72418User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
    • H04M1/72421User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/21Combinations with auxiliary equipment, e.g. with clocks or memoranda pads
    • 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 disclosure relates to a smart alarm clock control technology, and relates to a method and apparatus for managing an alarm clock of a device.
  • the existing intelligent alarm clock solutions mainly focus on the remote control of the alarm clock, the convenient setting of the alarm clock, the additional information prompt on the alarm clock, and the alarm clock which is different from the traditional one with a special form.
  • the ease of use of the alarm clock is based on the effectiveness. Take the alarm clock on the mobile phone as an example. Many people often hear complaints about the power consumption of some mobile phones due to power consumption of some running applications or forgetting to charge when sleeping at night. Then, the alarm clock did not sound on time and delayed things. In fact, no matter what the reason is that the battery is not enough to complete the alarm ringing function, it will seriously affect the effectiveness of the alarm clock. However, there is no effective solution to such problems.
  • the embodiments of the present disclosure provide a method and device for managing an alarm clock of a device, and a storage medium.
  • the method and device and the storage medium ensure the device by executing a preset power saving policy or outputting a prompt message for reminding charging.
  • the power is sufficient to ensure the effectiveness of the device's alarm function.
  • An embodiment of the present disclosure provides a method for managing an alarm clock of a device, where the method includes: calculating a first duration of an alarm time that is closest to a current time; and determining that the first duration is less than or equal to a preset duration, detecting a current device a power state; determining that the power state of the device is an uncharged state, detecting a remaining power of the device; estimating the remaining power The second duration required for the amount to be exhausted; comparing the first duration to the second duration, and when the first duration is greater than the second duration, outputting prompt information for reminding charging and/or performing pre- Set the power saving strategy.
  • the method when the first duration is greater than the second duration, the method further includes: determining current location information of the device, and determining whether the current location of the device is located in the preset region; When the current location of the device is in the preset area, it is also determined whether the current time is within the predetermined time period; when the current time is within the predetermined time period, the preset power saving policy is executed; when the current time is not within the predetermined time period, Executing the preset power saving policy and/or outputting prompt information for reminding charging.
  • the number of the preset areas is one or more.
  • the estimating the second duration required for the remaining power to be exhausted includes: determining a total power consumption of the device from a power-on time to a current time, and a running time, according to the total power consumption and running Calculating the unit time power consumption of the device according to the duration; calculating the second duration according to the remaining power and the unit time power consumption.
  • the preset power saving policy includes: closing an application that the power consumption per unit time exceeds a first set threshold; correspondingly, the performing the preset power saving policy includes: determining that the device is currently running. The power consumption and running time of each application, the power consumption per unit time of each application is calculated based on the power consumption of each application and the running time; the application whose power consumption per unit time exceeds the first set threshold is turned off.
  • the preset power saving policy includes: closing an application that consumes power exceeding a second set threshold; and correspondingly, performing the preset power saving policy includes: determining, for each application currently running by the device Power consumption; the application that consumes power beyond the second set threshold is turned off.
  • An embodiment of the present disclosure further provides an apparatus for managing an alarm clock of a device, where the apparatus includes a first calculating unit, a first determining unit, a first detecting unit, a second determining unit, a second detecting unit, a second calculating unit, and logic.
  • the first calculation unit is configured to calculate a first duration of an alarm time that is closest to the current time; the first determining unit is configured to determine that the first duration is less than or Equivalent to a preset duration; the first detecting unit is configured to detect a current power state of the device; a second determining unit, configured to determine that the power state of the device is an uncharged state; the second detecting unit is configured to detect a remaining power of the device; and the second calculating unit is configured to estimate the remaining a second time period required for the battery to be exhausted; the logic analyzing unit is configured to compare the first time length with the second time length; the output unit is configured to output prompt information for reminding charging; Unit, set to execute the preset power saving policy.
  • the apparatus further includes a third determining unit and a fourth determining unit, when the logic analyzing unit determines that the first duration is greater than the second duration, triggering the third determining unit; a determining unit, configured to determine whether the current location information of the device is located in the preset area; and when the current location of the device is located in the preset area, triggering the fourth determining unit; the fourth determining unit And determining to determine whether the current time is within the predetermined time period; when the current time is within the predetermined time period, triggering the execution unit to execute the preset power saving policy; when the current time is not within the predetermined time period And triggering the execution unit to execute the preset power saving policy, or triggering the output unit to output prompt information of the reminder charging.
  • the number of the preset areas is one or more.
  • the second calculating unit is further configured to determine a total power consumption of the device from a power-on time to a current time and a running time, and calculate a unit time of the device according to the total power consumption and the running time. The power consumption; and calculating the second duration based on the remaining power and the unit time power consumption.
  • the preset power saving policy includes: closing an application that the power consumption per unit time exceeds a first set threshold; correspondingly, the executing unit is further configured to: determine each application that is currently running by the device. The power consumption and the running time are calculated based on the power consumption of each application and the running time, and the power consumption per unit time of each application is calculated; the application whose power consumption per unit time exceeds the first set threshold is turned off.
  • the preset power saving policy includes: closing an application that consumes power exceeding a second set threshold; correspondingly, the executing unit is further configured to determine a consumption of each application currently running by the device. The battery is turned off by the application that consumes more power than the second set threshold.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing a method for managing an alarm clock of the device in the foregoing embodiment.
  • the device and method for managing an alarm clock of the device and the storage medium provided by the embodiment of the present disclosure are the second time period of the latest set time of the device alarm clock from the current time and the second remaining power of the device calculated by the device.
  • the duration is compared, and according to the comparison result, a preset power saving policy such as a prompt operation for reminding the user to charge or an application for shutting down the device is determined, so that the power of the device is sufficient to support the set alarm time to ensure the effective function of the alarm clock of the device.
  • a preset power saving policy such as prompting the user to prompt the user to charge or executing the application to turn off the device operation, thereby ensuring The device is fully charged to ensure the effectiveness of the device's alarm function.
  • FIG. 1 is a schematic flowchart of a method for managing an alarm clock of a device according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for managing an alarm clock of a device according to another embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of an apparatus for managing an alarm clock of a device according to an embodiment of the present disclosure
  • FIG. 4 is a schematic structural diagram of an apparatus for managing an alarm clock of a device according to another embodiment of the present disclosure.
  • An alternative embodiment provides a method for managing an alarm clock of a device, where the method includes: calculating a first duration of an alarm time that is closest to the current time; and determining a current power state of the device when the first duration is less than or equal to a preset duration Detecting the remaining power of the device when the power state of the device is uncharged; estimating the second time required for the remaining battery to be exhausted Long; comparing the first duration with the second duration, when the first duration is greater than the second duration, outputting prompt information for reminding charging and/or executing a preset power saving strategy.
  • the above method can ensure that the device has sufficient power before reaching the most recent alarm time, thereby ensuring the effectiveness of the device alarm clock.
  • FIG. 1 is a schematic flowchart of a method for managing an alarm clock of a device according to an embodiment of the present disclosure. As shown in FIG. 1 , a method for managing an alarm clock of an embodiment of the present disclosure includes the following steps:
  • Step 101 Calculate a first time length t1 of the most recent alarm time from the current time
  • the first time length t1 of the most recent alarm time is calculated, and it is determined whether the first time length t1 is less than or equal to the preset time length.
  • the most recent alarm time refers to the latest alarm setting time preset in the device, for example, it may be a reminding time set for getting up or work plan 2; the preset duration is to achieve the purpose of early warning for ensuring the validity of the alarm clock.
  • the value of an insurance period is set according to different actual conditions.
  • the preset duration can be set to 24 hours or shorter, such as 12 hours, 6 hours, 3 hours or 1 hour.
  • Step 102 When it is determined that the first duration t1 is less than or equal to the preset duration, the current power state of the device is detected.
  • the power state mainly includes two situations: in a charged state or in an uncharged state.
  • Step 103 When it is determined that the power state of the device is an uncharged state, the remaining power of the device is detected.
  • Step 104 Estimating the second duration t2 required for the remaining power to be exhausted
  • the manner of estimating the second duration t2 required for the remaining power to be exhausted may include the following manners: first determining the total power consumption of the device from the power-on time to the current time and the running time, and then calculating the device according to the total power consumption and the running time. The power consumption per unit time; finally, the second time length t2 is calculated according to the remaining power and the power consumption per unit time.
  • Step 105 Compare the first time length t1 with the second time length t2.
  • Step 106 When the first time length t1 is greater than the second time length t2, output reminder information for charging and/or perform a preset power saving strategy.
  • the first time length t1 is less than the second time length t2, it indicates that the power of the device is sufficient to support the alarm clock ringing, so no operation strategy is needed, and the current state is maintained until the time reaches the latest alarm clock setting time, and the alarm function is normally executed, and the absence of the alarm function is affected. The risk of the effectiveness of the alarm clock.
  • the prompt information for reminding charging is output and/or the preset power saving strategy is executed.
  • the user receives the reminder and then charges, so as to ensure that the power of the device is supported until the alarm is set recently, and the validity of the alarm is ensured.
  • the preset power saving strategy may also be selected, thereby ensuring that the power of the device is supported until the alarm is set recently, and the validity of the alarm is ensured.
  • the preset power saving strategy may include the following two strategies: turning off an application that consumes power per unit time exceeding a first set threshold; or, turning off an application whose power consumption exceeds a second set threshold.
  • the manner of executing the preset power saving policy may include the following two methods: determining the power consumption and running time of each application that the device is currently running, and calculating each application based on the power consumption of each application and the running time.
  • the power consumption per unit time is turned off, and the application that consumes the power per unit time exceeds the first set threshold is turned off; the power consumption of each application that the device is currently running is determined, and the application that consumes the power exceeding the second set threshold is turned off.
  • the first set threshold and the second set threshold may be preset according to actual conditions. Regardless of the method used, the purpose of the preset power saving strategy is to save power and ensure that the power of the device is supported until the alarm clock is set recently to ensure the validity of the alarm clock.
  • FIG. 2 is a schematic flow chart of a method for managing an alarm clock of a device according to another embodiment of the present disclosure. As shown in FIG. 2, the method for managing an alarm clock of the device includes the following steps:
  • Step 201 Calculate a first time length t1 of the most recent alarm time from the current time
  • the most recent alarm time refers to the latest alarm setting time preset in the device, for example, it may be a reminding time set for getting up or work plan 2; the preset duration is to achieve the purpose of early warning for ensuring the validity of the alarm clock.
  • the value of an insurance period is set according to different actual conditions.
  • the preset duration can be set to 24 hours or shorter, such as 12 hours, 6 hours, 3 hours or 1 hour.
  • Step 202 When it is determined that the first duration t1 is less than or equal to the preset duration, the current power state of the device is detected.
  • the power state mainly includes two situations: in a charged state or in an uncharged state.
  • Step 203 When it is determined that the power state of the device is an uncharged state, the remaining power of the device is detected.
  • Step 204 Estimating the second duration t2 required for the remaining power to be exhausted
  • the manner of estimating the second duration t2 required for the remaining power to be exhausted may include the following manners: first determining the total power consumption of the device from the power-on time to the current time and the running time, and then calculating the device according to the total power consumption and the running time. The power consumption per unit time; finally, the second time length t2 is calculated according to the remaining power and the power consumption per unit time.
  • Step 205 Compare the first time length t1 with the second time length t2.
  • Step 206 When the first duration t1 is greater than or equal to the second duration t2, determine whether the current location information of the device is located in the preset region.
  • the first time length t1 is less than the second time length t2, it indicates that the power of the device is sufficient to support the alarm clock ringing, so no operation strategy is needed, and the current state is maintained until the time reaches the latest alarm clock setting time, and the alarm function is normally executed, and the absence of the alarm function is affected.
  • the risk of the effectiveness of the alarm clock
  • Step 207 When the current location of the device is located in the preset area, it is further determined whether the current time is within a predetermined time period;
  • Step 208 Perform a preset power saving policy when the current time is within a predetermined time period
  • Step 209 When the current time is not within the predetermined time period, the preset power saving policy is executed. Slightly and/or output reminder information for charging.
  • the number of preset areas may be one or more, and the preset area may be the home of the device user or other areas such as the work unit of the device user, as needed.
  • the predetermined time period may be a sleep time period or a rest time period set by the device user. When it is determined that the current time is within the time period, the device performs the power saving strategy by itself; when it is determined that the current time is not within the time period, the predetermined time period may be selected. Let the device perform the power saving strategy by itself, or you can choose to output the reminder charging reminder message to remind the user to charge.
  • the preset power saving strategy may also be selected, thereby ensuring that the power of the device is supported until the alarm is set recently, and the validity of the alarm is ensured.
  • the preset power saving strategy may include the following two strategies: turning off an application that consumes power per unit time exceeding a first set threshold; or, turning off an application whose power consumption exceeds a second set threshold.
  • the manner of executing the preset power saving policy may include the following two methods: determining the power consumption and running time of each application that the device is currently running, and calculating each application based on the power consumption of each application and the running time.
  • the power consumption per unit time is turned off by the application that consumes the power per unit time beyond the first set threshold; the power consumption of each application that the device is currently running is determined; and the application that consumes the power exceeding the second set threshold is turned off.
  • the first set threshold and the second set threshold may be preset according to actual conditions.
  • the purpose of the preset power saving strategy is to save power and ensure that the power of the device is supported until the alarm clock is set recently to ensure the validity of the alarm clock.
  • FIG. 3 is a schematic structural diagram of an apparatus for managing an alarm of a device according to another embodiment of the present disclosure.
  • the apparatus 3 for managing an alarm of an apparatus according to an embodiment of the present disclosure includes a first calculating unit 301, a first determining unit 302, a first detecting unit 303, a second determining unit 304, a second detecting unit 305, and a second calculating.
  • the first calculating unit 301 is configured to calculate a first time length t1 of the most recent alarm time of the current time; the first determining unit 302 is configured to determine that the first time length t1 is less than or equal to a preset time length; the first detecting unit 303 is configured For testing equipment The current power state, the power state is divided into two states of charging and uncharging; the second determining unit 304 is configured to determine that the power state of the device is an uncharged state; the second detecting unit 305 is configured to detect the remaining power of the device; The unit 306 is configured to estimate a second duration t2 required for the remaining power to be exhausted; the logic analysis unit 307 is configured to compare the first duration t1 with the second duration t2, and trigger the output when the first duration t1 is greater than the second duration t2 The unit 308 and the execution unit 309; the output unit 308 is configured to output prompt information for reminding charging; the executing unit 309 is configured to execute a preset power saving policy.
  • the optional operation process of the device 3 for managing the alarm clock of the device is as follows: first, the first calculating unit 301 calculates a first time length t1 of the latest alarm time of the current time, and when the first determining unit 302 determines that the first time length t1 is less than or equal to When the preset duration is long, the first detecting unit 303 is triggered to detect the current power state of the device, and when the second determining unit 304 determines that the power state of the device is the uncharged state, the second detecting unit 305 is triggered to detect the remaining power of the device, and thereafter
  • the second calculating unit 306 estimates the second duration t2 required for the remaining power to be exhausted according to the detected remaining power, and then the logic analyzing unit 307 compares the first duration t1 with the second duration t2, and after the comparison, when the first duration When t1 is less than the second time length t2, no operation strategy is needed, the current state is maintained until the time reaches the latest alarm setting time, the alarm function is normally executed
  • the execution unit 309 can be selected to execute the preset power saving strategy, thereby ensuring that the power of the device is supported until the alarm is set recently, and the validity of the alarm is ensured.
  • FIG. 4 is a schematic structural diagram of an apparatus for managing an alarm clock of a device according to another embodiment of the present disclosure. As shown in FIG. 4, the device for managing the alarm clock of the embodiment of the present disclosure further includes a third determining unit 310 and a fourth determining unit. 311.
  • the logic analysis unit 307 determines that the first duration t1 is greater than the second duration t2, the third determining unit 310 is triggered, and the third determining unit 310 determines whether the current location information of the device is located in the preset region;
  • the fourth determining unit 311 is triggered; the fourth determining unit 311 is configured to determine whether the current time is within the predetermined time period; when the current time is within the predetermined time period, the trigger execution unit 309 performs the pre-pre- The power saving strategy is set; when the current time is not within the predetermined time period, the trigger execution unit 309 executes a preset power saving policy or the output unit outputs prompt information for reminding charging.
  • the number of preset areas may be one or more, and the preset area may be the home of the device user or other areas such as the work unit of the device user, as needed.
  • the second calculating unit 306 is further configured to determine the total power consumption of the device from the power-on time to the current time and the running time, calculate the power consumption per unit time of the device according to the total power consumption and the running time, and consume power according to the remaining power and the unit time.
  • the quantity calculates the second time length t2.
  • the preset power saving strategy may include: turning off an application that consumes power per unit time beyond a first set threshold.
  • the execution unit 309 is further configured to determine the power consumption and the running time of each application currently running by the device, calculate the power consumption per unit time of each application based on the power consumption of each application and the running time, and calculate the unit time. The application whose power consumption exceeds the first set threshold is turned off.
  • the preset power saving strategy may include: turning off an application that consumes more power than the second set threshold.
  • the execution unit 309 is further configured to determine the power consumption of each application currently running by the device and to close the application that consumes the power consumption beyond the second set threshold.
  • the first set threshold value and the second set threshold value described above may be set in advance according to actual conditions.
  • the purpose of the preset power saving strategy is to save power and ensure that the power of the device is supported until the alarm clock is set recently to ensure the validity of the alarm clock.
  • the device for managing the alarm clock of the device in the embodiment of the present disclosure is further explained below with reference to an example.
  • the first calculating unit 301 calculates the first time length t1 of the most recent alarm time, and when the first determining unit 302 determines that the first time length t1 is less than or equal to the preset time length, the first detecting unit 303 is triggered to detect the current device. a power state, when the second determining unit 304 determines that the power state of the device is an uncharged state, triggering the second detecting unit 305 detects the remaining power of the device, and then the second calculating unit 306 estimates the second time length t2 required for the remaining power to be exhausted according to the detected remaining power, and then the logic analyzing unit 307 compares the first time length t1 with the second time length t2.
  • the third determining unit 310 confirms the location of the device user, and when the third determining unit confirms that the location of the device user is at the user's home, the fourth determining unit 311 Determining whether the current time is within a predetermined sleep time period of the user.
  • the executing unit 309 performs a preset power saving policy, for example, the executing unit 309 exceeds a certain threshold by the power consumption per unit time.
  • the application is turned off; when the current time is not within the predetermined sleep period of the user, the output unit 308 outputs prompt information for reminding the charging to remind the user to charge.
  • the preset duration is a value of the insurance period for the purpose of ensuring the effectiveness of the alarm to achieve the purpose of early warning. It can be set according to different actual situations. For example, the preset duration can be set to 24 hours or shorter, such as 12 hours. , 6 hours, 3 hours or 1 hour, etc. .
  • the device can provide other areas than the home for the preset area for device positioning.
  • the device can be set to three types: home, unit and other places. Different designs can be made for these situations.
  • the device can be set to three types: home, unit and other places. Different designs can be made for these situations.
  • the user can set, for example, 23:00-6:00
  • the user is considered to be at rest, and the execution unit 309 automatically shuts down the consumption. Powerful applications.
  • the mode is maintained until the ringing is triggered; if after the time period, the normal state is returned to prompt the user to charge; if the positioning is judged in the working unit, the user may be prompted to charge directly; if not in the above two
  • the software believes that the user does not have the charging condition outdoors, and can use the preset power saving strategy (for example, the execution unit 309 is allowed to turn off the application whose power consumption exceeds a certain threshold), and the above steps can fully guarantee the alarm clock. Effectiveness.
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • S4 Send the optical topping signal modulated by the adjusted modulation coefficient to the receiving end.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
  • the device and method for managing an alarm clock of the device and the storage medium provided by the embodiment of the present disclosure are the second time period of the latest set time of the device alarm clock from the current time and the second remaining power of the device calculated by the device.
  • the duration is compared, and according to the comparison result, a preset power saving policy such as a prompt operation for reminding the user to charge or an application for shutting down the device is determined, so that the power of the device is sufficient to support the set alarm time to ensure the effective function of the alarm clock of the device.
  • a preset power saving policy such as prompting the user to prompt the user to charge or executing the application to turn off the device operation, thereby ensuring The device is fully charged to ensure the effectiveness of the device's alarm function.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the first time duration of the alarm time that is closest to the current time distance is calculated; when the first time length is less than or equal to the preset time length, the current power state of the device is detected; and the power state of the device is determined.
  • the uncharged state detecting the remaining power of the device; estimating a second duration required for the remaining power to be exhausted; comparing the first duration to the second duration, when the first duration is greater than During the second duration, the prompt information for reminding charging is output and/or the preset power saving policy is executed, thereby ensuring the effectiveness of the alarm function of the device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

本公开公开了一种管理设备闹钟的方法,所述方法包括:计算当前时间距离最近的闹钟时间的第一时长;确定所述第一时长小于或等于预设时长时,检测设备当前的电源状态;确定所述设备的电源状态是未充电状态时,检测所述设备的剩余电量;估算所述剩余电量耗尽所需的第二时长;将所述第一时长与所述第二时长进行比较,当所述第一时长大于所述第二时长时,输出提醒充电的提示信息和/或执行预设的节电策略。本公开还公开了一种管理设备闹钟的装置。

Description

管理设备闹钟的方法及装置 技术领域
本公开涉及智能闹钟控制技术,涉及一种管理设备闹钟的方法及装置。
背景技术
目前已有的智能闹钟方案都主要关注于闹钟的远程控制,闹钟的便捷设置,闹钟上的额外信息提示以及区别于传统的具有特殊形态的闹钟。然而,闹钟的易用性是建立在有效性的基础上的,以手机上的闹钟为例,经常会听到许多人抱怨因某些运行应用的耗电或晚上睡觉时候忘记充电导致手机没电了,进而造成闹钟没有按时响而耽误事情。事实上,无论由于哪种原因导致电量不足而不能完成闹钟响铃功能,都会严重影响闹钟的有效性,然而,目前还没有针对此类问题的有效解决办法。
公开内容
为解决相关存在的技术问题,本公开实施例提供一种管理设备闹钟的方法及装置及存储介质,该方法及装置及存储介质通过执行预设的节电策略或输出提醒充电的提示信息确保设备的电量充足,从而能够保障设备闹钟功能的有效性。
本公开实施例的技术方案是这样实现的:
本公开实施例提供了一种管理设备闹钟的方法,所述方法包括:计算当前时间距离最近的闹钟时间的第一时长;确定所述第一时长小于或等于预设时长时,检测设备当前的电源状态;确定所述设备的电源状态是未充电状态时,检测所述设备的剩余电量;估算所述剩余电 量耗尽所需的第二时长;将所述第一时长与所述第二时长进行比较,当所述第一时长大于所述第二时长时,输出提醒充电的提示信息和/或执行预设的节电策略。
上述方案中,当所述第一时长大于所述第二时长时,所述方法还包括:确定所述设备当前的位置信息,并确定所述设备当前的位置是否位于预设区域内;所述设备当前的位置位于预设区域内时,还确定当前时间是否处于预定时间段内;当前时间处于预定时间段内时执行所述预设的节电策略;当前时间未处于预定时间段内时,执行所述预设的节电策略和/或输出提醒充电的提示信息。
上述方案中,所述预设区域的数量为一个或多个。
上述方案中,所述估算所述剩余电量耗尽所需的第二时长,包括:确定所述设备从开机时刻到当前时间的总耗电量以及运行时长,根据所述总耗电量以及运行时长计算所述设备的单位时间耗电量;根据所述剩余电量和所述单位时间耗电量计算所述第二时长。
上述方案中,所述预设的节电策略包括:关闭单位时间耗电量超出第一设定阈值的应用;对应地,所述执行预设的节电策略包括:确定所述设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量;将单位时间耗电量超出第一设定阈值的应用关闭。
上述方案中,预设的节电策略包括:关闭耗电量超出第二设定阈值的应用;对应地,所述执行预设的节电策略包括:确定所述设备当前运行的每个应用的耗电量;将耗电量超出第二设定阈值的应用关闭。
本公开实施例还提供了一种管理设备闹钟的装置,所述装置包括第一计算单元、第一确定单元、第一检测单元、第二确定单元、第二检测单元、第二计算单元、逻辑分析单元、输出单元及执行单元,其中,所述第一计算单元,设置为计算当前时间距离最近的闹钟时间的第一时长;所述第一确定单元,设置为确定所述第一时长小于或等于预设时长;所述第一检测单元,设置为检测设备当前的电源状态;所 述第二确定单元,设置为确定所述设备的电源状态是未充电状态;所述第二检测单元,设置为检测所述设备的剩余电量;所述第二计算单元,设置为估算所述剩余电量耗尽所需的第二时长;所述逻辑分析单元,设置为将所述第一时长与所述第二时长进行比较;所述输出单元,设置为输出提醒充电的提示信息;所述执行单元,设置为执行预设的节电策略。
上述方案中,所述装置还包括第三确定单元和第四确定单元,当所述逻辑分析单元确定所述第一时长大于所述第二时长时,触发所述第三确定单元;所述第三确定单元,设置为确定所述设备当前的位置信息是否位于预设区域内;所述设备当前的位置位于所述预设区域内时,触发所述第四确定单元;所述第四确定单元,设置为确定当前时间是否处于预定时间段内;当前时间处于所述预定时间段内时,触发所述执行单元执行所述预设的节电策略;当前时间未处于所述预定时间段内时,触发所述执行单元执行所述预设的节电策略,或触发所述输出单元输出所述提醒充电的提示信息。
上述方案中,所述预设区域的数量为一个或多个。
上述方案中,所述第二计算单元,还设置为确定所述设备从开机时刻到当前时间的总耗电量以及运行时长,根据所述总耗电量以及运行时长计算所述设备的单位时间耗电量;以及根据所述剩余电量和所述单位时间耗电量计算所述第二时长。
上述方案中,所述预设的节电策略包括:关闭单位时间耗电量超出第一设定阈值的应用;对应地,所述执行单元还设置为:确定所述设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量;将单位时间耗电量超出第一设定阈值的应用关闭。
上述方案中,所述预设的节电策略包括:关闭耗电量超出第二设定阈值的应用;对应地,所述执行单元,还设置为确定所述设备当前运行的每个应用的耗电量,将耗电量超出第二设定阈值的应用关闭。
本公开实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的管理设备闹钟的方法。
从以上描述和实践中可知,本公开实施例提供的管理设备闹钟的装置及方法及存储介质,通过当前时间距离设备闹钟最近设置时间的第一时长与设备计算出的剩余电量耗尽的第二时长进行比较,根据比较结果确定作出提醒用户充电的提示操作或执行关闭设备运行的应用等预设的节电策略,从而使设备的电量足以支撑到设置的闹钟时间,以保障设备闹钟功能的有效性;并且可选地执行对设备定位时,还可以根据在设备用户的家、工作单位等定位结果作出提醒用户充电的提示操作或执行关闭设备运行的应用等预设的节电策略,从而确保设备的电量充足以保障设备闹钟功能的有效性。
附图说明
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。
图1为本公开实施例管理设备闹钟的方法的流程示意图;
图2为本公开另一实施例管理设备闹钟的方法的流程示意图;
图3为本公开实施例管理设备闹钟的装置组成示意图;
图4为本公开另一实施例管理设备闹钟的装置组成示意图。
实施方式
可选实施例,提供了一种管理设备闹钟的方法,该方法包括:计算当前时间距离最近的闹钟时间的第一时长;确定第一时长小于或等于预设时长时,检测设备当前的电源状态;确定设备的电源状态是未充电状态时,检测设备的剩余电量;估算剩余电量耗尽所需的第二时 长;将第一时长与第二时长进行比较,当第一时长大于第二时长时,输出提醒充电的提示信息和/或执行预设的节电策略。通过上述方法能够确保设备在到达最近的闹钟时间前电量充足,进而保障了设备闹钟的有效性。
下面结合实施例对本公开再作进一步详细的说明。
图1为本公开实施例管理设备闹钟的方法的流程示意图。如图1所示,本公开实施例管理设备闹钟的方法包括以下步骤:
步骤101:计算当前时间距离最近的闹钟时间的第一时长t1;
首先计算当前时间距离最近的闹钟时间的第一时长t1,判断第一时长t1是否小于或等于预设时长。这里,最近的闹钟时间是指设备中预先设定好的最近的闹钟设置时间,例如可以是为了起床或工作计划二设定的提醒时间;预设时长是为保障闹钟有效性而达到提前提醒目的的一个保险时间段取值,它可以根据不同实际情况进行设置,例如预设时长可以设置为24小时或者更短的时长如12小时、6小时、3小时或1小时等。
步骤102:确定第一时长t1小于或等于预设时长时,检测设备当前的电源状态。可选实施例,电源状态主要包括两种情况:处于充电状态或未充电状态。
步骤103:确定设备的电源状态是未充电状态时,检测设备的剩余电量。
步骤104:估算剩余电量耗尽所需的第二时长t2;
基于步骤103检测到的设备的剩余电量,估算剩余电量耗尽所需的第二时长t2。这里,估算剩余电量耗尽所需的第二时长t2的方式可以包括以下方式:首先确定设备从开机时刻到当前时间的总耗电量以及运行时长,然后根据总耗电量以及运行时长计算设备的单位时间耗电量;最后,根据剩余电量和单位时间耗电量计算得到第二时长t2。
步骤105:将第一时长t1与第二时长t2进行比较。
步骤106:当第一时长t1大于第二时长t2时,输出提醒充电的提示信息和/或执行预设的节电策略。
经过t1与t2比较后,包括以下两种情况:
当第一时长t1小于第二时长t2时,说明设备的电量足以支撑到闹钟响铃,因此无需任何操作策略,维持当前状态直到时间到达最近的闹钟设置时间,闹钟功能正常执行,不存在会影响闹钟有效性的风险。
当第一时长t1大于等于第二时长t2时,输出提醒充电的提示信息和/或执行预设的节电策略。在条件允许的情况下,用户接到提醒后进行充电,从而确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。而在条件不允许充电的情况下,也可以选择执行预设的节电策略,从而也能确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。这里,预设的节电策略可以包括以下两种策略:关闭单位时间耗电量超出第一设定阈值的应用;或者,关闭耗电量超出第二设定阈值的应用。对应地,执行预设的节电策略的方式可以包括以下两种方式:确定设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量,将单位时间耗电量超出第一设定阈值的应用关闭;确定设备当前运行的每个应用的耗电量,将耗电量超出第二设定阈值的应用关闭。这里,第一设定阈值和第二设定阈值可以根据实际情况预先设定。无论采用何种方式,预设的节电策略的目的在于节省电量,确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。
图2为本公开另一实施例管理设备闹钟的方法的流程示意图。如图2所示,该实施例管理设备闹钟的方法包括以下步骤:
步骤201:计算当前时间距离最近的闹钟时间的第一时长t1;
首先计算当前时间距离最近的闹钟时间的第一时长t1,判断第一 时长t1是否小于或等于预设时长。这里,最近的闹钟时间是指设备中预先设定好的最近的闹钟设置时间,例如可以是为了起床或工作计划二设定的提醒时间;预设时长是为保障闹钟有效性而达到提前提醒目的的一个保险时间段取值,它可以根据不同实际情况进行设置,例如预设时长可以设置为24小时或者更短的时长如12小时、6小时、3小时或1小时等。
步骤202:确定第一时长t1小于或等于预设时长时,检测设备当前的电源状态。可选实施例,电源状态主要包括两种情况:处于充电状态或未充电状态。
步骤203:确定设备的电源状态是未充电状态时,检测设备的剩余电量。
步骤204:估算剩余电量耗尽所需的第二时长t2;
基于步骤103检测到的设备的剩余电量,估算剩余电量耗尽所需的第二时长t2。这里,估算剩余电量耗尽所需的第二时长t2的方式可以包括以下方式:首先确定设备从开机时刻到当前时间的总耗电量以及运行时长,然后根据总耗电量以及运行时长计算设备的单位时间耗电量;最后,根据剩余电量和单位时间耗电量计算得到第二时长t2。
步骤205:将第一时长t1与第二时长t2进行比较。
步骤206:当第一时长t1大于等于第二时长t2时,确定设备当前的位置信息是否位于预设区域内。
当第一时长t1小于第二时长t2时,说明设备的电量足以支撑到闹钟响铃,因此无需任何操作策略,维持当前状态直到时间到达最近的闹钟设置时间,闹钟功能正常执行,不存在会影响闹钟有效性的风险;
步骤207:设备当前的位置位于预设区域内时,还确定当前时间是否处于预定时间段内;
步骤208:当前时间处于预定时间段内时执行预设的节电策略;
步骤209:当前时间未处于预定时间段内时,执行预设的节电策 略和/或输出提醒充电的提示信息。
这里,预设区域的数量可以是一个或多个,根据需要预设区域可以是设备用户的家,也可以是设备用户的工作单位等其他区域。预定时间段可以是设备用户设定的睡眠时间段或休息时间段内,当判断当前时间处于这个时间段内时,设备自行执行节电策略;当判断当前时间不在这个时间段内时,可以选择让设备自行执行节电策略,也可以选择输出提醒充电的提示信息,以提醒用户充电。换句话说,在条件允许的情况下,用户接到提醒后进行充电,从而确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。而在条件不允许充电的情况下,也可以选择执行预设的节电策略,从而也能确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。这里,预设的节电策略可以包括以下两种策略:关闭单位时间耗电量超出第一设定阈值的应用;或者,关闭耗电量超出第二设定阈值的应用。对应地,执行预设的节电策略的方式可以包括以下两种方式:确定设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量,将单位时间耗电量超出第一设定阈值的应用关闭;确定设备当前运行的每个应用的耗电量;将耗电量超出第二设定阈值的应用关闭。这里,第一设定阈值和第二设定阈值可以根据实际情况预先设定。无论采用何种方式,预设的节电策略的目的在于节省电量,确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。
图3为本公开另一实施例管理设备闹钟的装置组成示意图。如图3所示,本公开实施例管理设备闹钟的装置3包括第一计算单元301、第一确定单元302、第一检测单元303、第二确定单元304、第二检测单元305、第二计算单元306、逻辑分析单元307、输出单元308及执行单元309。其中,第一计算单元301设置为计算当前时间距离最近的闹钟时间的第一时长t1;第一确定单元302设置为确定所述第一时长t1小于或等于预设时长;第一检测单元303设置为检测设备 当前的电源状态,电源状态分为充电和未充电两种状态;第二确定单元304设置为确定设备的电源状态是未充电状态;第二检测单元305设置为检测设备的剩余电量;第二计算单元306设置为估算剩余电量耗尽所需的第二时长t2;逻辑分析单元307设置为将第一时长t1与第二时长t2进行比较,当第一时长t1大于第二时长t2时,触发输出单元308和执行单元309;输出单元308设置为输出提醒充电的提示信息;执行单元309设置为执行预设的节电策略。
该管理设备闹钟的装置3的可选地运行过程如下:首先第一计算单元301计算出当前时间距离最近的闹钟时间的第一时长t1,当第一确定单元302确定第一时长t1小于或等于预设时长时,触发第一检测单元303检测设备当前的电源状态,当第二确定单元304确定设备的电源状态是未充电状态时,触发第二检测单元305检测设备的剩余电量,其后第二计算单元306根据检测到的剩余电量估算剩余电量耗尽所需的第二时长t2,然后逻辑分析单元307将第一时长t1与第二时长t2进行比较,经过上述比较后,当第一时长t1小于第二时长t2时,无需任何操作策略,维持当前状态直到时间到达最近的闹钟设置时间,闹钟功能正常执行,不存在会影响闹钟有效性的风险;当第一时长t1大于等于所述第二时长t2时,输出单元308输出提醒充电的提示信息和/或执行单元309执行预设的节电策略。在条件允许充电的情况下,可以选择让输出单元308输出提醒充电的提示信息,设备用户接到提醒后进行充电,也可以选择让执行单元309直接执行预设的节电策略,从而确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。而在条件不允许充电的情况下,可以选择让执行单元309执行预设的节电策略,从而也能确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。
图4为本公开另一实施例管理设备闹钟的装置组成示意图。如图4所示,在图3所示的管理设备闹钟的装置3的基础上,本公开实施例的管理设备闹钟的装置还包括第三确定单元310、第四确定单元 311。如上所述的,当逻辑分析单元307确定第一时长t1大于第二时长t2时,触发第三确定单元310,第三确定单元310确定所述设备当前的位置信息是否位于预设区域内;当设备当前的位置位于预设区域内时,触发第四确定单元311;第四确定单元311设置为确定当前时间是否处于预定时间段内;当前时间处于预定时间段内时,触发执行单元309执行预设的节电策略;当前时间未处于预定时间段内时,触发执行单元309执行预设的节电策略或所述输出单元输出提醒充电的提示信息。这里,预设区域的数量可以是一个或多个,根据需要预设区域可以是设备用户的家,也可以是设备用户的工作单位等其他区域。
第二计算单元306还设置为确定设备从开机时刻到当前时间的总耗电量以及运行时长,根据总耗电量以及运行时长计算设备的单位时间耗电量以及根据剩余电量和单位时间耗电量计算第二时长t2。
这里,预设的节电策略可以包括:关闭单位时间耗电量超出第一设定阈值的应用。对应地,执行单元309还设置为确定设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量以及将单位时间耗电量超出第一设定阈值的应用关闭。
作为另一种选择,预设的节电策略可以包括:关闭耗电量超出第二设定阈值的应用。对应地,执行单元309还设置为确定设备当前运行的每个应用的耗电量以及将耗电量超出第二设定阈值的应用关闭。
这里,上述的第一设定阈值和第二设定阈值可以根据实际情况预先设定。无论采用何种方式,预设的节电策略的目的在于节省电量,确保设备电量支撑到闹钟最近设置时间,保证闹钟的有效性。
下面结合实例进一步阐述本公开实施例管理设备闹钟的装置。
首先第一计算单元301计算出当前时间距离最近的闹钟时间的第一时长t1,当第一确定单元302确定第一时长t1小于或等于预设时长时,触发第一检测单元303检测设备当前的电源状态,当第二确定单元304确定设备的电源状态是未充电状态时,触发第二检测单元 305检测设备的剩余电量,其后第二计算单元306根据检测到的剩余电量估算剩余电量耗尽所需的第二时长t2,然后逻辑分析单元307将第一时长t1与第二时长t2进行比较,当第一时长t1大于等于所述第二时长t2时,第三确定单元310对设备用户的位置进行确认,当第三确定单元确认设备用户的位置在用户的家时,第四确定单元311确定当前时间是否在用户预定的睡眠时间段内,当当前时间在用户预定的睡眠时间段内,执行单元309执行预设的节电策略,例如执行单元309将单位时间耗电量超出某一阈值的应用关闭;当当前时间不在用户预定的睡眠时间段内时,输出单元308输出提醒充电的提示信息,以提醒用户充电。这里,预设时长是为保障闹钟有效性而达到提前提醒目的的一个保险时间段取值,它可以根据不同实际情况进行设置,例如预设时长可以设置为24小时或者更短的时长如12小时、6小时、3小时或1小时等。。
需要注意的是,有关对设备定位的预设区域,装置可以提供除家之外的其他区域,例如装置可以设置的选项为家、单位以及其他场所三种,针对这几种情况可以进行不同设计以提供匹配的操作策略,当检测到设备在家,且当前时间已进入睡眠时间段(用户可以设置,例如23:00-6:00),则认为用户处于休息中,执行单元309直接自动关闭耗电量大的应用。当闹钟设置在该时间段内,维持该模式到响铃触发;若在该时间段之后,恢复正常状态提示用户需要充电;假设定位判断在工作单位,可以直接提示用户需要充电;如果不在上述两设定位置,软件认为用户在户外不具备充电条件,则可以使用预设的节电策略(例如,允许执行单元309关闭耗电量超出某一阈值的应用),通过上述步骤可以全面的保证闹钟的有效性。
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,将待传输的光调顶信号的测试信号发送至接收端;
S2,接收该接收端对测试信号处理后反馈的信道质量参数;
S3,根据接收端反馈的信道质量参数,调整光调顶信号的调制系 数;
S4,将通过调整后的调制系数调制后的光调顶信号发送至接收端。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例记载的方法步骤。
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
从以上描述和实践中可知,本公开实施例提供的管理设备闹钟的装置及方法及存储介质,通过当前时间距离设备闹钟最近设置时间的第一时长与设备计算出的剩余电量耗尽的第二时长进行比较,根据比较结果确定作出提醒用户充电的提示操作或执行关闭设备运行的应用等预设的节电策略,从而使设备的电量足以支撑到设置的闹钟时间,以保障设备闹钟功能的有效性;并且可选地执行对设备定位时,还可以根据在设备用户的家、工作单位等定位结果作出提醒用户充电的提示操作或执行关闭设备运行的应用等预设的节电策略,从而确保设备的电量充足以保障设备闹钟功能的有效性。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
本公开是参照根据本公开实施例的方法、设备(装置)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本公开的可选实施例而已,并非用于限定本公开的保护范围。
工业实用性
在本公开的技术方案中,通过计算当前时间距离最近的闹钟时间的第一时长;确定所述第一时长小于或等于预设时长时,检测设备当前的电源状态;确定所述设备的电源状态是未充电状态时,检测所述设备的剩余电量;估算所述剩余电量耗尽所需的第二时长;将所述第一时长与所述第二时长进行比较,当所述第一时长大于所述第二时长时,输出提醒充电的提示信息和/或执行预设的节电策略,从而能够保障设备闹钟功能的有效性。

Claims (13)

  1. 一种管理设备闹钟的方法,所述方法包括:
    计算当前时间距离最近的闹钟时间的第一时长;
    确定所述第一时长小于或等于预设时长时,检测设备当前的电源状态;
    确定所述设备的电源状态是未充电状态时,检测所述设备的剩余电量;
    估算所述剩余电量耗尽所需的第二时长;
    将所述第一时长与所述第二时长进行比较,当所述第一时长大于所述第二时长时,输出提醒充电的提示信息和/或执行预设的节电策略。
  2. 根据权利要求1所述的管理设备闹钟的方法,其中,当所述第一时长大于所述第二时长时,所述方法还包括:
    确定所述设备当前的位置信息,并确定所述设备当前的位置是否位于预设区域内;
    所述设备当前的位置位于预设区域内时,还确定当前时间是否处于预定时间段内;当前时间处于预定时间段内时执行所述预设的节电策略;当前时间未处于预定时间段内时,执行所述预设的节电策略和/或输出提醒充电的提示信息。
  3. 根据权利要求2所述的管理设备闹钟的方法,其中,所述预设区域的数量为一个或多个。
  4. 根据权利要求1、2或3所述的管理设备闹钟的方法,其中,所述估算所述剩余电量耗尽所需的第二时长,包括:
    确定所述设备从开机时刻到当前时间的总耗电量以及运行时长,根据所述总耗电量以及运行时长计算所述设备的单位时间耗电量;
    根据所述剩余电量和所述单位时间耗电量计算所述第二时长。
  5. 根据权利要求1所述的管理设备闹钟的方法,其中,所述预 设的节电策略包括:关闭单位时间耗电量超出第一设定阈值的应用;
    对应地,所述执行预设的节电策略包括:确定所述设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量;
    将单位时间耗电量超出第一设定阈值的应用关闭。
  6. 根据权利要求1所述的管理设备闹钟的方法,其中,预设的节电策略包括:关闭耗电量超出第二设定阈值的应用;
    对应地,所述执行预设的节电策略包括:确定所述设备当前运行的每个应用的耗电量;
    将耗电量超出第二设定阈值的应用关闭。
  7. 一种管理设备闹钟的装置,所述装置包括第一计算单元、第一确定单元、第一检测单元、第二确定单元、第二检测单元、第二计算单元、逻辑分析单元、输出单元及执行单元,其中,
    所述第一计算单元,设置为计算当前时间距离最近的闹钟时间的第一时长;
    所述第一确定单元,设置为确定所述第一时长小于或等于预设时长;
    所述第一检测单元,设置为检测设备当前的电源状态;
    所述第二确定单元,设置为确定所述设备的电源状态是未充电状态;
    所述第二检测单元,设置为检测所述设备的剩余电量;
    所述第二计算单元,设置为估算所述剩余电量耗尽所需的第二时长;
    所述逻辑分析单元,设置为将所述第一时长与所述第二时长进行比较,当所述第一时长大于所述第二时长时,触发所述输出单元和/或所述执行单元;
    所述输出单元,设置为输出提醒充电的提示信息;
    所述执行单元,设置为执行预设的节电策略。
  8. 根据权利要求7所述的管理设备闹钟的装置,其中,所述装置还包括第三确定单元和第四确定单元,
    当所述逻辑分析单元确定所述第一时长大于所述第二时长时,触发所述第三确定单元;
    所述第三确定单元,设置为确定所述设备当前的位置信息是否位于预设区域内;所述设备当前的位置位于所述预设区域内时,触发所述第四确定单元;
    所述第四确定单元,设置为确定当前时间是否处于预定时间段内;当前时间处于所述预定时间段内时,触发所述执行单元执行所述预设的节电策略;当前时间未处于所述预定时间段内时,触发所述执行单元执行所述预设的节电策略,或触发所述输出单元输出所述提醒充电的提示信息。
  9. 根据权利要求7所述的管理设备闹钟的装置,其中,所述预设区域的数量为一个或多个。
  10. 根据权利要求7、8或9所述的管理设备闹钟的装置,其中,所述第二计算单元,还设置为确定所述设备从开机时刻到当前时间的总耗电量以及运行时长,根据所述总耗电量以及运行时长计算所述设备的单位时间耗电量;以及根据所述剩余电量和所述单位时间耗电量计算所述第二时长。
  11. 根据权利要求7所述的管理设备闹钟的装置,其中,
    所述预设的节电策略包括:关闭单位时间耗电量超出第一设定阈值的应用;
    对应地,所述执行单元还设置为:确定所述设备当前运行的每个应用的耗电量以及运行时长,基于每个应用的耗电量以及运行时长计算每个应用的单位时间耗电量;将单位时间耗电量超出第一设定阈值的应用关闭。
  12. 根据权利要求7所述的管理设备闹钟的方法,其中,所述预 设的节电策略包括:关闭耗电量超出第二设定阈值的应用;
    对应地,所述执行单元,还设置为确定所述设备当前运行的每个应用的耗电量,将耗电量超出第二设定阈值的应用关闭。
  13. 一种存储介质,所述存储介质包括存储的程序,所述程序运行时执行权利要求1至6中任一项所述的方法。
PCT/CN2017/083625 2016-06-02 2017-05-09 管理设备闹钟的方法及装置 WO2017206677A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610389434.4 2016-06-02
CN201610389434.4A CN107465801A (zh) 2016-06-02 2016-06-02 管理设备闹钟的方法及装置

Publications (1)

Publication Number Publication Date
WO2017206677A1 true WO2017206677A1 (zh) 2017-12-07

Family

ID=60478463

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083625 WO2017206677A1 (zh) 2016-06-02 2017-05-09 管理设备闹钟的方法及装置

Country Status (2)

Country Link
CN (1) CN107465801A (zh)
WO (1) WO2017206677A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315872A (zh) * 2021-05-20 2021-08-27 中国联合网络通信集团有限公司 移动终端控制方法、装置及移动终端
CN113489837A (zh) * 2021-06-23 2021-10-08 中国联合网络通信集团有限公司 闹钟工作方法及***、移动终端、电子设备和可读存储介质
CN114828180A (zh) * 2022-06-22 2022-07-29 江西科技学院 一种传感器的控制方法与装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111176418A (zh) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 节省电量的方法、终端及具有存储功能的装置
CN109302535B (zh) * 2018-11-21 2020-08-11 Tcl移动通信科技(宁波)有限公司 一种移动终端多闹钟处理方法、移动终端及存储介质
CN111586232A (zh) * 2019-02-18 2020-08-25 奇酷互联网络科技(深圳)有限公司 闹钟应用的触发方法、移动终端及具有存储功能的装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201846395U (zh) * 2010-09-27 2011-05-25 康佳集团股份有限公司 一种具有省电功能的手机
CN103501390A (zh) * 2013-09-30 2014-01-08 上海华勤通讯技术有限公司 具有提示功能的移动终端及其提示实现方法
EP2760188A1 (en) * 2013-01-24 2014-07-30 BlackBerry Limited Communications device having battery monitoring capabilities and performing pre-scheduled events
CN105530384A (zh) * 2014-09-28 2016-04-27 小米科技有限责任公司 基于闹钟的电量提醒方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100672429B1 (ko) * 2004-11-10 2007-01-24 엘지전자 주식회사 이동 통신 단말기의 알람기능 제어 방법
CN104503276A (zh) * 2014-11-24 2015-04-08 东莞宇龙通信科技有限公司 一种智能用电的方法、装置及终端
CN104793930A (zh) * 2015-03-16 2015-07-22 深圳市金立通信设备有限公司 一种电量管理方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201846395U (zh) * 2010-09-27 2011-05-25 康佳集团股份有限公司 一种具有省电功能的手机
EP2760188A1 (en) * 2013-01-24 2014-07-30 BlackBerry Limited Communications device having battery monitoring capabilities and performing pre-scheduled events
CN103501390A (zh) * 2013-09-30 2014-01-08 上海华勤通讯技术有限公司 具有提示功能的移动终端及其提示实现方法
CN105530384A (zh) * 2014-09-28 2016-04-27 小米科技有限责任公司 基于闹钟的电量提醒方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315872A (zh) * 2021-05-20 2021-08-27 中国联合网络通信集团有限公司 移动终端控制方法、装置及移动终端
CN113489837A (zh) * 2021-06-23 2021-10-08 中国联合网络通信集团有限公司 闹钟工作方法及***、移动终端、电子设备和可读存储介质
CN114828180A (zh) * 2022-06-22 2022-07-29 江西科技学院 一种传感器的控制方法与装置
CN114828180B (zh) * 2022-06-22 2022-09-09 江西科技学院 一种传感器的控制方法与装置

Also Published As

Publication number Publication date
CN107465801A (zh) 2017-12-12

Similar Documents

Publication Publication Date Title
WO2017206677A1 (zh) 管理设备闹钟的方法及装置
US20150233985A1 (en) Method, device and computer storage medium for detecting power consumption of an application
KR101641174B1 (ko) 셧다운 상태에서의 알람의 구현방법, 이동 단말기, 프로그램 및 기록매체
TWI548956B (zh) 電子裝置的鬧鐘管控系統及鬧鐘管控方法
CN106055077A (zh) 一种基于唤醒锁的处理方法及装置
CN103501390B (zh) 具有提示功能的移动终端及其提示实现方法
CN106055074A (zh) 一种应用程序处理方法及装置
ATE489774T1 (de) Gerät zur bewertung von systemrahmennummern
CN105338188A (zh) 一种日程提示方法及移动终端
EP3128789B1 (en) Method, device and mobile terminal for reducing power consumption
CN103345415A (zh) 管理定时器的终端节能方法和装置
JP6339690B2 (ja) 情報処理装置、情報処理装置の制御方法、および制御プログラム
WO2013097333A1 (zh) 信息提醒方法和装置
CN105704758A (zh) 一种基于流量监测关闭社交类应用程序的方法及装置
WO2014190619A1 (zh) 一种移动终端功耗的管控装置及方法、移动终端
CN105611074B (zh) 一种根据闹钟时间优化推送信息时间的方法及***
CN106326065B (zh) 一种终端使用时长管理方法和装置
WO2018068539A1 (zh) 信息提示控制方法及装置
US20140340051A1 (en) Battery charge management and control
CN106686633A (zh) 一种阻止wifi恶意频繁唤醒的方法
CN111060729B (zh) 一种智能电表的防窃电方法及***
CN106101406B (zh) 一种基于移动终端的关机闹铃触发处理方法及移动终端
CN107846512A (zh) 提醒模式切换方法、装置、终端及可读存储介质
WO2016110056A1 (zh) 一种终端及终端省电的方法
CN106205066A (zh) 一种浸水检测的方法、装置及终端

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 17805622

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17805622

Country of ref document: EP

Kind code of ref document: A1