CN114879833A - Alarm clock implementation method and device, electronic equipment and storage medium - Google Patents

Alarm clock implementation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114879833A
CN114879833A CN202110160561.8A CN202110160561A CN114879833A CN 114879833 A CN114879833 A CN 114879833A CN 202110160561 A CN202110160561 A CN 202110160561A CN 114879833 A CN114879833 A CN 114879833A
Authority
CN
China
Prior art keywords
alarm clock
electronic equipment
running state
reminding
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110160561.8A
Other languages
Chinese (zh)
Inventor
卢涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110160561.8A priority Critical patent/CN114879833A/en
Publication of CN114879833A publication Critical patent/CN114879833A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The application relates to an alarm clock implementation method, an alarm clock implementation device, computer equipment and a storage medium. The method comprises the following steps: acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system; switching the operating state of the electronic equipment from a first system to a second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system; and carrying out alarm clock reminding in the running state of the first system. The method can meet the requirement of long-time endurance.

Description

Alarm clock implementation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an alarm clock implementation method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology, electronic devices are widely used in people's daily life, and the electronic devices include, but are not limited to, watches, bracelets, glasses, clothing, and the like. The advent of the electronic device era means the extension of human intelligence, and through these electronic devices, people can better perceive external and self information, can process information more efficiently with the assistance of computers, networks and even other people, and can realize more seamless communication. For example, the electronic equipment realizes the function of an alarm clock, receives the reminding notice of the alarm clock, and people can better master time and improve life quality.
However, in the conventional technology, the alarm clock of the electronic device is realized, so that the problem of power consumption exists, and the long-time endurance requirement cannot be met.
Disclosure of Invention
The application provides an alarm clock implementation method, an alarm clock implementation device, electronic equipment and a storage medium, which can meet the long-time cruising requirement.
An alarm clock implementation method is applied to an electronic device, the electronic device comprises a first processor and a second processor, the first processor is used for operating a first system, the second processor is used for operating a second system, and the electric consumption of the electronic device for operating the first system is higher than that for operating the second system, and the method comprises the following steps:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching an operating state of the electronic device from the first system to the second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the switching the operation state of the electronic device from the first system to the second system includes:
after the alarm clock information is acquired, counting the screen-on duration of the electronic equipment;
and under the condition that the screen-on duration is greater than or equal to a preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
In one embodiment, after the alarm clock reminding is performed in the running state of the first system, the method further includes:
under the condition that the user closing operation is not detected, the running state of the electronic equipment is switched from the first system to the second system, and the alarm clock delay time is counted;
switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold;
and carrying out alarm clock reminding again in the running state of the first system.
In one embodiment, the method further comprises:
receiving third-party data sent by third-party electronic equipment when the electronic equipment is in the running state of the second system;
and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the third-party data is an alarm clock reminding instruction sent to the electronic equipment by the third-party electronic equipment when alarm clock reminding is performed; the switching the operating state of the electronic device from the second system to the first system based on the third-party data includes:
and when the alarm clock reminding instruction is received, directly switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the third-party data is third-party alarm clock information sent to the electronic equipment by the third-party electronic equipment before alarm clock reminding is performed; the switching the operating state of the electronic device from the second system to the first system based on the third-party data includes:
and when the system time reaches the reminding time corresponding to the third-party alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the first processor is a central processing unit CPU, the second processor is a microprocessor MCU, the first system is an Android system, and the second system is a real-time operating system RTOS.
An alarm clock implementation device is applied to an electronic device, the electronic device comprises a first processor and a second processor, the first processor is used for operating a first system, the second processor is used for operating a second system, the power consumption of the electronic device operating the first system is higher than that of the electronic device operating the second system, and the device comprises:
the acquisition module is used for acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
the switching module is used for switching the running state of the electronic equipment from the first system to the second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and the reminding module is used for carrying out alarm clock reminding in the running state of the first system.
An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching an operating state of the electronic device from the first system to the second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching an operating state of the electronic device from the first system to the second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
The alarm clock implementation method, the device, the electronic equipment and the storage medium acquire alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system; switching the operating state of the electronic equipment from a first system to a second system; the power consumption of the first system is higher than that of the second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system; and carrying out alarm clock reminding in the running state of the first system. Therefore, the alarm clock information is set and the alarm clock is reminded when the electronic equipment is in the running state of the first system, and when the system time does not reach the reminding time corresponding to the alarm clock information, the running state of the electronic equipment is flexibly switched from the first system to the second system, so that the long-time cruising requirement of the electronic equipment is met.
Drawings
FIG. 1 is a diagram of an application scenario of an alarm clock implementation method in one embodiment;
FIG. 2 is a flow diagram illustrating an implementation of an alarm clock in one embodiment;
FIG. 3 is a system switching diagram of an electronic device in one embodiment;
FIG. 4 is a flow chart illustrating an alarm clock implementation method in another embodiment;
FIG. 5 is a block diagram of an embodiment of an alarm clock implementing apparatus;
FIG. 6 is a block diagram of an alarm clock implementing apparatus in another embodiment;
FIG. 7 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first processor may be referred to as a second processor, a first system may be referred to as a second system, and similarly, a second processor may be referred to as a first processor, and a second system may be referred to as a first system, without departing from the scope of the present application. The first processor and the second processor are both processors but are not the same processor, and the first system and the second system are both systems but are not the same system.
FIG. 1 is a diagram of a hardware framework of an electronic device in one embodiment. As shown in fig. 1, the electronic device 102 includes a first processor 1021 and a second processor 1022. The application environment includes a terminal 102 and a server 104. The first processor 110 and the second processor 120 are both microprocessors, wherein the first processor 1021 is a core processor. The first processor 1021 and the second processor 1022 may be respective microprocessors configured according to practical applications, and the first processor 1021 and the second processor 1022 are not limited herein. The first processor 1021 and the second processor 1022 may run different operating systems, respectively, and the electronic device 102 consumes more power to run the first system 1021a than to run the second system 1022 b. For example, the first processor 1021 may be a Central Processing Unit (CPU) processor, and the corresponding first system 1021a may be an Android system; the second processor 1022 may be an MCU (micro controller Unit) processor; the corresponding second System 1022b may be an RTOS (Real Time Operating System) System. The electronic device may be, but is not limited to, a smart phone, a personal computer, a wearable device, and the like. Those skilled in the art will appreciate that the hardware framework diagram shown in fig. 1 is only a diagram related to the present application, and does not constitute a limitation to the electronic device of the present application.
The electronic device 102 acquires alarm clock information; the alarm information is set by the electronic device 102 in the running state of the first system 1021 a. The operation status of the electronic device 102 is switched from the first system 1021a to the second system 1022 b. When the system time reaches the reminding time corresponding to the alarm clock information, the electronic device 102 switches the running state of the electronic device 102 from the second system 1022b to the first system 1021 a. The electronic device 102 performs alarm clock reminding in the running state of the first system 1021 a. When the system time does not reach the reminding time corresponding to the alarm clock information, the running state of the electronic equipment 102 is switched from the first system to the second system, so that the long-time cruising requirement of the electronic equipment is met.
In one embodiment, as shown in fig. 2, an alarm clock implementation method is provided, which is described by taking the method as an example applied to the electronic device 102 in fig. 1, and includes the following steps:
step 202, acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system.
The alarm clock information is information carrying reminding time, and specifically, the alarm clock information may include an alarm clock name and the reminding time. Optionally, the alarm clock information may further include at least one of a number of reminders, a type of reminder, ring information, alarm intensity, alarm clock background, and the like. The number of reminders can be set as desired. The reminder type may specifically include at least one of a vibration reminder or a ring reminder. The alarm clock background can be an image or animation or text and the like. The reminding times, reminding types, ring information, alarm intensity, alarm clock backgrounds and the like in different alarm clock information can be different or the same. Optionally, at least one of the corresponding reminding times, reminding types, ring information, alarm intensity and alarm clock backgrounds can be configured according to the alarm clock names. For example, the name of the alarm clock is an emergency alarm clock, the configured reminding times can be one time, and the reminding type can be ringing reminding; the alarm clock is named as a lazy alarm clock, the configured reminding times can be two or more than two, and the reminding type can be vibration reminding. The name of the alarm clock is a mild alarm clock, the corresponding ring of the ring information is silent music, and the intensity of the alarm clock can be in a low volume/low vibration mode. The name of the alarm clock is an active alarm clock, the corresponding ring of the ring information is music with a fast rhythm, and the intensity of the alarm clock can be in a large volume/large vibration mode. The name of the alarm clock is a wake-up alarm clock, and the configured alarm clock background can be a background picture of rising sun in the early morning; the name of the alarm clock is a sleep alarm clock, and the configured alarm clock background can be a night star map and the like.
Specifically, an alarm clock application is installed in the electronic device. The electronic device may start an alarm clock application, and when the electronic device is in a running state of the first system, the electronic device may display an alarm clock interface. The user can set alarm clock information according to actual conditions based on the alarm clock interface. The electronic device may obtain alarm clock information set by the user based on the alarm clock interface.
And step 204, switching the running state of the electronic equipment from the first system to the second system.
Specifically, after the electronic device acquires the alarm clock information, if other touch screen operations of the user are not detected, the electronic device can control the screen to be turned off and wait for the system time to reach the reminding time corresponding to the alarm clock information. Before the system time reaches the reminding time corresponding to the alarm clock information, the electronic equipment can switch the running state of the electronic equipment from the first system to the second system. When the operation state of the electronic device is switched from the first system to the second system, the first system may enter a sleep state, and at this time, the electronic device also enters a power saving mode.
In one embodiment, the processing performance of the first processor is better than the processing performance of the second processor. Therefore, when the first processor runs the first system, the display effect of the alarm clock interface of the electronic equipment is better than that when the second processor runs the second system. The electronic equipment is in the running state of the first system, alarm clock information is set and alarm clock reminding is carried out, and a richer alarm clock interface is provided.
In one embodiment, the first processor is a Central Processing Unit (CPU), the second processor is a Micro Controller Unit (MCU), the first System is an Android System, and the second System is a Real Time Operating System (RTOS). The electronic equipment can switch the running state of the electronic equipment from the Android system to the RTOS system.
And step 206, when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
The system time is a time set inside the electronic device system.
Specifically, after the operation state of the electronic device is switched from the first system to the second system, the electronic device may count the system time through the second system. The electronic equipment can monitor the system time in real time, and when the system time reaches the reminding time corresponding to the alarm clock information, the electronic equipment can switch the running state of the electronic equipment from the second system to the first system. It is to be appreciated that the electronic device can wake up the first system in a sleep state.
And step 208, performing alarm clock reminding in the running state of the first system.
Specifically, after the electronic device switches the running state of the electronic device from the second system to the first system, the electronic device can display an alarm clock interface in the running state of the first system, and perform alarm clock reminding on the alarm clock interface. The alarm clock prompt can adopt at least one of vibration prompt or ringing prompt.
In an embodiment, the first system may specifically be an Android system, and the Android system has a rich UI (User Interface) Interface library. The electronic equipment can customize a corresponding alarm clock animation scene based on a UI (user interface) library of an Android system, and set an alarm clock and perform alarm clock reminding under the customized alarm clock animation scene.
It should be noted that, in the present application, there is a mechanism of sleeping in the first system, that is, there are an awake state and a sleep state. The switching of the first system to the second system means that in the hybrid mode state, the hybrid mode state is a state when the electronic device simultaneously operates the first system and the second system, and the first system and the second system are simultaneously in the operating state at the beginning, but the second system processes a small amount of content, such as receiving and sending some simple commands, and the core tasks are processed by the first system. If the first system goes into a sleep state, the first system will no longer be able to process tasks, but the second system is still running, and from a morphological point of view, it is considered that the first system has switched to the second system. Wherein, the first system and the second system can also communicate. The second system is switched to the first system, the second system is responsible for processing some simple tasks, but cannot process some tasks of emergency cores, such as performing alarm clock equipment and alarm clock reminding tasks, and at the moment, the first system needs to be awakened to process the tasks of the cores. Thus, from the system aspect, the first system can be seen by the user, and the scene is that the second system is switched to the first system.
Further, it is understood that the switching between the first system and the second system may be embodied at the UI level. In the hybrid mode, the user cannot see the interface of the electronic device, and at this time, the second system is considered to be the leading electronic device, that is, the first system is switched to the second system, and only the second system is processing tasks. Similarly, if the user can see the normal UI interface and can operate the interface smoothly, it is the first system that dominates the electronic device, i.e. the second system has switched to the first system.
In the alarm clock implementation method, the alarm clock information is acquired; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system; switching the operating state of the electronic equipment from a first system to a second system; the power consumption of the first system is higher than that of the second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system; and carrying out alarm clock reminding in the running state of the first system. Therefore, the alarm clock information is set and the alarm clock is reminded when the electronic equipment is in the running state of the first system, and when the system time does not reach the reminding time corresponding to the alarm clock information, the running state of the electronic equipment is flexibly switched from the first system to the second system, so that the long-time cruising requirement of the electronic equipment is met. In addition, alarm clock reminding is carried out in the running state of the first system, display content of the alarm clock is enriched, and the intelligent scene of the electronic equipment is friendly.
In an embodiment, step 204, that is, the step of switching the operation state of the electronic device from the first system to the second system, specifically includes: after the alarm clock information is acquired, counting the screen-on duration of the electronic equipment; and under the condition that the screen-on duration is greater than or equal to the preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
Specifically, after the electronic device acquires the alarm clock information, the screen of the electronic device is still in a screen-on state in a short time, and the electronic device can count the screen-on duration of the electronic device and compare the screen-on duration with a preset screen-on duration threshold. And under the condition that the screen-on duration is greater than or equal to the preset screen-on duration threshold, the electronic equipment can control the electronic equipment to turn off the screen, and the running state of the electronic equipment can be switched from the first system to the second system.
In the above embodiment, by counting the screen-on duration of the electronic device, and controlling the electronic device to turn off the screen when the screen-on duration is greater than or equal to the preset screen-on duration threshold, the screen-on duration of the electronic device is shortened on the premise that the user requirement is met as much as possible, so as to save the power consumption of the electronic device. The running state of the electronic equipment is switched from the first system to the second system in time, so that the power consumption of the electronic equipment is further saved.
In an embodiment, step 204, that is, the step of switching the operation state of the electronic device from the first system to the second system, specifically includes: after the alarm clock information is acquired, under the condition that screen locking operation or screen turning-off operation is detected, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
Specifically, when the electronic device detects that a user triggers a screen locking operation or a screen extinguishing operation generated by a power key, the electronic device is controlled to extinguish the screen, and the running state of the electronic device is switched from the first system to the second system.
In the above embodiment, the screen locking operation or the screen extinguishing operation is detected, the electronic device is controlled to extinguish the screen, and the running state of the electronic device is switched from the first system to the second system, so that the power consumption of the electronic device can be saved.
In an embodiment, after step 208, that is, after the step of performing alarm clock reminding in the running state of the first system, the alarm clock implementation method specifically further includes: under the condition that the user closing operation is not detected, the running state of the electronic equipment is switched from a first system to a second system, and the delay time of the alarm clock is counted; switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold; and carrying out alarm clock reminding again in the running state of the first system.
Specifically, when the electronic device performs alarm clock reminding, the user can perform user closing operation through an alarm clock interface of the electronic device to close the alarm clock. The electronic device may detect a user turn-off operation of the user through an alarm clock interface of the electronic device. When the user closing operation is not detected, for example, the user does not realize the ringing or vibration reminding of the alarm clock, the user fails to close the alarm clock, and at this time, the electronic device may switch the running state of the electronic device from the first system to the second system, and count the delay time of the alarm clock. The electronic device can compare the alarm clock delay duration with a preset alarm clock delay duration threshold. And under the condition that the alarm clock delay time length is greater than or equal to the preset alarm clock delay time length threshold value, the electronic equipment can switch the running state of the electronic equipment from the second system to the first system and carry out alarm clock reminding again under the running state of the first system.
For example, the alarm clock previously set by the user is 12 points, the preset alarm clock delay time threshold is 5 minutes, the user does not turn off the alarm clock at 12 points, the electronic device does not detect the user turn-off operation at 12 points, at this time, the electronic device can switch the running state of the electronic device from the first system to the second system, and count the alarm clock delay time. And under the condition that the alarm clock delay time is longer than or equal to 5 minutes, namely 12 o' clock and 5 minutes, the electronic equipment can switch the running state of the electronic equipment from the second system to the first system and carry out alarm clock reminding again under the running state of the first system.
In the embodiment, the operation state of the electronic equipment is switched from the first system to the second system under the condition that the user closing operation is not detected, so that the electronic equipment is prevented from being in the operation state of the first system for a long time, and the power consumption of the electronic equipment is further saved. The operating state of the electronic equipment is switched from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to the preset alarm clock delay time threshold value, so that an excellent user interaction interface is provided. By carrying out alarm clock reminding again in the running state of the first system, the user is prevented from missing the alarm clock reminding.
In one embodiment, the alarm clock implementation method specifically further includes: receiving third-party data sent by third-party electronic equipment when the electronic equipment is in the running state of a second system; and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
Specifically, the electronic device may be communicatively connected to a third party electronic device. The third-party electronic device may be a smartphone, a tablet, a personal digital assistant, or the like. The third-party electronic device may generate third-party data and send the third-party data to the electronic device in the operating state of the second system. The third party data may be data related to an alarm clock. The electronic equipment can receive third-party data sent by the third-party electronic equipment in the running state of the second system. The electronic equipment can switch the running state of the electronic equipment from the second system to the first system based on the third-party data, and alarm clock reminding is carried out under the running state of the first system.
In one embodiment, the electronic device may be in communication connection with a third-party electronic device, and specifically may be in wireless connection or wired connection. The wireless connection may specifically be through a bluetooth connection or a wifi connection. The wired connection may specifically be a USB (Universal Serial Bus) connection.
In the embodiment, the operation state of the electronic equipment is switched from the second system to the first system based on the third-party data by receiving the third-party data sent by the third-party electronic equipment, and alarm clock reminding is performed in the operation state of the first system, so that low-power-consumption linkage between the electronic equipment and the third-party electronic equipment is realized, and the intelligent scene of the electronic equipment is more widely applied.
In one embodiment, the third-party data is an alarm clock reminding instruction sent to the electronic device by the third-party electronic device when alarm clock reminding is performed; switching the operating state of the electronic device from the second system to the first system based on the third party data, comprising: and when an alarm clock reminding instruction is received, directly switching the running state of the electronic equipment from the second system to the first system.
Specifically, the alarm clock reminding instruction is sent to the electronic equipment by the third-party electronic equipment when the alarm clock reminding is carried out, so that the electronic equipment also needs to carry out alarm clock reminding immediately when receiving the alarm clock reminding instruction, at the moment, the electronic equipment can directly switch the running state of the electronic equipment from the second system to the first system, so that alarm clock reminding is carried out when the alarm clock interface is set up by the electronic equipment, an interface with strong interaction performance is provided, the information quantity of interface interaction is enriched, and friendly user interface interaction is provided.
In one embodiment, the third-party electronic device may specifically be a mobile phone, and the electronic device may specifically be a smart watch. The smart watch can be in communication connection with the mobile phone, and therefore low-power-consumption linkage of the smart watch and the mobile phone is achieved. When the mobile phone carries out alarm clock reminding, an alarm clock reminding instruction can be generated and sent to the intelligent watch. The intelligent watch can receive an alarm clock reminding instruction sent by the mobile phone, and when the intelligent watch receives the alarm clock reminding instruction, the running state of the intelligent watch can be directly switched to the first system from the second system. Through the linkage of the mobile phone and the intelligent watch, the mobile phone and the intelligent watch can be simultaneously reminded of an alarm clock, so that when the mobile phone of a user is not around or the alarm clock of the mobile phone is not heard, the intelligent watch of the user can also carry out alarm clock reminding, and the user is prevented from missing the alarm clock.
In the embodiment, when the alarm clock reminding instruction is received, the running state of the electronic equipment is directly switched from the second system to the first system, so that an interface with high interaction performance is provided, and the information amount of interface interaction is enriched.
In one embodiment, the third-party data is third-party alarm clock information sent to the electronic device by the third-party electronic device before alarm clock reminding is performed; switching the operating state of the electronic device from the second system to the first system based on the third party data, comprising: and when the system time reaches the reminding time corresponding to the third-party alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
Specifically, the third-party alarm clock information is sent to the electronic equipment by the third-party electronic equipment before alarm clock reminding is carried out, so that when the electronic equipment receives the third-party alarm clock information, the system time of the alarm clock does not reach the reminding time corresponding to the third-party alarm clock information, at the moment, the electronic equipment can store the received third-party alarm clock information and monitor the system time of the alarm clock in real time. When the system time reaches the reminding time corresponding to the third-party alarm clock information, the running state of the electronic equipment is switched from the second system to the first system, so that alarm clock reminding is performed when the alarm clock interface is set up by the electronic equipment, and excellent user interface interaction is provided.
In the embodiment, when the system time reaches the reminding time corresponding to the alarm clock information of the third party, the running state of the electronic equipment is switched from the second system to the first system, so that the smooth alarm clock reminding is ensured, and meanwhile, excellent user interaction experience is provided.
In one embodiment, as shown in FIG. 3, the electronic device has three modes of operation, a high performance mode, an equalization mode, and an RS mode. The seamless switching between the Android system and the RTOS system, namely dual-core switching, is realized in a balance mode of the electronic equipment. The electronic equipment can wake up the Android system when acquiring the alarm clock information and performing alarm clock reminding, and is switched to the RTOS system from the Android system before the system time reaches the reminding time corresponding to the alarm clock information. Through the flexible switching of the Android system and the RTOS system, the electronic equipment meets the long-time cruising requirement and the excellent interface interaction requirement at the same time, and the intelligent scene of the electronic equipment is more friendly.
In an embodiment, as shown in fig. 4, when the electronic device is started, the electronic device may obtain alarm clock information in the Android system running state and wait to switch to the running state of the RTOS system. The electronic device can wait for alarm clock reminding in the running state of the RTOS system. When the system time reaches the reminding time corresponding to the alarm clock information, the electronic equipment can wake up the Android system, pop up an alarm clock page in the running state of the Android system, and carry out ringing reminding or vibration reminding.
It should be understood that although the various steps of fig. 2 are shown in order, the steps are not necessarily performed in order. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided an alarm clock implementing apparatus 500, including: an obtaining module 501, a switching module 502 and a reminding module 503, wherein:
an obtaining module 501, configured to obtain alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system.
A switching module 502, configured to switch an operation state of the electronic device from a first system to a second system; and when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
And a reminding module 503, configured to perform alarm clock reminding in the running state of the first system.
In one embodiment, the switching module 502 is further configured to count the screen-on duration of the electronic device after the alarm clock information is acquired; and under the condition that the screen-on duration is greater than or equal to the preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
In one embodiment, the switching module 502 is further configured to switch the running state of the electronic device from the first system to the second system and count the alarm delay time when the user closing operation is not detected; switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold; and carrying out alarm clock reminding again in the running state of the first system.
In one embodiment, the switching module 502 is further configured to control the electronic device to turn off the screen and switch the running state of the electronic device from the first system to the second system when the screen locking operation or the screen turning-off operation is detected after the alarm clock information is acquired.
In one embodiment, the first processor is a central processing unit CPU, the second processor is a microprocessor MCU, the first system is an Android system, and the second system is a real-time operating system RTOS.
Referring to fig. 6, in one embodiment, the alarm clock implementing apparatus 500 further includes: a receiving module 504, wherein:
the receiving module 504 is configured to receive third-party data sent by a third-party electronic device when the electronic device is in an operating state of a second system; and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the third-party data is an alarm clock reminding instruction sent to the electronic device by the third-party electronic device when alarm clock reminding is performed; the receiving module 504 is further configured to directly switch the operating state of the electronic device from the second system to the first system when the alarm clock reminding instruction is received.
In one embodiment, the third-party data is third-party alarm clock information sent to the electronic equipment by the third-party electronic equipment before alarm clock reminding is performed; the receiving module 504 is further configured to switch the running state of the electronic device from the second system to the first system when the system time reaches the reminding time corresponding to the third-party alarm clock information.
The alarm clock realization device acquires alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system; switching the operating state of the electronic equipment from a first system to a second system; the power consumption of the first system is higher than that of the second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system; and carrying out alarm clock reminding in the running state of the first system. Therefore, the alarm clock information is set and the alarm clock is reminded when the electronic equipment is in the running state of the first system, and when the system time does not reach the reminding time corresponding to the alarm clock information, the running state of the electronic equipment is flexibly switched from the first system to the second system, so that the long-time cruising requirement of the electronic equipment is met.
For specific limitations of the alarm clock implementation apparatus, reference may be made to the above limitations of the alarm clock implementation method, which is not described herein again. All or part of the modules in the alarm clock implementation device can be implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, the internal structure of which may be as shown in FIG. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an alarm clock implementation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching the operating state of the electronic equipment from a first system to a second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
after the alarm clock information is acquired, counting the screen-on duration of the electronic equipment;
and under the condition that the screen-on duration is greater than or equal to the preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that the user closing operation is not detected, the running state of the electronic equipment is switched from a first system to a second system, and the delay time of the alarm clock is counted;
switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold;
and carrying out alarm clock reminding again in the running state of the first system.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving third-party data sent by third-party electronic equipment when the electronic equipment is in the running state of a second system;
and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the third-party data is an alarm clock reminding instruction sent to the electronic device by the third-party electronic device when alarm clock reminding is performed; the processor, when executing the computer program, further performs the steps of:
and when an alarm clock reminding instruction is received, directly switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the third-party data is third-party alarm clock information sent to the electronic device by the third-party electronic device before alarm clock reminding is performed; the processor, when executing the computer program, further performs the steps of:
and when the system time reaches the reminding time corresponding to the third-party alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the first processor is a central processing unit CPU, the second processor is a microprocessor MCU, the first system is an Android system, and the second system is a real-time operating system RTOS.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching the operating state of the electronic equipment from a first system to a second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
after the alarm clock information is acquired, counting the screen-on duration of the electronic equipment;
and under the condition that the screen-on duration is greater than or equal to the preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
under the condition that the user closing operation is not detected, the running state of the electronic equipment is switched from a first system to a second system, and the delay time of the alarm clock is counted;
switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold;
and carrying out alarm clock reminding again in the running state of the first system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving third-party data sent by third-party electronic equipment when the electronic equipment is in the running state of a second system;
and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
In one embodiment, the third-party data is an alarm clock reminding instruction sent to the electronic device by the third-party electronic device when alarm clock reminding is performed; the computer program when executed by the processor further realizes the steps of:
and when an alarm clock reminding instruction is received, directly switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the third-party data is third-party alarm clock information sent to the electronic device by the third-party electronic device before alarm clock reminding is performed; the computer program when executed by the processor further realizes the steps of:
and when the system time reaches the reminding time corresponding to the third-party alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
In one embodiment, the first processor is a central processing unit CPU, the second processor is a microprocessor MCU, the first system is an Android system, and the second system is a real-time operating system RTOS.
A computer program product containing instructions which, when run on a computer, cause the computer to perform an alarm clock implementation method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An alarm clock implementation method is applied to an electronic device, the electronic device includes a first processor and a second processor, the first processor is used for operating a first system, the second processor is used for operating a second system, and the electric consumption of the electronic device for operating the first system is higher than that for operating the second system, and the method includes:
acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
switching an operating state of the electronic device from the first system to the second system;
when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and carrying out alarm clock reminding in the running state of the first system.
2. The method of claim 1, wherein switching the operating state of the electronic device from the first system to the second system comprises:
after the alarm clock information is acquired, counting the screen-on duration of the electronic equipment;
and under the condition that the screen-on duration is greater than or equal to a preset screen-on duration threshold, controlling the electronic equipment to turn off the screen, and switching the running state of the electronic equipment from the first system to the second system.
3. The method of claim 1, wherein after the alarm clock alert is made in the operational state of the first system, the method further comprises:
under the condition that the user closing operation is not detected, the running state of the electronic equipment is switched from the first system to the second system, and the alarm clock delay time is counted;
switching the running state of the electronic equipment from the second system to the first system under the condition that the alarm clock delay time is greater than or equal to a preset alarm clock delay time threshold;
and carrying out alarm clock reminding again in the running state of the first system.
4. The method of claim 1, further comprising:
receiving third-party data sent by third-party electronic equipment when the electronic equipment is in the running state of the second system;
and switching the running state of the electronic equipment from the second system to the first system based on the third-party data, and carrying out alarm clock reminding in the running state of the first system.
5. The method according to claim 4, wherein the third-party data is an alarm clock reminding instruction sent to the electronic device by a third-party electronic device when alarm clock reminding is performed; the switching the operating state of the electronic device from the second system to the first system based on the third-party data includes:
and when the alarm clock reminding instruction is received, directly switching the running state of the electronic equipment from the second system to the first system.
6. The method of claim 4, wherein the third-party data is third-party alarm clock information sent to the electronic device by a third-party electronic device before performing alarm clock reminding; the switching the operating state of the electronic device from the second system to the first system based on the third-party data includes:
and when the system time reaches the reminding time corresponding to the third-party alarm clock information, switching the running state of the electronic equipment from the second system to the first system.
7. The method according to any one of claims 1 to 6, wherein the first processor is a Central Processing Unit (CPU), the second processor is a microprocessor unit (MCU), the first system is an Android system, and the second system is a real-time operating system (RTOS).
8. The utility model provides an alarm clock realization device which characterized in that is applied to electronic equipment, electronic equipment includes first treater and second treater, first treater is used for running first system, the second treater is used for running the second system, electronic equipment operation the power consumption of first system is higher than the power consumption of running the second system, the device includes:
the acquisition module is used for acquiring alarm clock information; the alarm clock information is set to be obtained when the electronic equipment is in the running state of the first system;
the switching module is used for switching the running state of the electronic equipment from the first system to the second system; when the system time reaches the reminding time corresponding to the alarm clock information, switching the running state of the electronic equipment from the second system to the first system;
and the reminding module is used for carrying out alarm clock reminding in the running state of the first system.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110160561.8A 2021-02-05 2021-02-05 Alarm clock implementation method and device, electronic equipment and storage medium Pending CN114879833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110160561.8A CN114879833A (en) 2021-02-05 2021-02-05 Alarm clock implementation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110160561.8A CN114879833A (en) 2021-02-05 2021-02-05 Alarm clock implementation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114879833A true CN114879833A (en) 2022-08-09

Family

ID=82668452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110160561.8A Pending CN114879833A (en) 2021-02-05 2021-02-05 Alarm clock implementation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114879833A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101376532B1 (en) * 2012-12-28 2014-03-19 (주)누리텔레콤 Low-power automatic meter reading system and method using solar repeater and battery node
CN104182029A (en) * 2014-08-25 2014-12-03 酷派软件技术(深圳)有限公司 Program wakeup time setting method and device and terminal
CN106095059A (en) * 2016-06-08 2016-11-09 维沃移动通信有限公司 A kind of method reducing mobile terminal power consumption and mobile terminal
US20170055208A1 (en) * 2014-05-12 2017-02-23 Huawei Technologies Co., Ltd. Method and apparatus for reducing power consumption, and mobile terminal
CN106802551A (en) * 2017-01-03 2017-06-06 青岛海信移动通信技术股份有限公司 Intelligent wearable device control method and intelligent wearable device
CN107491160A (en) * 2017-06-22 2017-12-19 深圳天珑无线科技有限公司 A kind of application method of dual operating systems, storage device and intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101376532B1 (en) * 2012-12-28 2014-03-19 (주)누리텔레콤 Low-power automatic meter reading system and method using solar repeater and battery node
US20170055208A1 (en) * 2014-05-12 2017-02-23 Huawei Technologies Co., Ltd. Method and apparatus for reducing power consumption, and mobile terminal
CN104182029A (en) * 2014-08-25 2014-12-03 酷派软件技术(深圳)有限公司 Program wakeup time setting method and device and terminal
CN106095059A (en) * 2016-06-08 2016-11-09 维沃移动通信有限公司 A kind of method reducing mobile terminal power consumption and mobile terminal
CN106802551A (en) * 2017-01-03 2017-06-06 青岛海信移动通信技术股份有限公司 Intelligent wearable device control method and intelligent wearable device
CN107491160A (en) * 2017-06-22 2017-12-19 深圳天珑无线科技有限公司 A kind of application method of dual operating systems, storage device and intelligent terminal

Similar Documents

Publication Publication Date Title
CN106815065B (en) Background application awakening method and device and electronic equipment
CN112492564B (en) System switching method and device, electronic equipment and readable storage medium
CN114968375A (en) System switching method and device, electronic equipment and readable storage medium
CN106484075A (en) Method and device for adjusting application program wake-up time
WO2022127341A1 (en) System switching method and apparatus, device, and storage medium
CN115226048B (en) Data transmission method, device, equipment and storage medium
CN111782281B (en) Data processing method, device and computer readable storage medium
CN117369888A (en) Electronic equipment awakening method and device, electronic equipment and readable storage medium
CN115080158A (en) Interface display method and device, terminal equipment and computer readable storage medium
KR102619117B1 (en) Electronic device and method for operating electronic device
CN114879833A (en) Alarm clock implementation method and device, electronic equipment and storage medium
WO2022252906A1 (en) Interface display method and apparatus, terminal device, and computer readable storage medium
WO2023124634A1 (en) Display method and apparatus, electronic device, and storage medium
EP3223087B1 (en) Display control method and terminal device
CN114554579A (en) Application control method, device, electronic equipment and computer readable storage medium
CN115167954A (en) User interface display method, device, equipment and storage medium
CN115129143A (en) Display method and device of screen locking interface, wearable device and storage medium
CN115331664A (en) Speech recognition method and device, electronic equipment and computer readable storage medium
CN115079808B (en) Event reminding method and device, wearable equipment and storage medium
CN114461050A (en) Device operation method and device, electronic device and computer readable storage medium
WO2024032138A1 (en) Switching method, switching apparatus, electronic device, and computer-readable storage medium
CN114690883A (en) Wearable device control method and device, wearable device and storage medium
WO2023124554A1 (en) Application starting method and apparatus, and device and storage medium
WO2023138235A1 (en) Theme switching method and apparatus, and device, storage medium and program product
CN114205448A (en) Memorandum event reminding method and device, computer readable storage medium and terminal

Legal Events

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