WO2015176278A1 - 显示时间的方法和装置 - Google Patents

显示时间的方法和装置 Download PDF

Info

Publication number
WO2015176278A1
WO2015176278A1 PCT/CN2014/078132 CN2014078132W WO2015176278A1 WO 2015176278 A1 WO2015176278 A1 WO 2015176278A1 CN 2014078132 W CN2014078132 W CN 2014078132W WO 2015176278 A1 WO2015176278 A1 WO 2015176278A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
display
clock
screen
current time
Prior art date
Application number
PCT/CN2014/078132
Other languages
English (en)
French (fr)
Inventor
郜文美
王雅辉
井皓
李彦
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/078132 priority Critical patent/WO2015176278A1/zh
Priority to EP14892463.2A priority patent/EP2996019B1/en
Priority to BR112016003734-0A priority patent/BR112016003734B1/pt
Priority to CN201480002368.XA priority patent/CN104798029B/zh
Publication of WO2015176278A1 publication Critical patent/WO2015176278A1/zh
Priority to US14/971,102 priority patent/US9966047B2/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G9/00Visual time or date indication means
    • G04G9/0005Transmission of control signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • 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/325Power saving in peripheral device
    • G06F1/3265Power saving in display device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/395Arrangements specially adapted for transferring the contents of the bit-mapped memory to the screen
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/18Use of a frame buffer in a display terminal, inclusive of the display panel
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present invention relates to electronic technology, and more particularly to a method and apparatus for displaying time. Background technique
  • the principle is that the gravity sensor detects the state of the watch in real time and lights up the screen.
  • the system periodically obtains the time value and refreshes the lock screen UI. This way, when you press the power button to light up the screen When, it is generally the latest time value, and there is no problem of time hopping.
  • the background periodically acquires the time and updates the lock screen UI, which causes unnecessary power consumption and shortens the standby time. Therefore, it is not suitable for electronic devices such as smart watches that are extremely demanding in power consumption. Summary of the invention
  • an embodiment of the present invention provides a method for displaying a time, where the method includes: when an electronic device in a standby state detects that a motion trajectory of the electronic device meets a first condition by using a first sensor, acquiring The current time of the electronic device;
  • the clock display UI in the buffer is displayed on the screen of the electronic device.
  • the motion trajectory of the electronic device meets the first condition, including:
  • the angle at which the electronic device rotates about the first coordinate axis is greater than the rotational vector threshold or within a predetermined range of rotational vector thresholds.
  • the screen of the electronic device is lit, specifically including:
  • the electronic device When the electronic device detects that the angle change of the tilt of the electronic device satisfies the second condition, the electronic device lights the screen.
  • the acquiring the current time of the electronic device includes:
  • Reading the current time from a clock chip of the electronic device The current time is obtained through the network.
  • the method further includes:
  • the clock displays the UI of the user interface, including:
  • the standby interface is generated according to the display style of the standby interface by using the current time and the battery power, and the standby interface includes the clock display UI.
  • the method before or after the storing the UI display UI to the buffer, the method further includes:
  • the electronic device locks a corresponding area in the buffer that stores the clock display UI
  • the method further includes:
  • the electronic device unlocks a corresponding area of the buffer in which the clock display UI is stored.
  • an embodiment of the present invention provides a device for displaying time, where the device includes: a detecting unit, an acquiring unit, a processing unit, and a display unit;
  • the detecting unit is configured to detect a motion track of the electronic device by using a first sensor, and trigger the acquiring unit when a motion track of the electronic device meets a first condition;
  • the acquiring unit is configured to acquire a current time of the electronic device when triggered by the detecting unit;
  • the processing unit is configured to generate a clock display user interface UI by using the current time acquired by the acquiring unit, and store the clock display UI into a buffer;
  • the display unit is configured to display the clock display UI in the buffer to a screen of the electronic device when the screen of the electronic device is lit.
  • the motion track of the electronic device meets the first condition, including:
  • the angle at which the electronic device rotates about the first coordinate axis is greater than the rotational vector threshold or within a predetermined range of rotational vector thresholds.
  • the electronic device changes, and when the angle change of the tilt of the electronic device satisfies the second condition, the screen is illuminated.
  • the acquiring unit is specifically configured to: read the current time from a clock chip of the electronic device; or acquire the current by using a network time.
  • the acquiring unit after acquiring the current time of the electronic device, is further configured to acquire a current battery power of the electronic device and the standby a display style of the interface, where the display style of the standby interface includes a background color and/or a clock style of the clock display UI;
  • the display unit is specifically configured to generate a standby interface according to a display style of the standby interface by using the current time and a battery power, and the standby interface includes the clock display UI.
  • the processing unit is further configured to store in the buffer before or after the clock display UI is stored in the buffer The clock displays a corresponding area of the UI to be locked;
  • the processing unit is further configured to store the clock display UI in the buffer Unlock the corresponding area.
  • an embodiment of the present invention provides an electronic device, where the electronic device includes: a first sensor, a central processing unit CPU, a memory, and a display;
  • the first sensor is configured to detect a motion track of the electronic device, and when detecting that the motion track of the electronic device meets the first condition, triggering to generate a first interrupt signal, and sending the signal to the CPU;
  • the CPU is configured to acquire a current time of the electronic device when the first interrupt signal sent by the first sensor is received, generate a clock display user interface UI by using the current time, and display the clock Displaying a buffer that the UI stores to the memory;
  • the CPU is further configured to display the clock display UI in the buffer of the memory to the screen of the display when the screen of the display is illuminated.
  • the motion track of the electronic device meets the first condition, including:
  • the angle at which the electronic device rotates about the first coordinate axis is greater than the rotational vector threshold or within a predetermined range of rotational vector thresholds.
  • the electronic device further includes: a second sensor, configured to detect an angle change of the tilt of the electronic device, when the second sensor detects When the angle change of the tilt of the electronic device satisfies the second condition, triggering to generate a second interrupt signal is sent to the CPU;
  • the CPU receives the second interrupt signal sent by the second sensor to illuminate the screen of the display.
  • the CPU is specifically configured to: read the current time from a clock chip of the electronic device, or acquire the current time by using a network .
  • the CPU is further configured to acquire a current battery power of the electronic device and the standby interface.
  • Display style wherein the display style of the standby interface includes a background color and/or a clock style of the clock display UI;
  • the CPU is specifically configured to generate a standby interface according to a display style of the standby interface by using the current time and a battery power, where the standby interface includes the clock display UI.
  • the CPU is further configured to store the buffer in the buffer before or after the clock display UI is stored in the buffer Description
  • the clock displays the corresponding area of the UI to be locked
  • the CPU is further configured to unlock a corresponding area in the buffer that stores the clock display UI.
  • the electronic device is a smart watch, a smart wristband or a smart wristband.
  • the present invention can predict in advance that the user needs to view the time by detecting the motion of the user (corresponding to the motion track of the electronic device), obtain the latest current time before lighting the screen, and display the latest after the screen is lit.
  • the current time thus solving the problem that the time displayed by the electronic device when lighting the screen may jump, and reducing the power consumption of the electronic device.
  • FIG. 1 is a structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for displaying time according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for displaying time according to an embodiment of the present invention
  • FIG. 4 is a flowchart of still another method for displaying time according to an embodiment of the present invention
  • FIG. A schematic diagram of the device showing the time. detailed description
  • the electronic device includes, but is not limited to, a wearable device with a screen such as a smart watch, a smart wristband, a smart wristband, and the operating system (Opera ting System, OS) used by the electronic device.
  • OS Operating System
  • a wearable device with a screen such as a smart watch, a smart wristband, a smart wristband, and the operating system (Opera ting System, OS) used by the electronic device.
  • OS Operating System
  • OS Operating System
  • FIG. 1 is a structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device includes a central processing unit (Centra l Proce s ing Uni t, CPU) 101, a system clock 102, a sensor 103, a memory 104, and other peripherals 105.
  • System clock 102, sensor 103, memory 104, and other peripherals 105 can both transfer data to and from CPU 101.
  • At least one program is stored in the memory 104, and the program includes a processing program of the CPU 101.
  • the CPU 101 can execute these programs to perform the corresponding functions.
  • the processing program of the CPU 101 may include a plurality of interrupt processing subroutines, which may be regarded as relatively independent modules, for example, a time display optimization module for implementing the present invention, a standby interface display module for displaying a standby interface, and a point for The bright screen module of the bright screen, the power management module for managing the power supply, etc., the software module in the operating system OS, when the CPU needs to perform a certain processing, the corresponding module (interrupt processing subroutine) can be called, for example When the standby interface needs to be displayed, the standby interface display module is called.
  • the software modules of the respective OSs are described, and the executors of these software modules are considered to be the CPU 101.
  • the sensor 103 is a Micro-Electro-Mechanica Systems (MEMS) sensor.
  • MEMS Micro-Electro-Mechanica Systems
  • the memory 104 is used to store data of the electronic device system, wherein the memory 104 includes a frame buffer (FB) for buffering data.
  • FB frame buffer
  • the other peripherals 105 can be a display, which can be a light emitting diode
  • the type of display screen is not limited in the present invention.
  • the electronic device displays time on the screen of the display.
  • the sensor 103 includes a first sensor, the first sensor is configured to detect a motion track of the electronic device, and when detecting that the motion track of the electronic device meets the first condition, triggering to generate a first interrupt signal, and sending the signal to the CPU 101 .
  • the runtime display optimization module starts. After the time display optimization module is running, the current time of the electronic device is acquired from the system clock 102, the clock is displayed using the current time to generate a user interface UI, and the clock display UI is stored in a frame buffer of the memory 104.
  • the time display optimization module displays the clock display UI in the frame buffer of the memory 104 onto the screen of the display.
  • the motion track of the electronic device satisfies the first condition, and may include: the angle that the electronic device detects that the electronic device rotates around the first coordinate axis is greater than the rotation vector threshold.
  • the current time refers to the time when the CPU 101 receives the first interrupt signal, which is also the time when the time display optimization module is triggered by the CPU 101.
  • the CPU 101 generally stores the clock display UI to the frame buffer so that the stored clock display UI is directly read from the frame buffer when the screen is lit.
  • other buffers may also be stored.
  • the stored clock display UI is read from the buffer to the frame buffer and then displayed.
  • the storage is directly performed to the frame buffer as an example.
  • the way the electronic device screen lights up can be manually lit, that is, the screen is triggered by the button, and the screen can be illuminated when the user presses a specific button; or it can be automatically lit, and the electronic device is detected by the sensor. When the motion trajectory meets certain conditions, the screen is triggered to light up.
  • the senor 103 may further include a second sensor, the second sensor is configured to detect an angle change of the tilt of the electronic device, and when the second sensor detects that the tilt angle of the electronic device changes to meet the second When the condition (for example: exceeds the preset inclination threshold), the trigger generates a second interrupt signal and sends it to the CPU 101.
  • the condition for example: exceeds the preset inclination threshold
  • the CPU 101 When receiving the second interrupt signal, the CPU 101 calls an automatic bright screen module in the OS.
  • the automatic bright screen module recognizes that the signal is a signal for lighting the screen, the CPU 101 sends a request to the power management module in the OS to request lighting.
  • the display On the screen, the display responds to the request and illuminates the screen, ie the screen of the display.
  • the CPU 101 when receiving the second interrupt signal, the CPU 101 sends a first asynchronous event to the time display optimization module, and after the time display optimization module stores the clock display UI to the frame buffer, It is recognized whether the first asynchronous event is received, and if so, the CPU is requested to send a request to the power management module in the OS to light up the screen. The process is described in detail.
  • FIG. 2 is a flowchart of a time display method according to an embodiment of the present invention. As shown in FIG. 2, the embodiment includes the following steps:
  • Step 210 When the electronic device in the standby state detects that the motion track of the electronic device satisfies the first condition, acquire the current time of the electronic device.
  • the electronic device detects that the motion trajectory of the electronic device meets the first condition by the first sensor.
  • the motion trajectory of the electronic device satisfies the first condition, and may include: the angle at which the electronic device rotates around the first coordinate axis is greater than a rotation vector threshold, for example, 15°.
  • a rotation vector threshold for example, 15°.
  • the width of the rotation angle can be appropriately increased, for example, set to 20 ° or more.
  • the first sensor may be a Rotating Vector Sensor (RV-sensor), and the RV-sens or does not directly correspond to the physical sensor, but requires an acceleration sensor (G_sensor), a direction sensor (0_sensor), The gyro sensor (Gyro-sensor) is calculated by an algorithm, or the first sensor may also be a gyroscope.
  • RV_sensor the coordinate system of the RV_sensor is a three-dimensional coordinate, including three coordinate axes of X, Y, and , and a rotation vector threshold around the preset first coordinate axis is set in the RV-sensor in advance
  • the preset first coordinate axis may be the Y axis
  • the rotation vector width value may be the rotation angle around the Y axis.
  • the smart watch is worn on the user's arm, and the Y axis is the arm of the user wearing the smart watch.
  • the plane surrounded by the circle of the smart watch is the plane where the X axis and the Z axis are located, and can be rotated by 10 on the wrist. , 15 ° or 20.
  • the rotation vector threshold when the RV_sensor detects the motion trajectory of the electronic device, that is, the rotation motion of the wrist worn by the user, and when the rotation angle of the rotation motion is greater than the rotation vector threshold, the first sensor generates an interruption signal, The interrupt signal wakes up the CPU in a preset manner, causing the CPU to start working, and the CPU starts to work by calling the time display optimization module.
  • the interrupt signal wakes up the CPU in a preset manner.
  • the preset method can be connected through a hardware pin to generate a high level signal, such as "1", to trigger the CPU to start working.
  • the CPU starts to run the interrupt processing subroutine, wherein different interrupt signals correspond to different interrupt processing subroutines, where the CPU can generate a work instruction according to the interrupt signal sent by the first sensor, the work instruction.
  • the triggered interrupt handling subroutine is named the time display optimization module.
  • the motion trajectory satisfying the first condition can also be preset to other actions, for example, swaying around the first coordinate axis, etc., where the first coordinate axis is also the straight line where the user wears the wrist of the smart watch.
  • the rotation action may not be for the watch.
  • the rotation action is only a small angle swing, and the CPU is also triggered, and the power consumption is increased. Therefore, the appropriate rotation vector threshold can be selected to shield a large number of small actions, such as The rotation vector threshold can be set to 15. -20.
  • the first sensor can generate an interrupt signal when the rotation angle is greater than the corresponding rotation vector threshold between 15 ° and -20 °.
  • the first sensor of the electronic device detects that the motion trajectory of the electronic device meets the first condition, and may include: the electronic device detected by the first sensor of the electronic device rotates around the first coordinate axis The angle is within a predetermined range of rotation vector widths, for example, the rotation vector has a range of 15 ° -20 °.
  • the current time can be obtained from the hardware chip.
  • the time display optimization module acquires the current time from the clock chip of the system clock, and can also obtain the current time through software, for example, obtaining the current time from the network. Or obtain the current time through the Application Interface (API).
  • the time display optimization module may be the time when the calling API obtains the current time, and the current time value is the year, month, day, hour, minute, and second information, and the obtained year, month, day, hour, minute, The second is displayed on the clock display user interface (User Interface, UI).
  • the time display optimization module reads the current time from the clock chip, the clock chip has random acces s memory (RAM), the current time is stored in the RAM, and the time display optimization module reads the current current in the RAM. time.
  • RAM random acces s memory
  • Step 220 Generate a clock display user interface UI by using the current time, and store the clock display UI into a frame buffer.
  • a clock display UI is generated in accordance with the clock display style of the electronic device.
  • the method further includes: a time display optimization module acquiring a current battery power of the electronic device and a display style of the standby interface.
  • the display style of the standby interface includes a background color and/or a clock pattern of the clock display UI.
  • other display styles may also be included in the standby interface, which can also be obtained and displayed.
  • the displaying the user interface UI by using the current time to generate the clock includes: the time display optimization module uses the current time and the battery power to call the standby interface display module, and generates a standby interface according to the display style of the standby interface,
  • the clock display UI is included in the standby interface.
  • the time display optimization module stores the clock display UI in the frame buffer FB.
  • the time display optimization module may store the corresponding area of the UI data of the clock display UI in the frame buffer (the address segment in the frame buffer) Locking (lock), for example, the time display optimization module uses the memory lock mechanism provided by the 0S, that is, obtains the memory lock of the memory segment where the clock displays the UI, so that other processes have no
  • the method accesses the memory segment to lock the clock display UI.
  • the FB can be located in the graphics memory of the graphics processor (Graphic Proces s ing Uni t, GPU) or in the memory of the OS. When the FB exists in the memory of the OS, the FB can be provided by sharing the memory.
  • the specific locking time may be before storage or after storage. For locking before storage, it means that the corresponding area of the UI data for storing the clock display UI has been obtained, and the corresponding The zone is locked to ensure that only the previously locked process can access this zone i or later (before unlocking).
  • Step 230 When the screen of the electronic device is lit, display the clock display UI in the frame buffer to the screen of the electronic device.
  • the screen lighting of the electronic device may be automatically performed after the motion track of the electronic device satisfies the first condition, the current time is acquired, the clock display UI is generated, and the clock display UI is stored.
  • the second sensor detects that the angle change of the inclination of the electronic device satisfies the second condition.
  • the electronic device is a smart watch worn on the user's arm
  • the action of turning the wrist to watch the watch is actually decomposed into two actions, one is that the first sensor detects that the user has rotated the wrist more than 10°.
  • the time is triggered to obtain the current time, and the other is to trigger the lighting screen when the user rotates the wrist more than 30° through the second sensor. Since the two actions are usually completed continuously, the time difference between the two is very short, the time and storage of the display The error between the times is small and does not affect the accuracy of the time display.
  • the screen of the electronic device is lit, which may include the following two implementations:
  • the electronic device illuminates the screen when the electronic device detects that the change in the tilt of the electronic device meets the second condition (e.g., exceeds a preset tilt threshold) by the second sensor of the electronic device.
  • the second condition e.g., exceeds a preset tilt threshold
  • the second sensor detects an angle between a screen of the electronic device and a direction of gravity acceleration, wherein the second sensor may be a gravity sensor (G_sensor),
  • the inclination value of the inclination is set in the G-sensor
  • the inclination angle may be an angle between the screen of the electronic device and the direction of the acceleration of gravity.
  • the automatic bright screen module When the automatic bright screen module recognizes that the signal is a signal for lighting the screen, it sends a request to the power management module to request to light the screen, and the power management module turns on the display.
  • the power supply, the screen of the display is illuminated, and the time display optimization module displays the clock display UI in the FB to the screen. If the corresponding area of the clock display UI in the FB is locked before or after storing the clock display UI to the frame buffer, then after the clock display UI in the FB is displayed on the screen, This includes unlocking the corresponding area of the clock display UI in the FB so that the area can store new data. If the timeout is encountered while waiting for the screen to light up, that is, after the clock display UI is stored in the frame buffer for locking, when the timeout does not detect that the screen is lit, the electronic device re-enters the sleep state, at this time,
  • the CPU also needs to unlock the corresponding area of the clock display UI in the FB so that the area can store new data.
  • FIG. 3 is a flowchart of processing a time display method of a smart watch according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 301 The smart watch is in the standby state, and the screen is black.
  • Step 302 When the first sensor detects that the rotating motion of the arm meets the first condition, generating a first interrupt signal.
  • the first sensor is a rotation vector sensor.
  • the smart watch is worn on the user's arm, and when the user's arm rotates, the rotation of the smart watch is detected.
  • the rotation action satisfies the first condition, for example, the rotation angle exceeds 15°, the trigger generates the first interruption signal.
  • Step 303 The first interrupt signal is sent to the CPU, which wakes up the sleeping CPU, and triggers the clock display module to start working.
  • the clock display module is an interrupt service subroutine in the OS.
  • Step 304 The clock display module acquires the current time of the system, and displays the sample according to the current clock. Generate a clock display UI.
  • Step 305 The clock display module caches the clock display UI into a frame buffer of the smart watch.
  • Step 306 Wait for the screen to light up. If the screen is not detected after the timeout, the process is abandoned and the sleep state is re-entered.
  • Step 307 The second sensor detects the state of the watch. If it is found that the angle of the dial tilt changes by more than a certain angle, a second interrupt signal is generated and sent to the CPU to illuminate the screen.
  • the second sensor is a gravity sensor.
  • Step 308 The CPU triggers an automatic bright screen module to illuminate the screen.
  • Step 309 The clock display module detects that the screen is lit, and displays the clock buffered in the frame buffer.
  • the UI is drawn to the display.
  • Step 310 Enter a subsequent normal processing flow.
  • the electronic device detects, by the second sensor of the electronic device, whether the change in the tilt of the electronic device exceeds a preset tilt threshold, and if so, generates an asynchronous event, referred to as a first asynchronous event.
  • the time display optimization module confirms whether the first asynchronous event is received after the clock display UI is stored in the frame buffer, and if so, requests to light the screen.
  • the second sensor detects an angle between the screen of the electronic device and the direction of gravity acceleration, and when the second sensor detects that the angle between the screen of the electronic device and the gravity acceleration is greater than the inclination angle, the gravity sensor generates a specific electricity.
  • the signal is sent to the CPU, and the CPU sends a first asynchronous event to the time display optimization module.
  • the time display optimization module stores the UI data corresponding to the clock display UI to the FB, and locks the UI data, and locks the UI data here.
  • the method is the same as above.
  • the time display optimization module confirms that when the first asynchronous event is received, sends a request to the power management module to request to light up the screen.
  • the time display optimization module displays the clock display UI in the FB to the screen. If before storing the clock display UI to the frame buffer or After that, the corresponding area of the clock display UI in the FB is locked. Then, after the clock display UI in the FB is displayed on the screen, the corresponding area of the clock display UI in the FB is also unlocked, so that This area is capable of storing new data.
  • the electronic device If the timeout is encountered while waiting for the screen to light up, that is, after the clock display UI is stored in the frame buffer for locking, when the timeout does not detect that the screen is lit, the electronic device re-enters the sleep state, at this time, The CPU also needs to unlock the corresponding area of the clock display UI in the FB so that the area can store new data.
  • FIG. 4 is a flowchart of still another time display method according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 The smart watch is in the standby state, and the screen is black.
  • Step 402 When the first sensor detects that the rotation motion of the arm meets the first condition, generating a first interrupt signal.
  • Step 403 The first interrupt signal is sent to the CPU, and the CPU in hibernation is woken up, and the CPU calls the clock display module to start working.
  • Step 404 The clock display module acquires a current time of the system, and generates a clock display UI according to the current clock display mode.
  • Step 405 The second sensor detects the state of the watch. If it is found that the angle of the dial tilt changes by more than a certain angle, a second interrupt signal is generated and sent to the CPU, and the CPU calls the clock display optimization module.
  • Step 406 The clock display module caches the clock display UI into a frame buffer of the smart watch.
  • Step 407 The clock display module confirms that the request is lit, otherwise the process is abandoned after the timeout, and the sleep state is re-entered.
  • Step 408 When the clock display module detects that the screen is lit, the clock display UI buffered in the frame buffer is drawn to the display.
  • Step 409 Enter a subsequent normal processing flow.
  • the difference between the above two methods is that the way to light the screen is different.
  • the first sensor and the second sensor may be packaged together by MEMS technology to form a MEMS sensor.
  • the time display optimization module, the automatic bright screen module and the power management module can be integrated in the OS in the form of software modules, and stored in the memory, when executed by the CPU, perform corresponding functions, or can be integrated in hardware coding.
  • the coprocessor can be either the Sensor Hub coprocessor or the sensor center. When the coprocessor is a Sensor Hub coprocessor, it can acquire, integrate, and process data from different sensors, moving tasks that acquire, integrate, and process data from different sensors away from the main application processor, saving power and Improve performance.
  • the action of lifting the arm to watch the watch during walking is generally about 500 ms (from the beginning of the arm to the standstill);
  • the arm is placed on the table, just a simple rotation of the watch to watch the watch, usually about 300ms (wrist rotation process); and the MEMS sensor sample rate can generally reach several kilohertz, the gyroscope sample rate can generally reach 8KHz, that is, the interval between the gyroscopes is 0. 125ms, obviously the MEMS sensor or gyroscope can accurately recognize the user's wrist rotation (ie, watch action).
  • the wrist rotation angle is 30 ° -90 °, and 30 ° is the lowest value of the tilt angle of the screen when the screen is lit. Because the screen tilt angle is too small, the screen is not bright.
  • the interrupt signal has been sent.
  • the clock displays the UI and stores UI data corresponding to the clock display UI to the FB.
  • the method for displaying time is also applicable to an electronic device (such as a mobile phone) that is illuminated by a button. Compared with the smart watch, only the way of lighting the screen is different.
  • the motion track is detected to satisfy the first condition, the current time is acquired and the time display UI is stored in the buffer, when the user lights up through the button.
  • the time in the display buffer shows the UI.
  • the method for displaying time provided by the embodiment of the present invention solves the problem that the time displayed by the electronic device when the device is illuminated, and the power consumption of the electronic device is reduced.
  • FIG. 5 is a schematic diagram of a device for displaying time according to Embodiment 2 of the present invention.
  • the apparatus for displaying time in this embodiment includes: a detecting unit 510, an obtaining unit 520, a processing unit 530, and a display unit 540.
  • the detecting unit 510 is configured to detect a motion trajectory of the electronic device, and trigger the acquiring unit 520 when the motion trajectory of the electronic device satisfies the first condition.
  • the motion trajectory of the electronic device satisfies the first condition, and specifically includes: the angle of the electronic device detected by the first sensor of the electronic device rotating around the first coordinate axis is greater than a rotation vector threshold or is wider at a predetermined rotation vector Within the range of values.
  • the acquiring unit 520 is configured to acquire the current time of the electronic device when triggered by the detecting unit 510.
  • the obtaining unit 520 is specifically configured to read the current time from the clock chip of the electronic device, or obtain the current time from the network through the application program interface API.
  • the processing unit 530 is configured to generate a clock display user interface UI by using the current time acquired by the obtaining unit 520, and store the clock display UI to a frame buffer.
  • the display unit 540 is configured to display the clock display UI in the frame buffer to the screen of the electronic device when the screen of the electronic device is lit.
  • the screen of the electronic device is lit, and specifically includes:
  • the second sensor of the electronic device detects whether the angle change of the tilt of the electronic device exceeds a preset tilt threshold, and if so, lights the screen.
  • the second sensor of the electronic device detects whether the angle change of the tilt of the electronic device exceeds a preset tilt threshold, and if so, generates an asynchronous event, referred to as a first asynchronous event.
  • the processing unit 530 after storing the clock display UI to the frame buffer, confirms whether the first asynchronous event is received, and if so, lights up the screen.
  • the acquiring unit 520 is further configured to obtain a current battery power of the electronic device and a display style of the standby interface.
  • the display style of the standby interface includes a background color and/or a clock pattern of the clock display UI.
  • the display unit 540 is specifically configured to invoke the standby interface display module by using the current time and the battery power, and generate a standby interface according to the display style of the standby interface.
  • the clock display UI is included in the standby interface.
  • the processing unit 530 is further configured to lock a corresponding area of the frame buffer in which the clock display UI is stored before or after storing the clock display UI to the frame buffer.
  • the processing unit 530 is further configured to store the corresponding of the clock display UI in the buffer. The area is unlocked.
  • the functions of the above units may correspond to the processing steps of the above-described time display method described in detail in FIG. 2, and details are not described herein again.
  • the device for displaying time provided by the embodiment of the present invention solves the problem that the time displayed by the electronic device when the screen is illuminated, and the power consumption of the electronic device is reduced.
  • RAM random access memory
  • ROM read only memory
  • electrically programmable ROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other form of storage known in the art. In the medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Electric Clocks (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明涉及一种时间显示方法,所述方法包括:当处于待机状态的电子设备通过第一传感器检测到所述电子设备的运动轨迹满足第一条件时,获取所述电子设备的当前时间;利用所述当前时间生成时钟显示用户界面UI,并将所述时钟显示UI存储至缓冲区;当所述电子设备的屏幕点亮时,将所述缓冲区中的所述时钟显示UI显示到所述电子设备的屏幕上。本发明解决了电子设备在点亮屏幕时显示的时间会发生跳变的问题,并且降低了电子设备的功耗。

Description

显示时间的方法和装置 技术领域
本发明涉及电子技术, 尤其涉及一种显示时间的方法和装置。 背景技术
目前业界的一些智能手表有一个功能是: 轻轻旋转手臂时, 手表的屏幕 自动点亮, 并在屏幕上显示时间。 其原理是重力传感器实时检测手表的状态, 亮展幕。
但有一个问题: 点亮屏幕时会先显示锁屏前的时间, 而后才显示当前的 时间, 有一个明显的延迟(或者说明显的跳变) , 其原因是由于智能手表的 帧緩冲区 ( FrameBuffer , FB ) 中緩存的是原来的时钟显示用户界面 (User Interface , UI ) , 点亮屏幕时才去获取最新的时间值并显示最新的时钟显示 UI , 这导致点亮屏幕时的时间跳变。
现有技术中, Android手机中也普遍存在类似的问题(即点亮屏幕时的时 间跳变问题), Android系统的锁屏基本流程: 当用户按下电源键锁屏时, 系 统会生成锁屏 UI并緩存到 FB中 (注: 时钟显示是当时的时间) , 然后屏幕 变黑, 系统休眠; 当再次按下电源键时, 系统被唤醒, 屏幕被点亮, 此时会 显示 FB中緩存的锁屏 UI (注: 时钟还是锁屏前的时间), 然后系统再获取最 新的时间值, 刷新锁屏界面, 显示最新的时钟值。 上述过程中, 会产生时钟 的跳变问题(即先显示一个旧时间, 再显示一个新时间) 。
对于以上 Android手机中的问题, 现在也有解决方案, 比如在待机情况 下, 系统周期性的获取时间值, 并刷新锁屏 UI。 这样, 当按电源键点亮屏幕 时, 一般都是最新的时间值, 不会出现时间跳变的问题。 然而, 上述手机的 优化方案, 后台周期性的获取时间并更新锁屏 UI, 会造成无谓的电量消耗, 缩短待机时间。 因此, 并不适用于像智能手表这类对功耗要求极为苛刻的电 子设备。 发明内容
本发明的目的是解决电子设备在点亮屏幕时显示的时间会发生跳变的问 题。
第一方面, 本发明实施例提供了一种显示时间的方法, 所述方法包括: 当处于待机状态的电子设备通过第一传感器检测到所述电子设备的运动 轨迹满足第一条件时, 获取所述电子设备的当前时间;
利用所述当前时间生成时钟显示用户界面 UI,并将所述时钟显示 UI存储 至緩冲区;
当所述电子设备的屏幕点亮时, 将所述緩冲区中的所述时钟显示 UI显示 到所述电子设备的屏幕上。
结合第一方面,在第一方面的第一种可能的实现方式中,所述电子设备的 运动轨迹满足第一条件, 包括:
所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
结合第一方面,在第一方面的第二种可能是实现方式中,所述电子设备的 屏幕点亮, 具体包括:
所述电子设备检测到所述电子设备倾斜的角度变化满足第二条件时,则所 述电子设备点亮屏幕。
结合第一方面,在第一方面的第三种可能的实现方式中,所述获取所述电 子设备的当前时间, 具体包括:
从所述电子设备的时钟芯片中读取所述当前时间; 通过网络获取所述当前时间。
结合第一方面,在第一方面的第四种可能的实现方式中,在所述获取所述 电子设备的当前时间之后, 还包括:
获取所述电子设备当前的电池电量及所述待机界面的显示样式,其中,所 述待机界面的显示样式包括所述时钟显示 UI的背景颜色和 /或时钟样式; 所述利用所述当前时间生成时钟显示用户界面 UI, 具体包括:
利用所述当前时间和电池电量,按照所述待机界面的显示样式生成待机界 面, 所述待机界面中包括所述时钟显示 UI。
结合第一方面,在第一方面的第五种可能的实现方式中,在所述将所述时 钟显示 UI存储至緩冲区之前或之后, 还包括:
所述电子设备对所述緩冲区中存储所述时钟显示 UI 的相应区域进行加 锁;
在所述将所述緩冲区中的所述时钟显示 UI显示到所述电子设备的屏幕上 之后, 还包括:
所述电子设备对所述緩冲区中存储所述时钟显示 UI 的相应区域进行解 锁。
第二方面, 本发明实施例提供了一种显示时间的装置, 所述装置包括: 检测单元、 获取单元、 处理单元和显示单元;
所述检测单元, 用于通过第一传感器检测所述电子设备的运动轨迹, 当 所述电子设备的运动轨迹满足第一条件时触发所述获取单元;
所述获取单元, 用于当受到所述检测单元触发时, 获取所述电子设备的 当前时间;
所述处理单元, 用于利用所述获取单元获取的所述当前时间生成时钟显 示用户界面 UI, 并将所述时钟显示 UI存储至緩冲区;
所述显示单元, 用于当所述电子设备的屏幕点亮时, 将所述緩冲区中的 所述时钟显示 UI显示到所述电子设备的屏幕上。 结合第二方面, 在第二方面的第一种可能的实现方式中, 所述电子设备 的运动轨迹满足第一条件, 包括:
所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
结合第二方面, 在第一方面的第二种可能的实现方式中, 所述电子设备 变化, 当所述电子设备倾斜的角度变化满足第二条件时, 则点亮屏幕。
结合第二方面, 在第二方面的第三种可能的实现方式中, 所述获取单元 具体用于从所述电子设备的时钟芯片中读取所述当前时间; 或者, 通过网络 获取所述当前时间。
结合第二方面, 在第二方面的第四种可能的实现方式中, 所述获取单元 在获取所述电子设备的当前时间之后, 还用于获取所述电子设备当前的电池 电量及所述待机界面的显示样式, 其中, 所述待机界面的显示样式包括所述 时钟显示 UI的背景颜色和 /或时钟样式;
所述显示单元具体用于利用所述当前时间和电池电量, 按照所述待机界 面的显示样式生成待机界面, 所述待机界面中包括所述时钟显示 UI。
结合第二方面, 在第二方面的第五种可能的实现方式中, 所述处理单元 在将所述时钟显示 UI存储至緩冲区之前或之后, 还用于对所述緩冲区中存储 所述时钟显示 UI的相应区域进行加锁;
在所述显示单元将所述緩冲区中的所述时钟显示 UI显示到所述电子设备 的屏幕上之后, 所述处理单元还用于对所述緩冲区中存储所述时钟显示 UI的 相应区域进行解锁。
第三方面, 本发明实施例提供了一种电子设备, 所述电子设备包括: 第 一传感器、 中央处理器 CPU、 存储器和显示器;
所述第一传感器, 用于检测所述电子设备的运动轨迹, 当检测到所述电 子设备的运动轨迹满足第一条件时,触发产生第一中断信号,发送给所述 CPU; 所述 CPU, 用于在接收到所述第一传感器发送的所述第一中断信号时, 获 取所述电子设备的当前时间, 利用所述当前时间生成时钟显示用户界面 UI, 并将所述时钟显示 UI存储至所述存储器的緩冲区;
所述 CPU还用于当所述显示器的屏幕点亮时, 将所述存储器的緩冲区中 的所述时钟显示 UI显示到所述显示器的屏幕上。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述电子设备 的运动轨迹满足第一条件, 包括:
所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
结合第三方面, 在第三方面的第二种可能的实现方式中, 所述电子设备 还包括: 第二传感器, 用于检测所述电子设备倾斜的角度变化, 当所述第二 传感器检测到所述电子设备的倾斜的角度变化满足第二条件时, 触发产生第 二中断信号, 发送给所述 CPU;
所述 CPU在接收到所述第二传感器发送的第二中断信号, 点亮所述显示 器的屏幕。
结合第三方面, 在第三方面的第三种可能的实现方式中, 所述 CPU具体 用于从所述电子设备的时钟芯片中读取所述当前时间, 或者, 通过网络获取 所述当前时间。
结合第三方面, 在第三方面的第四种可能的实现方式中, 所述 CPU在获 取所述电子设备的当前时间之后, 还用于获取所述电子设备当前的电池电量 及所述待机界面的显示样式, 其中, 所述待机界面的显示样式包括所述时钟 显示 UI的背景颜色和 /或时钟样式;
所述 CPU具体用于利用所述当前时间和电池电量, 按照所述待机界面的 显示样式生成待机界面, 所述待机界面中包括所述时钟显示 UI。
结合第三方面, 在第三方面的第五种可能的实现方式中, 所述 CPU在将 所述时钟显示 UI存储至緩冲区之前或之后, 还用于对所述緩冲区中存储所述 时钟显示 UI的相应区域进行加锁;
所述 CPU在将所述緩冲区中的所述时钟显示 UI显示到所述电子设备的屏 幕上之后,还用于对所述緩冲区中存储所述时钟显示 UI的相应区域进行解锁。
结合第三方面, 在第三方面的第六种可能的实现方式中, 所述电子设备 为智能手表、 智能手环或智能腕带。
通过上述方案, 本发明通过检测用户的动作 (对应于电子设备的运动轨 迹) , 可以提前预测到用户需要查看时间, 在点亮屏幕之前先获取到最新的 当前时间, 在屏幕点亮之后显示最新的当前时间, 因此解决了电子设备在点 亮屏幕时显示的时间会发生跳变的问题, 并且降低了电子设备的功耗。 附图说明
图 1为本发明实施例提供的电子设备结构图;
图 2为本发明实施例一提供的显示时间的方法流程图;
图 3为本发明实施例提供的一种显示时间的方法的处理流程图; 图 4为本发明实施例提供的又一种显示时间的方法的处理流程图; 图 5为本发明实施例二提供的显示时间的装置示意图。 具体实施方式
为了使本发明的目的、 技术方案和优点更加清楚, 下面将结合附图对本 发明作进一步地详细描述, 显然, 所描述的实施例仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有 做出创造性劳动前提下所获得的所有其它实施例, 都属于本发明保护的范围。
在本发明实施例中, 电子设备包括但不限于智能手表、 智能手环、 智能 腕带等具有屏幕的可穿戴式设备, 电子设备所釆用的操作系统 (Opera t ing Sys tem, OS )可以包括但不限于安卓 Andro id, I0S等操作系统。 由于原理是 相同的, 为了叙述的方便, 以下实施例均仅以智能手表为例进行说明, 但这 些举例并非对本发明保护范围的限制。
图 1为本发明实施例提供的电子设备结构图。 如图 1所示, 该电子设备 包括中央处理器(Centra l Proces s ing Uni t , CPU ) 101、 系统时钟 102、 传 感器 103, 存储器 104以及其它外设 105。 系统时钟 102、 传感器 103, 存储 器 104以及其它外设 105均可与 CPU 101之间传输数据。
存储器 104中存储有至少一个程序, 所述程序包括 CPU 101的处理程序。 CPU 101可以执行这些程序, 以执行相应的功能。
CPU 101的处理程序可以包括多个中断处理子程序,可以看成是相对独立 的模块, 例如, 用于本发明实施的时间显示优化模块、 用于显示待机界面的 待机界面显示模块、 用于点亮屏幕的自动亮屏模块、 用于管理电源的电源管 理模块等等操作系统 OS中的软件模块, 当 CPU需要进行相应某个处理时, 调 用对应的模块(中断处理子程序) 即可, 例如需要显示待机界面时, 调用待 机界面显示模块。 为了更详细地说明本发明的实施过程, 在本发明实施例中 以各个 OS 的软件模块进行说明, 可以认为这些软件模块的执行者都是 CPU 101。
传感器 103为微机电系统 ( Micro-Electro-Mechanica l Sys tems , MEMS ) 传感器。
存储器 104用于存储电子设备系统的数据, 其中, 存储器 104包括帧緩 冲区 (f ramebuffer , FB ) , 用于緩存数据。
其它外设 105 可以是显示器, 该显示器可以是发光二极管
( Light-Emi t t ing Diode , LED )显示展,也可以是( Liquid Crys ta l Di s play, LCD )液晶显示屏, 本发明对显示屏的类型并不限定。 本发明实施例中电子设 备在显示器的屏幕上显示时间。
传感器 103 包括第一传感器, 所述第一传感器用于检测所述电子设备的 运动轨迹, 当检测到所述电子设备的运动轨迹满足第一条件时, 触发产生第 一中断信号, 发送给 CPU 101。 CPU 101在接收到所述第一传感器发送的所述 第一中断信号时, 开始运行时间显示优化模块。 时间显示优化模块运行后, 从系统时钟 102 中获取所述电子设备的当前时间, 利用所述当前时间生成时 钟显示用户界面 UI, 并将所述时钟显示 UI存储至存储器 104的帧緩冲区。
当电子设备的显示器的屏幕点亮时, 时间显示优化模块将存储器 104 的 帧緩冲区中的所述时钟显示 UI显示到所述显示器的屏幕上。
其中, 所述电子设备的运动轨迹满足第一条件, 可以包括: 第一传感器 检测到的所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值。
当前时间是指在 CPU 101接收到第一中断信号时, 也是时间显示优化模 块受到 CPU 101的触发时这一时刻的时间。
CPU 101—般将时钟显示 UI存储至帧緩冲区, 以便于在屏幕点亮时, 直 接从帧緩冲区读取存储的时钟显示 UI。 当然, 本实施例和后续的其他实施例 中, 也可以存储到其他緩冲区, 在屏幕点亮时, 再从该緩冲区读取存储的时 钟显示 UI到帧緩冲区再显示, 在本发明实施例中均以直接存储到帧緩冲区为 例进行说明。
电子设备屏幕点亮的方式可以是手动点亮, 即通过按键来触发点亮屏幕, 当用户按下特定的按键时即可点亮屏幕; 也可以是自动点亮, 通过传感器检 测到电子设备的运动轨迹满足一定的条件时, 即触发点亮屏幕。
因而, 可选的, 传感器 103还可以包括第二传感器, 第二传感器用于检 测所述电子设备倾斜的角度变化, 当所述第二传感器检测到所述电子设备的 倾斜的角度变化满足第二条件 (例如: 超过预设倾角阔值) 时, 触发产生第 二中断信号, 发送给 CPU 101。
CPU 101在接收到第二中断信号时, 调用 OS中的自动亮屏模块, 自动亮 屏模块识别出该信号是点亮屏幕的信号时,向 OS中的电源管理模块发送请求, 以请求点亮屏幕, 显示器响应该请求, 点亮屏幕, 即显示器的屏幕。
或者, CPU 101在接收到第二中断信号时, 向时间显示优化模块发送第一 异步事件, 时间显示优化模块在将所述时钟显示 UI存储至帧緩冲区之后, 确 认是否接收到该第一异步事件, 如果是, 则请求所述 CPU向 OS中的电源管理 模块发送请求, 以点亮屏幕。 过程进行详细描述。
图 2为本发明实施例提供的时间显示方法流程图, 如图 2所示, 本实施 例包括以下步骤:
步骤 210,当处于待机状态的电子设备检测到所述电子设备的运动轨迹满 足第一条件时, 获取所述电子设备的当前时间。
电子设备通过第一传感器检测所述电子设备的运动轨迹满足第一条件。 所述电子设备的运动轨迹满足第一条件, 可以包括: 所述电子设备围绕第一 坐标轴旋转的角度大于旋转矢量阔值, 例如 15° 。 当然, 为了达到省电目的, 可以将旋转角度的阔值适当提高, 例如设为 20 ° 以上。
第一传感器可以是旋转矢量传感器 ( Ro ta t ion Vec tor sensor, RV-sensor ) , 该 RV-sens or并没有直接对应的物理传感器, 而是需要加速度 传感器( G_sensor ),方向传感器( 0_sensor ), 陀螺仪传感器( Gyro-sensor ) 经算法计算后得出, 或者第一传感器也可以是陀螺仪。 当第一传感器是 RV_sensor时, RV_sensor所在的坐标系为三维坐标, 包括 X、 Y、 Ζ三个坐标 轴, 预先在 RV-sensor 中设置围绕预设的第一坐标轴的旋转矢量阔值, 该预 设的第一坐标轴可以是 Y轴, 旋转矢量阔值可以是围绕 Y轴旋转角度, 以智 能手表为例, 智能手表佩戴在用户的手臂上, Y轴是用户佩戴智能手表的手 臂所在的直线, 智能手表的表带围成的圓圈所在的平面是 X轴和 Z轴所在的 平面,可以以手腕旋转 10。 、 15 ° 或者 20。 作为旋转矢量阔值, 当 RV_sensor 检测到电子设备的运动轨迹, 即用户佩戴手表的手腕的旋转动作, 并且当该 旋转动作的旋转角度大于旋转矢量阔值时, 第一传感器产生一个中断信号, 该中断信号通过预设的方式将 CPU唤醒, 使得 CPU开始工作, 并且 CPU向调 用时间显示优化模块开始工作。 其中, 中断信号通过预设的方式将 CPU唤醒, 该预设的方式可以是通过硬件管脚连接, 产生一个高电平信号, 比如 "1" , 触发 CPU开始工作。 CPU被触发后, CPU开始运行中断处理子程序, 其中, 不 同的中断信号对应不同的中断处理子程序, 在此处可以将 CPU根据第一传感 器发送的中断信号而生成的工作指令, 该工作指令触发的中断处理子程序命 名为时间显示优化模块。
当然, 满足第一条件的运动轨迹也可以预先设置成其他动作, 例如, 围 绕着第一坐标轴进行晃动方式等等, 这里的第一坐标轴也是用户佩戴智能手 表的手臂所在的直线。
需要说明的是, 旋转动作有可能不是为了看表, 比如旋转动作仅仅是小 角度的摆动, 也会触发 CPU, 耗电增加, 因此, 可以选择合适的旋转矢量阔值 屏蔽掉大量的小动作,比如可以将旋转矢量阔值设置在 15。 -20。 之间的任意 一个角度, 对于旋转角度大于设定在 15 ° -20 ° 之间对应的旋转矢量阔值时, 第一传感器才可生成中断信号。 也就是说, 所述电子设备的第一传感器检测 到所述电子设备的运动轨迹满足第一条件, 可以包括: 所述电子设备的第一 传感器检测到的所述电子设备围绕第一坐标轴旋转的角度在预定的旋转矢量 阔值范围之内, 例如, 旋转矢量阔值范围为 15 ° -20 ° 。
在时间显示优化模块运行时, 可以从硬件芯片获取当前时间, 比如时间 显示优化模块从系统时钟的时钟芯片获取所述当前时间, 也可以通过软件的 方式获取当前时间, 比如从网络中获取当前时间或者通过应用程序接口 ( Appl i ca t ion Programing Interface , API )获取当前的时间。 其中, 时间 显示优化模块可以是调用 API 获取当前的时间时, 可以获得当前的时间值是 年、 月、 日、 时、 分、 秒信息, 将获取到的年、 月、 日、 时、 分、 秒在时钟 显示用户界面 (User Interface , UI )上进行显示。
在一个实施例中, 当 OS为 Android时, 此时通过 API获取当前时间的过 程如下: Time t=new Time (); // 创建时间对象实例
t. setToNow O ; II 取得当前系统时间
int year = t. year ; // 提取年信息
int month = t. month ; II 提取月信息
int date = t. monthDay; II 提取日信息
int hour = t. hour ; // 提取小时信息
int minute = t. minute ; II 提取分钟信息
int second = t. second ; II 提取禾少信息
在另一个实施例中, 时间显示优化模块从时钟芯片读取当前时间, 时钟 芯片中具有随机存储器( random acces s memory, RAM ) , RAM中存储当前时间, 时间显示优化模块读取 RAM中的当前时间。
步骤 220, 利用所述当前时间生成时钟显示用户界面 UI, 并将所述时钟 显示 UI存储至帧緩冲区。
利用步骤 210获取的当前时间, 按照所述电子设备的时钟显示样式生成 时钟显示 UI。
可选的, 在所述获取所述电子设备的当前时间之后, 还包括: 时间显示 优化模块获取所述电子设备当前的电池电量及所述待机界面的显示样式。 其 中, 所述待机界面的显示样式包括所述时钟显示 UI 的背景颜色和 /或时钟样 式。 当然, 待机界面中还可能还包括其他的显示样式, 同样也可以获取并显 示。
所述利用所述当前时间生成时钟显示用户界面 UI, 具体包括: 时间显示 优化模块利用所述当前时间和电池电量, 调用待机界面显示模块, 按照所述 待机界面的显示样式生成待机界面, 所述待机界面中包括所述时钟显示 UI。
时间显示优化模块将所述时钟显示 UI存储至帧緩冲区 FB中。
为了保证存储至 FB中的 UI数据不被其他程序冲刷掉, 时间显示优化模 块可以对所述帧緩冲区中存储所述时钟显示 UI 的 UI数据的相应区域(在帧 緩冲区的地址段)进行加锁(lock ) , 比如, 时间显示优化模块使用 0S提供 的内存锁机制, 即获得该时钟显示 UI所在的内存段的内存锁, 使其它进程无 法访问该内存段, 实现对所述时钟显示 UI加锁。 其中, FB可以位于图形处理 器(Graphic Proces s ing Uni t , GPU ) 的显存中, 也可以位于 OS的内存中, 当 FB存在于 OS的内存中时, FB可以通过共享内存的方式提供。 具体加锁的 时间可以是在存储之前, 也可以在存储之后, 对于在存储之前进行加锁的, 是指在已经获得存储所述时钟显示 UI 的 UI数据的相应区域, 此时将该相应 的区域进行锁定, 可以保证后续 (解锁之前)仅有之前进行加锁的进程可以 对此区 i或进行访问。
步骤 230, 当所述电子设备的屏幕点亮时, 将所述帧緩冲区中的所述时钟 显示 UI显示到所述电子设备的屏幕上。
所述电子设备的屏幕点亮可以是在在电子设备的运动轨迹满足第一条 件, 获取当前时间, 生成时钟显示 UI并存储时钟显示 UI之后自动执行。
或者, 也可以是通过第二传感器检测到所述电子设备倾斜的角度变化满 足第二条件时, 才执行。 对于后一种情况, 如果电子设备是佩戴在用户手臂 的智能手表, 其实是将用户旋转手腕看表的动作分解为两个动作进行判断, 一个是通过第一传感器检测到用户旋转手腕超过 10° 时触发获取当前时间, 另一个是通过第二传感器检测用户旋转手腕超过 30° 时触发点亮屏幕, 由于 这两个动作通常是连续完成, 因此两者相差的时间非常短, 显示的时间与存 储的时间之间的误差很少, 不影响时间显示的准确性。
对于后一种情况, 所述电子设备的屏幕点亮, 可以包括以下两种实现方 式:
第一种:
所述电子设备通过所述电子设备的第二传感器检测所述电子设备倾斜的 角度变化满足第二条件时 (例如超过预设倾角阔值) , 则所述电子设备点亮 屏幕。
具体地, 第二传感器检测电子设备的屏幕与重力加速度方向的夹角, 其 中, 第二传感器可以是重力传感器 ( Gravi ty-sensor, G_sensor ) , 预先在 G-sensor 中设置倾角阔值, 该倾角阔值可以是电子设备的屏幕与重力加速度 方向的夹角。 当第二传感器检测到电子设备的屏幕与重力加速度的夹角大于 倾角阔值(倾角阔值是设定的一个角度) 时, 该 G-sensor会产生一个特定的 电信号, 并且 G-sensor将该电信号发送给 CPU, CPU调用自动亮屏模块, 自 动亮屏模块识别出该信号是点亮屏幕的信号时, 向电源管理模块发送请求, 以请求点亮屏幕, 电源管理模块则接通显示器的电源, 点亮显示器的屏幕, 时间显示优化模块将 FB中的时钟显示 UI显示到屏幕上。 如果在将所述时钟 显示 UI存储至帧緩冲区之前或之后, 对 FB中的时钟显示 UI的相应区域进行 了加锁, 那么, 在将 FB中的时钟显示 UI显示到屏幕上之后, 还包括对该 FB 中的时钟显示 UI的相应区域进行解锁, 以便该区域能够存储新的数据。 如果 在等待屏幕点亮时, 遇到超时的情况, 即在将时钟显示 UI存储到帧緩冲区进 行加锁后, 超时未检测到屏幕点亮时, 电子设备重新进入休眠状态, 此时,
CPU还需要对 FB中的时钟显示 UI的相应区域进行解锁,以便该区域能够存储 新的数据。
图 3是本发明实施例提供的一种智能手表的时间显示方法的处理流程图, 如图 3所示, 包括以下步骤:
步骤 301、 智能手表处于待机状态, 屏幕为黑屏。
步骤 302、 第一传感器检测到手臂的旋转动作满足第一条件时, 产生第一 中断信号。 其中, 第一传感器为旋转矢量传感器。
智能手表佩戴于使用者的手臂上, 当使用者的手臂旋转时, 即检测到智 能手表的旋转动作。 当旋转动作满足第一条件, 例如旋转角度超过 15° 时, 触发产生第一中断信号。
步骤 303、 该第一中断信号发送给 CPU, 会唤醒休眠中的 CPU, 并触发时 钟显示模块开始工作。
时钟显示模块是 OS中的一个中断服务子程序。
步骤 304、 时钟显示模块获取系统当前的时间, 并根据当前的时钟显示样 式生成时钟显示 UI。
步骤 305、 时钟显示模块将上述时钟显示 UI緩存到智能手表的帧緩冲区 中。
步骤 306、等待屏幕点亮,如果超时未检测到屏幕点亮,则放弃此次流程, 重新进入休眠状态。
步骤 307、 第二传感器检测手表的状态, 如果发现表盘倾斜的角度变化超 过一定角度时, 则产生第二中断信号发送给 CPU, 以点亮屏幕。 其中, 第二传 感器为重力传感器。
步骤 308、 CPU触发自动亮屏模块, 点亮屏幕。
步骤 309、 时钟显示模块检测到屏幕点亮, 将帧緩冲区中緩存的时钟显示
UI绘制到显示屏上显示。
步骤 310、 进入后续正常处理流程。
或者, 第二种:
所述电子设备通过所述电子设备的第二传感器检测所述电子设备倾斜的 角度变化是否超过预设倾角阔值, 如果是, 则产生一个异步事件, 称为第一 异步事件。
时间显示优化模块在所述将所述时钟显示 UI存储至帧緩冲区之后, 确认 是否接收到第一异步事件, 如果是, 则请求点亮屏幕。
具体地, 第二传感器检测电子设备的屏幕与重力加速度方向的夹角, 当 第二传感器检测到电子设备的屏幕与重力加速度的夹角角度大于倾角阔值 时, 重力传感器会产生一个特定的电信号, 并将该电信号发送给 CPU, CPU向 时间显示优化模块发送第一异步事件, 时间显示优化模块将时钟显示 UI对应 的 UI数据存储至 FB, 并对 UI数据加锁, 此处加锁的方法与上述方法相同。 时间显示优化模块确认接收到了第一异步事件时, 向电源管理模块发送请求, 以请求点亮屏幕, 电源管理模块点亮屏幕后, 时间显示优化模块将 FB中的时 钟显示 UI显示到屏幕上。 如果在将所述时钟显示 UI存储至帧緩冲区之前或 之后, 对 FB中的时钟显示 UI的相应区域进行了加锁, 那么, 在将 FB中的时 钟显示 UI显示到屏幕上之后, 还包括对该 FB中的时钟显示 UI的相应区域进 行解锁, 以便该区域能够存储新的数据。 如果在等待屏幕点亮时, 遇到超时 的情况, 即在将时钟显示 UI存储到帧緩冲区进行加锁后, 超时未检测到屏幕 点亮时, 电子设备重新进入休眠状态, 此时, CPU还需要对 FB中的时钟显示 UI的相应区域进行解锁, 以便该区域能够存储新的数据。
图 4 为本发明实施例提供的又一种时间显示方法的处理流程图, 如图 4 所示, 包括以下步骤:
步骤 401、 智能手表处于待机状态, 屏幕为黑屏。
步骤 402、 第一传感器检测到手臂的旋转动作满足第一条件时, 产生第一 中断信号。
步骤 403、 该第一中断信号发送给 CPU, 会唤醒休眠中的 CPU, CPU调用 时钟显示模块开始工作。
步骤 404、 时钟显示模块获取系统当前的时间, 并根据当前的时钟显示样 式生成时钟显示 UI。
上述步骤 401 ~步骤 404与图 3中的步骤 301 ~步骤 304对应相同, 于此 不再赘述。
步骤 405、 第二传感器检测手表的状态, 如果发现表盘倾斜的角度变化超 过一定角度时,则产生第二中断信号发送给 CPU, CPU调用时钟显示优化模块。
步骤 406、 时钟显示模块将上述时钟显示 UI緩存到智能手表的帧緩冲区 中。
步骤 407、时钟显示模块确认请求点亮屏幕,否则在超时后放弃此次流程, 重新进入休眠状态。
步骤 408、 时钟显示模块检测到屏幕点亮时, 将帧緩冲区中緩存的时钟显 示 UI绘制到显示屏上显示。
步骤 409、 进入后续正常处理流程。 以上两种方式的差别在于点亮屏幕的方式不同。
需要说明的是,第一传感器和第二传感器可以釆用 MEMS技术封装在一起, 形成 MEMS传感器。 时间显示优化模块、 自动亮屏模块和电源管理模块可以以 软件模块的形式集成在 OS中, 并存储于存储器中, 在被 CPU调用时, 执行相 应的功能, 也可以以硬件编码的方式集成在协处理器中, 协处理器可以是 Sensor Hub协处理器, 也可以是传感器中心。 当协处理器是 Sensor Hub协处 理器时, 可以获取、 整合并处理来自不同传感器的数据, 即把获取、 整合并 处理来自不同传感器的数据这类任务移离主应用处理器, 从而节省电力并提 升效能。
在本实施例中, 以智能手表为例, 如果人的手臂自然垂放, 在行走过程 中抬起手臂看表的动作, 一般为 500ms左右(从手臂开始抬起到静止看表) ; 如果人的手臂放在桌上, 只是简单的旋转手腕看表的动作, 一般为 300ms 左 右 (手腕旋转过程) ; 而 MEMS传感器的釆样率一般可以达到几千赫兹, 陀 螺仪的釆样率一般可以达到 8KHz, 即陀螺仪釆样一次的间隔时间为 0. 125ms, 显然 MEMS传感器或者陀螺仪可以精确地识别出用户的手腕旋转动作(即看表 动作) 。 一般看表动作中手腕旋转角度为 30 ° -90 ° , 此时 30 ° 是点亮屏幕 时, 屏幕的倾斜角度的最低值, 因为屏幕倾斜角度太小的话, 屏幕是点不亮 的。
比如当取 30 ° 为重力传感器发送特定电信号的倾角阔值, 取 10 ° 为旋转 矢量传感器发送中断信号的旋转矢量阔值, 这样, 第一传感器在用户看表动 作的 1/ 3时间时(假设看表动作时间为 300ms, 则 1/ 3为 100ms )就已经发出 中断信号了, 时间显示优化模块可以有充分的时间 ( 300ms *2/ 3=200ms )来获 取当前时间, 将当前时间显示在时钟显示 UI以及将时钟显示 UI对应的 UI数 据存储至 FB。 这样, 当重力传感器检测到屏幕与重力加速度方向的夹角大于 倾角阔值时, 点亮屏幕, 当前最新时间就直接显示在屏幕上了, 用户感觉不 到任何延迟。 需要说明的是, 将本发明实施例提供的显示时间的方法应用到按键点亮 的电子设备(比如手机) 时, 也同样适用。 与智能手表相比较而言, 仅在于 点亮屏幕的方式不一样, 当检测到运动轨迹满足第一条件时, 获取当前时间 并生成时间显示 UI存储到緩冲区中, 当用户通过按键点亮屏幕时, 显示緩冲 区中的时间显示 UI。
因此, 本发明实施例提供的显示时间的方法, 解决了电子设备在电亮屏 幕时显示的时间会发生跳变问题, 并且降低了电子设备的功耗。
图 5为本发明实施例二提供的显示时间的装置示意图。 如图 5所示, 本 实施例的显示时间的装置包括: 检测单元 510, 获取单元 520, 处理单元 530 和显示单元 540。
检测单元 510用于检测所述电子设备的运动轨迹, 当所述电子设备的运 动轨迹满足第一条件时触发获取单元 520。
所述电子设备的运动轨迹满足第一条件, 具体包括: 所述电子设备的第 一传感器检测到的所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔 值或者在预定的旋转矢量阔值范围之内。
获取单元 520用于受到检测单元 510的触发时, 获取所述电子设备的当 前时间。
获取单元 520具体用于从所述电子设备的时钟芯片中读取当前时间, 或 者, 通过应用程序接口 API从网络中获取当前时间。
处理单元 530用于利用获取单元 520获取的所述当前时间生成时钟显示 用户界面 UI, 并将所述时钟显示 UI存储至帧緩冲区。
显示单元 540用于当所述电子设备的屏幕点亮时, 将所述帧緩冲区中的 所述时钟显示 UI显示到所述电子设备的屏幕上。
所述电子设备的屏幕点亮, 具体包括:
所述电子设备的第二传感器检测所述电子设备倾斜的角度变化是否超过 预设倾角阔值, 如果是, 则点亮屏幕。 或者, 所述电子设备的第二传感器检测所述电子设备倾斜的角度变化是 否超过预设倾角阔值, 如果是, 则产生一个异步事件, 称为第一异步事件。
处理单元 530在将时钟显示 UI存储至帧緩冲区之后,确认是否接收到第 一异步事件, 如果是, 则点亮屏幕。
可选的, 获取单元 520在获取所述电子设备的当前时间之后, 还用于获 取所述电子设备当前的电池电量及所述待机界面的显示样式。 其中, 所述待 机界面的显示样式包括所述时钟显示 UI的背景颜色和 /或时钟样式。
显示单元 540具体用于利用所述当前时间和电池电量, 调用待机界面显 示模块, 按照所述待机界面的显示样式生成待机界面。 所述待机界面中包括 所述时钟显示 UI。
可选的,处理单元 530在将所述时钟显示 UI存储至帧緩冲区之前或之后, 还用于对所述帧緩冲区中存储所述时钟显示 UI的相应区域进行加锁。
在显示单元 540将所述帧緩冲区中的所述时钟显示 UI显示到所述电子设 备的屏幕上之后, 处理单元 530还用于对所述緩冲区中存储所述时钟显示 UI 的相应区域进行解锁。
上述各单元的功能可对应于图 2详细描述的上述时间显示方法的处理步 骤, 于此不再赘述。
因此, 应用本发明实施例提供的显示时间的装置, 解决了电子设备在电 亮屏幕时显示的时间会发生跳变问题, 并且降低了电子设备的功耗。
专业人员应该还可以进一步意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来 实现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来 执行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能, 但是这种实现不应认为 超出本发明的范围。 结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、 处理 器执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器
( RAM ) 、 内存、 只读存储器(ROM ) 、 电可编程 R0M、 电可擦除可编程 R0M、 寄存器、 硬盘、 可移动磁盘、 CD-R0M、 或技术领域内所公知的任意其它形式 的存储介质中。
以上所述的具体实施方式, 对本发明的目的、 技术方案和有益效果进行 了进一步详细说明, 所应理解的是, 以上所述仅为本发明的具体实施方式而 已, 并不用于限定本发明的保护范围, 凡在本发明的精神和原则之内, 所做 的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1、 一种显示时间的方法, 其特征在于, 所述方法包括:
当处于待机状态的电子设备通过第一传感器检测到所述电子设备的运动 轨迹满足第一条件时, 获取所述电子设备的当前时间;
利用所述当前时间生成时钟显示用户界面 UI,并将所述时钟显示 UI存储 至緩冲区;
当所述电子设备的屏幕点亮时, 将所述緩冲区中的所述时钟显示 UI显示 到所述电子设备的屏幕上。
2、 根据权利要求 1所述的时间显示方法, 其特征在于, 所述电子设备的 运动轨迹满足第一条件, 包括:
所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
3、 根据权利要求 1所述的时间显示方法, 其特征在于, 所述电子设备的 屏幕点亮, 具体包括:
所述电子设备通过所述电子设备的第二传感器检测到所述电子设备倾斜 的角度变化满足第二条件时, 则所述电子设备点亮屏幕。
4、 根据权利要求 1所述的时间显示方法, 其特征在于, 所述获取所述电 子设备的当前时间, 具体包括:
从所述电子设备的时钟芯片中读取所述当前时间;
或者, 通过网络获取所述当前时间。
5、 根据权利要求 1所述的时间显示方法, 其特征在于, 在所述获取所述 电子设备的当前时间之后, 还包括:
获取所述电子设备当前的电池电量及所述待机界面的显示样式, 其中, 所述待机界面的显示样式包括所述时钟显示 UI的背景颜色和 /或时钟样式; 所述利用所述当前时间生成时钟显示用户界面 UI, 具体包括:
利用所述当前时间和电池电量, 按照所述待机界面的显示样式生成待机 界面, 所述待机界面中包括所述时钟显示 UI。
6、 根据权利要求 1所述的时间显示方法, 其特征在于, 在所述将所述时 钟显示 UI存储至緩冲区之前或之后, 还包括:
所述电子设备对所述緩冲区中存储所述时钟显示 UI 的相应区域进行加 锁;
在所述将所述緩冲区中的所述时钟显示 UI显示到所述电子设备的屏幕上 之后, 还包括:
所述电子设备对所述緩冲区中存储所述时钟显示 UI 的相应区域进行解 锁。
7、 一种显示时间的装置, 其特征在于, 所述装置包括: 检测单元、 获取 单元、 处理单元和显示单元;
所述检测单元, 用于通过第一传感器检测所述电子设备的运动轨迹, 当 所述电子设备的运动轨迹满足第一条件时触发所述获取单元;
所述获取单元, 用于当受到所述检测单元触发时, 获取所述电子设备的 当前时间;
所述处理单元, 用于利用所述获取单元获取的所述当前时间生成时钟显 示用户界面 UI, 并将所述时钟显示 UI存储至緩冲区;
所述显示单元, 用于当所述电子设备的屏幕点亮时, 将所述緩冲区中的 所述时钟显示 UI显示到所述电子设备的屏幕上。
8、 根据权利要求 7所述的装置, 其特征在于, 所述电子设备的运动轨迹 满足第一条件, 包括:
所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
9、根据权利要求 7所述的装置, 其特征在于, 所述电子设备的屏幕点亮, 电子设备倾斜的角度变化满足第二条件时, 则点亮屏幕。
10、 根据权利要求 7 所述的装置, 其特征在于, 所述获取单元具体用于 从所述电子设备的时钟芯片中读取所述当前时间; 或者, 通过网络获取所述 当前时间。
11、 根据权利要求 7 所述的装置, 其特征在于, 所述获取单元在获取所 述电子设备的当前时间之后, 还用于获取所述电子设备当前的电池电量及所 述待机界面的显示样式, 其中, 所述待机界面的显示样式包括所述时钟显示 UI的背景颜色和 /或时钟样式;
所述显示单元具体用于利用所述当前时间和电池电量, 按照所述待机界 面的显示样式生成待机界面, 所述待机界面中包括所述时钟显示 UI。
12、 根据权利要求 7 所述的装置, 其特征在于, 所述处理单元在将所述 时钟显示 UI存储至緩冲区之前或之后, 还用于对所述緩冲区中存储所述时钟 显示 UI的相应区域进行加锁;
在所述显示单元将所述緩冲区中的所述时钟显示 UI显示到所述电子设备 的屏幕上之后, 所述处理单元还用于对所述緩冲区中存储所述时钟显示 UI的 相应区域进行解锁。
13、 一种电子设备, 其特征在于, 所述电子设备包括: 第一传感器、 中 央处理器 CPU、 存储器和显示器;
所述第一传感器, 用于检测所述电子设备的运动轨迹, 当检测到所述电 子设备的运动轨迹满足第一条件时,触发产生第一中断信号,发送给所述 CPU;
所述 CPU, 用于在接收到所述第一传感器发送的所述第一中断信号时, 获 取所述电子设备的当前时间, 利用所述当前时间生成时钟显示用户界面 UI, 并将所述时钟显示 UI存储至所述存储器的緩冲区;
所述 CPU还用于当所述显示器的屏幕点亮时, 将所述存储器的緩冲区中 的所述时钟显示 UI显示到所述显示器的屏幕上。
14、 根据权利要求 13所述的电子设备, 其特征在于, 所述电子设备的运 动轨迹满足第一条件, 包括: 所述电子设备围绕第一坐标轴旋转的角度大于旋转矢量阔值或者在预定 的旋转矢量阔值范围之内。
15、 根据权利要求 13所述的电子设备, 其特征在于, 所述电子设备还包 括: 第二传感器, 用于检测所述电子设备倾斜的角度变化, 当所述第二传感 器检测到所述电子设备的倾斜的角度变化满足第二条件时, 触发产生第二中 断信号, 发送给所述 CPU;
所述 CPU在接收到所述第二传感器发送的第二中断信号, 点亮所述显示 器的屏幕。
16、 根据权利要求 13所述的电子设备, 其特征在于, 所述 CPU具体用于 从所述电子设备的时钟芯片中读取所述当前时间, 或者, 通过网络获取所述 当前时间。
17、 根据权利要求 13所述的电子设备, 其特征在于, 所述 CPU在获取所 述电子设备的当前时间之后, 还用于获取所述电子设备当前的电池电量及所 述待机界面的显示样式, 其中, 所述待机界面的显示样式包括所述时钟显示 UI的背景颜色和 /或时钟样式;
所述 CPU具体用于利用所述当前时间和电池电量, 按照所述待机界面的 显示样式生成待机界面, 所述待机界面中包括所述时钟显示 UI。
18、 根据权利要求 13所述的电子设备, 其特征在于, 所述 CPU在将所述 时钟显示 UI存储至緩冲区之前或之后, 还用于对所述緩冲区中存储所述时钟 显示 U I的相应区域进行加锁;
所述 CPU在将所述緩冲区中的所述时钟显示 UI显示到所述电子设备的屏 幕上之后,还用于对所述緩冲区中存储所述时钟显示 UI的相应区域进行解锁。
19、 根据权利要求 13所述的电子设备, 其特征在于, 所述电子设备为智 能手表、 智能手环或智能腕带。
PCT/CN2014/078132 2014-05-22 2014-05-22 显示时间的方法和装置 WO2015176278A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/CN2014/078132 WO2015176278A1 (zh) 2014-05-22 2014-05-22 显示时间的方法和装置
EP14892463.2A EP2996019B1 (en) 2014-05-22 2014-05-22 Time display method and apparatus
BR112016003734-0A BR112016003734B1 (pt) 2014-05-22 2014-05-22 Método e aparelho de exibição de tempo e dispositivo eletrônico
CN201480002368.XA CN104798029B (zh) 2014-05-22 2014-05-22 显示时间的方法和装置
US14/971,102 US9966047B2 (en) 2014-05-22 2015-12-16 Time display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/078132 WO2015176278A1 (zh) 2014-05-22 2014-05-22 显示时间的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/971,102 Continuation US9966047B2 (en) 2014-05-22 2015-12-16 Time display method and apparatus

Publications (1)

Publication Number Publication Date
WO2015176278A1 true WO2015176278A1 (zh) 2015-11-26

Family

ID=53561519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/078132 WO2015176278A1 (zh) 2014-05-22 2014-05-22 显示时间的方法和装置

Country Status (5)

Country Link
US (1) US9966047B2 (zh)
EP (1) EP2996019B1 (zh)
CN (1) CN104798029B (zh)
BR (1) BR112016003734B1 (zh)
WO (1) WO2015176278A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049635A (zh) * 2015-08-21 2015-11-11 上海众人网络安全技术有限公司 移动终端及其功能触发方法以及商品地址快速获取系统
JP2017102429A (ja) * 2015-11-19 2017-06-08 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America ウェアラブル端末および制御方法
US10108462B2 (en) * 2016-02-12 2018-10-23 Microsoft Technology Licensing, Llc Virtualizing sensors
US10048837B2 (en) * 2016-02-16 2018-08-14 Google Llc Target selection on a small form factor display
CN106054581A (zh) * 2016-07-28 2016-10-26 努比亚技术有限公司 一种智能手表屏幕的控制方法和智能手表
KR102473790B1 (ko) * 2016-08-30 2022-12-05 삼성전자 주식회사 저전력 상태에서 시간 정보 제공 방법 및 이 방법을 포함하는 전자 장치
CN107908353B (zh) * 2016-09-30 2020-12-18 禾瑞亚科技股份有限公司 电子系统、触控处理装置与其方法
CN106354272A (zh) * 2016-11-29 2017-01-25 广东小天才科技有限公司 一种智能可穿戴设备的解锁方法及系统
CN107317929A (zh) * 2017-06-26 2017-11-03 上海与德科技有限公司 一种时间显示的方法及装置
CN109270857B (zh) * 2017-07-18 2020-10-20 比亚迪股份有限公司 车辆、车载显示屏的控制装置和方法
CN107577410A (zh) * 2017-09-01 2018-01-12 歌尔科技有限公司 穿戴设备显示屏的点亮方法及装置
CN108427578B (zh) * 2018-02-08 2021-06-04 上海惠芽信息技术有限公司 一种屏幕控制方法、计算机可读存储介质及一种智能终端
CN109407817B (zh) * 2018-11-01 2020-08-04 Oppo(重庆)智能科技有限公司 熄屏时钟的控制方法、装置、电子设备及存储介质
CN109744589A (zh) * 2019-03-12 2019-05-14 深圳哈卡科技有限公司 电子烟及电子烟电量显示方法
CN109947448B (zh) * 2019-03-15 2023-06-27 努比亚技术有限公司 一种时间更新方法、设备及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508594A (zh) * 2011-09-30 2012-06-20 宇龙计算机通信科技(深圳)有限公司 终端和待机界面显示方法
CN103399811A (zh) * 2013-08-14 2013-11-20 联宝(合肥)电子科技有限公司 当前时间日期和电池电量快速显示方法和系统
US20140028539A1 (en) * 2012-07-29 2014-01-30 Adam E. Newham Anatomical gestures detection system using radio signals
CN103793075A (zh) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 一种应用在智能手表上的识别方法及智能手表

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4848732B2 (ja) * 2005-10-17 2011-12-28 株式会社日立製作所 端末装置
WO2007144878A2 (en) * 2006-06-12 2007-12-21 Cellogic Ltd. Mobile phone system and method
KR101604696B1 (ko) * 2009-08-12 2016-03-18 엘지전자 주식회사 이동 단말기 및 이것의 전원 제어 방법
CN102739847A (zh) * 2011-04-14 2012-10-17 富泰华工业(深圳)有限公司 电子设备及其解锁方法
CN102244699A (zh) 2011-07-29 2011-11-16 惠州Tcl移动通信有限公司 一种用加速度传感器解锁手机屏幕的方法及手机
BR112014007398B1 (pt) * 2011-09-28 2022-04-05 Hewlett-Packard Development Company, L.P Método realizado por um dispositivo eletrônico e dispositivo eletrônico
KR101899812B1 (ko) * 2012-05-14 2018-09-20 엘지전자 주식회사 포터블 디바이스 및 그 제어 방법
US9367098B2 (en) * 2013-02-08 2016-06-14 Htc Corporation Power saving method for handheld mobile electronic device and device using the same
CN103472913B (zh) * 2013-08-26 2016-10-05 沈阳东软熙康医疗系统有限公司 一种腕表屏幕激活方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508594A (zh) * 2011-09-30 2012-06-20 宇龙计算机通信科技(深圳)有限公司 终端和待机界面显示方法
US20140028539A1 (en) * 2012-07-29 2014-01-30 Adam E. Newham Anatomical gestures detection system using radio signals
CN103399811A (zh) * 2013-08-14 2013-11-20 联宝(合肥)电子科技有限公司 当前时间日期和电池电量快速显示方法和系统
CN103793075A (zh) * 2014-02-14 2014-05-14 北京君正集成电路股份有限公司 一种应用在智能手表上的识别方法及智能手表

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2996019A4 *

Also Published As

Publication number Publication date
CN104798029A (zh) 2015-07-22
BR112016003734A2 (pt) 2018-05-15
CN104798029B (zh) 2019-02-12
EP2996019A4 (en) 2016-08-03
US20160104461A1 (en) 2016-04-14
EP2996019B1 (en) 2019-02-27
US9966047B2 (en) 2018-05-08
BR112016003734B1 (pt) 2021-11-03
EP2996019A1 (en) 2016-03-16

Similar Documents

Publication Publication Date Title
WO2015176278A1 (zh) 显示时间的方法和装置
US11079261B2 (en) System on a chip with always-on processor
US10915160B2 (en) System on a chip with fast wake from sleep
US10261894B2 (en) System on a chip with always-on processor which reconfigures SOC and supports memory-only communication mode
CN106233249B (zh) 用于管理睡眠模式的处理器的图形缓冲区的装备和方法
JP6784204B2 (ja) 情報処理装置、情報処理方法及びプログラム
US9885734B2 (en) Method of motion processing and related mobile device and microcontroller unit
US20150362980A1 (en) Always-On Processor as a Coprocessor
CN108563387A (zh) 显示控制方法和装置、终端、计算机可读存储介质
CN106547204A (zh) 一种智能手表及其亮显屏幕的方法
US10175716B2 (en) Technologies for low-power and high-accuracy timestamps
US20160274738A1 (en) Display method using virtual widget and associated device
JPWO2018020792A1 (ja) 情報処理装置、情報処理方法及びプログラム
CN114647294A (zh) 功耗调节方法和装置、电子设备、可读存储介质

Legal Events

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

Ref document number: 2014892463

Country of ref document: EP

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

Ref document number: 14892463

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112016003734

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112016003734

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20160222