ELECTRONIC DEVICE WITH TIME UPDATE FUNCTION AND TIME UPDATE METHOD

Information

  • Patent Application
  • 20120188853
  • Publication Number
    20120188853
  • Date Filed
    July 27, 2011
    13 years ago
  • Date Published
    July 26, 2012
    12 years ago
Abstract
An electronic device with time update function includes a radio module, a clock module, an audio input port, a storage module, and a processing module. The radio module receives and outputs audible signals from the broadcasts of a broadcasting station. The audio input port receives audible sound generated by the radio module, and the clock module provides a source of real time. The processing module determines whether the signals received by the audio input port include current time information, and if so whether the system time is consistent with the current time information. The processing module updates the stored initial time with the current time information and adjusts the system time as necessary. A time update method is also provided.
Description
BACKGROUND

1. Technical Field


The present disclosure relates to electronic devices, and particularly, to an electronic device with a time update function and a method thereof.


2. Description of Related Art


The system time of electronic devices, for example, mobile phones, may become inconsistent with a standard time due to internal and external factors, for example, temperature. The electronic devices often cannot automatically adjust their system time, and this lack of adjustment function needs to be filled.





BRIEF DESCRIPTION OF THE DRAWINGS

Many aspects of the present disclosure should be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.



FIG. 1 is a block diagram of an electronic device in accordance with an exemplary embodiment.



FIG. 2 is a flowchart of a time update method in accordance with an exemplary embodiment.





DETAILED DESCRIPTION

Embodiments of the present disclosure will now be described in detail, with reference to the accompanying drawings.


Referring to FIG. 1, an electronic device 1 with a time update function includes a radio module 10, a clock module 20, a processing module 30, a storage module 40, and an audio input port 50. The radio module 10 receives signals broadcast from a broadcasting station (not shown) and outputs the received broadcast signals as audible sound (audio signals). The audio signals generated by the radio module 10 can be input to the electronic device 1 through the audio input port 50. In this embodiment, the broadcast signals from the station may include current time information which is audible, such as in form of beeps, and the signals of a certain type and frequency which contain the current time information (frequency information) is different from that of audio signals containing no current time information and can be recognized by the processing module 30. The clock module 20 provides a source of real time for the electronic device 1. The clock module 20 may be a real time clock (RTC) oscillator. The storage module 40 stores an initial time. The processing module 30 determines the system time according to the real time provided by the clock module 20 and the stored initial time. The processing module 30 determines whether the audio signals received by the audio input port 50 include current time information according to the frequency information of the audio signals. If the current time information is included, the processing module 30 determines whether the system time of the electronic device 1 is consistent with the current time information received from the broadcasting station, and, if it is inconsistent, replaces the initial time and stores the current time information in its place to adjust the system time. In this embodiment, the processing module 30 can automatically turn on or turn off the radio module 10. In particular, the processing module 30 may automatically turn on the radio module 10 for a predetermined time when the system time is proximate to the hour changing, for example proximate to 9:00 am or pm.



FIG. 2 is a flowchart of a time update method in accordance with an exemplary embodiment.


In step S200, the processing module 30 determines the system time according to the stored initial time and the source of real time in the electronic device.


In step S201, the processing module 30 determines whether the audio signals received by the audio input port 50 include the current time information. If they do, the procedure goes to step S202, otherwise the processing module 30 repeats step S201.


In step S202, the processing module 30 determines whether the system time is consistent with the current time information received. If yes, the procedure returns to step S201, otherwise the procedure goes to step S203.


In step S203, the processing module 30 replaces the initial time with the current time information received, to adjust the system time.


It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.

Claims
  • 1. An electronic device with a time update function, comprising: a radio module configured for receiving signals broadcast from a broadcast station and outputting the received broadcast signals as audible audio signals;an audio input port configured for receiving audio signals generated by the radio module;a clock module configured for providing real time;a storage module configured for storing an initial time; anda processing module configured for determining a system time according to the stored initial time and the real time provided by the clock module, determining whether the audio signals received by the audio input port comprise current time information, and determining whether the system time is consistent with the current time information if the audio signals from the audio input port comprises current time information, the processing module further replacing the initial time with the current time information to adjust the system time if the system time is inconsistent with the current time information.
  • 2. The electronic device as described in claim 1, wherein frequency information of the audio signals comprising current time information is different from that of audio signals containing no current time information and can be recognized by the processing module.
  • 3. The electronic device as described in claim 2, wherein the processing module determines whether the audio signals received from the audio input port comprises current time information according to frequencies information of the audio signals.
  • 4. The electronic device as described in claim 1, wherein the clock module is a real time clock oscillator.
  • 5. The electronic device as described in claim 1, wherein the processing module is further configured for automatically turning on or turning off the radio module.
  • 6. The electronic device as described in claim 5, wherein the processing module turns on the radio module for a predetermined time when the system time is proximate to hour changing.
  • 7. A time update method applied in an electronic device, the electronic device comprising a radio module, a clock module, a storage module, and an audio input port, the radio module receiving and broadcasting broadcast signals from a broadcast station, the audio input port receiving audio signals generated by the radio module, the storage module providing an initial time, the clock module providing real time, the method comprising: determining the system time of the electronic device according to the stored initial time and the real time provided by the clock module;determining whether audio signals received by the audio input port comprise current time information;determining whether the system time of the electronic device is consistent with the current time information if the audio signals comprises current time information; andreplacing the initial time with the current time information to adjust the system time if the system time is inconsistent with the current time information.
Priority Claims (1)
Number Date Country Kind
201110028528.6 Jan 2011 CN national