The present invention relates to an electronic device operating an alarm at an alarm time, an alarm control method, and a recording medium.
Some mobile phones have alarm functions. In the case of using an alarm function of a mobile phone, a user usually selects an item of “clock” from a menu of the mobile phone and makes the mobile phone display an alarm setting screen. Then, in a state where the mobile phone displays the alarm setting screen, the user sets an alarm time on the mobile phone. Due to this, the alarm time is set on the mobile phone. When the time reaches the set alarm time, the mobile phone emits an alarm sound continuously for a predetermined period. In addition, to stop the alarm sound of the mobile phone in the middle, the user operates any of the keys of the mobile phone.
Patent Citations 1 to 3 disclose technologies to increase usability of alarm functions of mobile phones and other electronic devices.
However, in the case of using an alarm function of a mobile phone or other electronic device, the following situation sometime occurs. For example, in the case where an alarm function is used as a wake-up function, the electronic device will emit an alarm sound when the time reaches the set alarm time even if the user of the electronic device has woken up before the set alarm time of the electronic device. In this situation, the user needs to perform an operation to stop the alarm of the electronic device after the alarm sound is emitted and therefore has the bother of dealing with the alarm of the electronic device.
Therefore, an electronic device, an alarm control method, and a recording medium improving the ease of canceling an alarm are desired.
An electronic device of a first aspect of the present invention has an alarm; an alarm execution portion making the alarm execute an alarm operation at a previously set alarm time; and a determination portion determining whether or not an alarm stop condition for stopping in advance the alarm operation by the alarm execution portion in a first period from a predetermined time before the alarm time to the alarm time is satisfied. The alarm execution portion does not operate the alarm at the alarm time in a case where the determination portion determines that the alarm stop condition is satisfied.
Preferably, the electronic device may further have an operation portion, and the alarm execution portion need not operate the alarm at the alarm time in a case where the determination portion determines that the alarm stop condition is satisfied and where the operation portion is operated.
Preferably, the electronic device may further have a program executing portion executing a program, and the determination portion may determine that the alarm stop condition is satisfied in a case where the program executing portion is executing the program.
Preferably, the electronic device may further have a light receiving portion, and the determination portion may determine that the alarm stop condition is satisfied in a case where the light receiving portion receives light over a predetermined value.
Preferably, the electronic device may further have an operation portion, and the determination portion may determine that the alarm stop condition is satisfied in a case where the number of times of operation of the operation portion is a predetermined number or more.
Preferably, the electronic device may further have a control portion, and the control portion may set a power source in an on state when an off state of the power source is detected in the first period.
Preferably, the electronic device may further have a detection portion detecting movement of the electronic device, and the determination portion may determine that the alarm stop condition is satisfied in a case where the detection portion detects movement of the electronic device.
Preferably, the detection portion of the electronic device may have an acceleration sensor, may detect movement of the electronic device based on a detected acceleration of the acceleration sensor, and may detect the predetermined movement of the electronic device in a case where the detected acceleration is a predetermined value or more.
Preferably, the electronic device may further have a positional information acquiring portion acquiring positional information of the electronic device and a positional information memory portion storing the positional information which is previously acquired by the positional information acquiring portion, and the determination portion may determine that the alarm stop condition is satisfied in a case where the positional information previously acquired and stored in the positional information memory portion and the positional information which is acquired by the positional information acquiring portion are different from each other.
Preferably, the positional information acquiring portion of the electronic device may receive signals from GPS satellites and acquire the positional information based on the received signals.
Preferably, the electronic device may further have an alarm event setting portion setting an alarm event designating the alarm time; an alarm event storing portion storing the alarm event; and an alarm event cancellation control portion deleting the alarm event from the alarm event storing portion in a case where the alarm stop condition is determined to be satisfied, and the alarm execution portion may make the alarm execute an alarm operation at a designated time based on the alarm event.
An alarm control method of a second aspect of the present invention is an alarm control method of an electronic device performing an alarm operation. Further, the alarm control method has a determination step for determining whether or not an alarm stop condition for stopping in advance the alarm operation at an alarm time is satisfied in a first period from a predetermined time before the alarm time to the alarm time and a step for preventing an alarm operation from being executed at the alarm time in a case where the alarm stop condition is determined to be satisfied in the determination step.
A recording medium of a third aspect of the present invention is a recording medium recording a program which can be read by a computer of an electronic device connected to an alarm for an alarm operation, the recording medium making the computer execute a determination step for determining whether or not an alarm stop condition for stopping in advance the alarm operation at an alarm time is satisfied in a first period from a predetermined time before the alarm time to the alarm time and a step for preventing the alarm operation from being executed at the alarm time in a case where the alarm stop condition is determined to be satisfied in the determination step.
According to the present invention, it becomes possible to increase the ease of alarm cancellation.
Below, embodiments of the present invention will be explained. In the following explanations, a mobile phone 10 will be explained as an example of an electronic device.
Note that the open state and the closed state of the mobile phone 10 are monitored by a CPU 17 described below. The CPU 17 is able to detect the closed state of the mobile phone 10. Particularly, the CPU 17 monitors whether or not a not-shown detection switch arranged in the lower housing 102 is being pressed by a not-shown projection provided in the upper housing 101, for example. Then, in a case where the mobile phone 10 is closed to press the detection switch downward, the CPU 17 determines the closed state. When the mobile phone 10 is opened and the detection switch is not pressed downwardly, the CPU 17 determines the open state. The open state and the closed state of the mobile phone 10 may be detected by any type of sensor other than a detection switch.
The communication portion 11 communicates wirelessly with not-shown base stations of a wireless communication system. The communication portion 11 sends and receives communication data with another not-shown mobile phone or a server device of the wireless communication system. The communication data of the mobile phone 10 includes, for example, voice sound data for voice conversions, e-mail data for sending or receiving of e-mail, web page data for web browsing, and so on.
The operation portion 12 has a plurality of key switches. The key switches are assigned different types of functions. The key switches function as a power key, a speech key, number keys, character keys, up-, down-, left-, and right-direction keys, and so on. To set an alarm emitting time for using an alarm function of the mobile phone 10, a user operates the keys of the operation portion 12. To set an alarm stop condition for cancellation of an alarm in advance, a user operates the keys of the operation portion 12. When a user operates the keys of the operation portion 12, the operation portion 12 generates signals corresponding to the operated keys and outputs them to the CPU 17.
The voice input/output portion 13 is connected to a speaker 19 and to a microphone 20. The voice input/output portion 13 performs an input/output processing of voice signals output from the speaker 19 and input from the microphone 20. When an analog voice signal is input from the microphone 20, the voice input/output portion 13 amplifies the input analog voice, converts the amplified analog signal to digital data, and executes signal encoding processing of the digital data and so on. In addition, the voice input/output portion 13 outputs the generated signal including digital sound data to the CPU 17. When a signal including digital sound data is input from the CPU 17, the voice input/output portion 13 decodes the input sound data, converts the decoded sound data to an analog signal, and amplifies the voice analog signal. In addition, the voice input/output portion 13 outputs the amplified voice analog signal to the speaker 19. The speaker 19 outputs the voice. Then, the CPU 17 generates sound data of an alarm sound, for example. In this case, the voice input/output portion 13 generates an analog alarm signal and the speaker 19 outputs the alarm sound. As described above, the voice input/output portion 13 and the speaker 19 function as an information portion to inform an alarm when the time reaches an alarm setting time.
The display portion 14 has a LCD (liquid crystal display device) or an organic EL (electro-luminescence) device, for example. The LCD or the organic EL device has a plurality of pixels. The pixels are arranged in a matrix layout. Each pixel has elements for emitting light in a plurality of colors. When the CPU 17 generates display data and when this display data is written in a predetermined area (VRAM area) of the memory portion 16, the display portion 14 reads out the display data from the VRAM area and displays an image corresponding to the display data. Using this, the display portion 14 displays a phone number of a receiver of a wireless call of the communication portion 11, a phone number of a sender of a received call, a received or sent content of an e-mail, a web page, a date, a clock time, a remaining battery power, success or failure of a call, text, a standby screen, and so on. In addition, the display portion 14 displays an alarm setting screen, a selection screen of an alarm stop condition, an alarm screen, and so on.
The imaging portion 15 has a CCD (charge coupled device), CMOS (complementary metal oxide semiconductor) imaging sensor, or other photoelectric conversion element and a control circuit thereof. The imaging portion 15 functions as a camera. In addition, the imaging portion 15, as shown in
The memory portion 16 for example has a nonvolatile semiconductor memory, a hard disk drive, an optical disk drive, or other nonvolatile storage device and for example an SRAM, DRAM, or other random access storage device. The memory portion 16 stores different types of programs which are executed by the CPU 17 at the time of the various processing of the mobile phone 10. In addition, the memory portion 16 stores data used in the different types of processing.
In
The data stored in the memory portion 16 includes alarm data (ALM_DATUM) 41 used in alarm processing for example. The alarm data 41 includes alarm setting data (USER ALM DATA) 42, alarm event data (ALM EVENT DATA) 43, an alarm automatic stop flag (AUTO STOP FLAG) 44, an execution AP flag (Exe AP FLAG) 45, and an alarm sound data file (ALM_SD FILE) 46 including alarm sound data being played as an alarm. The alarm setting data 42 is data which includes information of a setting time of an alarm set by a user. The alarm event data 43 is event data generated based on the alarm setting data 42. The alarm automatic stop flag 44 is flag data which shows a valid or invalid state of alarm automatic stop processing. The execution AP flag 45 is flag data which shows AP programming 32 in execution.
The memory portion 16, in addition to the data shown in
Note that the different types of programs 31 to 37 and data stored in the memory portion 16 and able to be executed by the CPU 17 may be originally recorded in a computer readable recording medium and installed in the mobile phone 10 for example. In addition, the programs 31 to 37 and data may be downloaded from servers via a transmission medium such as the Internet and so on and installed in the mobile phone 10.
The CPU 17 includes a microprocessor or other computer which reads out and processes the programs in the memory portion 16 and functions as a processing portion of the mobile phone 10. The control portion 18 successively reads out and executes operation codes described in the OS program 31 and the AP programs 32 from the memory portion 16. Further, the CPU 17 controls the overall operations of the mobile phone 10. For example, the CPU 17 controls the operations of the circuits 11 to 16 in
In addition, the CPU 17 determines, for example as shown in
As shown in
When the alarm stop condition is satisfied in the pre-sound operation period PBAL, the CPU 17, for example, cancels output of an alarm sound at a scheduled alarm setting time. For example, in a case where an alarm is repeatedly set at the same time each day, the alarm output may be canceled each time the alarm stop condition is satisfied or the repeatedly set alarm outputs may all be halted. Alternatively, the CPU 17 prompts the user to select whether or not to cancel an output of an alarm sound at a scheduled alarm setting time.
Specifically, the alarm stop condition is determined by the different types of determination processing in
The AP execution control portion 171 executes the AP programs 32 stored in the memory portion 16. In addition, the AP execution control portion 171 manages execution states of the AP programs 32. Then, the AP execution control portion 171 informs the main control portion 170 of a state of an alarm stop condition in which at least one of the AP programs 32 is started up based on a user operation as to be started up continuously over a predetermined time in the pre-sound operation period PBAL.
The UI provision portion 172 provides a user interface using the operation portion 12 and the display portion 14 in a case where a user operates the different types of settings. A user uses the user interface provided by the UI provision portion 172 to set the alarm setting time and a valid or invalid state of the alarm automatic stop setting described above, for example. In addition, a user further sets a value of the pre-sound operation period PBAL described above, the type of the AP program 32 used for the determination of a user waking up, an AP program 32 to determine a user waking up, a determination value of continuously startup time thereof, and a threshold value for the light intensity determination.
The main control portion 170 provides interfaces for peripheral circuits such as a communication portion 11, an operation portion 12, a voice input/output portion 13, a display portion 14, an imaging portion 15, a memory portion 16 and so on. The main control portion 170 performs a sequential control, which relates to data hand over processing between the AP execution control portion 171 and the UI provision portion 172, and so on.
In addition, the main control portion 170 executes the different types of processing for emitting an alarm sound at a user alarm setting time. In the first embodiment, the main control portion 170 executes alarm event setting processing for outputting an alarm sound at a user setting time, alarm event executing processing at the alarm setting time, and alarm event canceling processing before the alarm setting time. In addition, in the canceling processing, the main control portion 170 determines whether or not an alarm stop condition is satisfied in the pre-sound operation period PBAL from a predetermined time before the alarm setting time to the alarm setting time. When the alarm stop condition is satisfied in the pre-sound operation period PBAL, the main control portion 170 cancels output of the alarm sound at the alarm setting time, for example. Otherwise, the main control portion 170 makes a user select whether or not to cancel the output of the alarm sound in advance at the alarm setting time by using the user interface of the UI provision portion 172.
Next, control of the alarm function of the mobile phone 10 of the first embodiment having the above mentioned structure will be explained. In the following explanation, user alarm setting processing in
(User Alarm Setting Processing)
When a user sets an alarm, the main control portion 170 makes the AP execution control portion 171 in
In the user alarm setting processing in
When there is a request by the user for setting the alarm, the AP execution control portion 171 executes alarm setting processing (step S2). The AP execution control portion 171 makes the display portion 14 display a screen to input an alarm setting time and so on. In addition, the AP execution control portion 171 acquires input data such as an alarm setting time and so on from the operation portion 12 and stores it in the memory portion 16. Due to this, the alarm setting data 42, pre-sound operation period PBAL, and so on set by the user are stored in the memory portion 16.
After making the memory portion 16 store the alarm setting data 42 and so on, the AP execution control portion 171 further executes the alarm automatic stop setting processing (step S3). The AP execution control portion 171 makes the display portion 14 display a screen to set an automatic stop condition of the alarm addition, the AP execution control portion 171 acquires input data which relates to the need of the alarm automatic stop setting from the operation portion 12 and stores it in the memory portion 16. As a result, the memory portion 16 stores an alarm automatic stop flag 44 which shows a valid or invalid state of the alarm automatic stop process.
(Alarm Event Setting Processing)
In addition, the main control portion 170 periodically and repeatedly executes the processing in
In the alarm event setting processing in
When the alarm is set, the main control portion 170 reads out the alarm setting data 42 from the memory portion 16 and generates an event to output an alarm sound at the setting time (step S12). The main control portion 170 stores the generated alarm event setting time in the memory portion 16. Due to this, the memory portion 16 stores alarm event data 43.
(Alarm Sound Output Processing)
In the alarm event executing processing in
When the present time TP reaches the setting time T(ALM), the main control portion 170 executes the output processing of the alarm sound (step S32). The main control portion 170 reads out the alarm sound data file 46 including alarm audio sound data from the memory portion 16 and outputs an alarm signal to the voice input/output portion 13. The voice input/output portion 13 generates a playback sound signal based on the audio sound data and outputs it to the speaker 19. Due to this the speaker 19 outputs the alarm sound.
After performing the output processing of the alarm sound, the main control portion 170 is in a waiting state for input stopping the alarm sound. The main control portion 170 judges existence of an input signal of a key operation from the operation portion 12 (step S33) and, when no signal is input, further judges whether or not the on-going alarm output is to be ended (step S34). The main control portion 170 repeatedly judges steps from S33 to S34 until a signal of a key operation is input from the operation portion 12 or until judging that the output of the alarm sound is to be ended.
Then, when the input signal of a key operation is judged as being input from the operation portion 12 at step S33, the main control portion 170 outputs a signal for instructing stopping of the alarm to the voice input/output portion 13 (step S35). The voice input/output portion 13 stops the output of the playback sound signal to the speaker 19. Due to this, the speaker 19 ends the output of the alarm sound.
In addition, when a predetermined alarm output period passes and it is determined to end the output of the alarm sound at step S34, for example, the main control portion 170 outputs a signal for stopping the alarm to the voice input/output portion 13 (step S35). Due to this, the speaker 19 stops outputting the alarm sound.
Next, the alarm event canceling processing in
First, referring to the flow chart in
In the alarm automatic canceling processing in
The information of the alarm automatic stop setting used for the judgment at step S42 is previously set at step S3 of
When judging that the alarm automatic stop setting is valid at step S42, the main control portion 170 further judges existence of any alarm event at which the present time TP is included in the pre-sound operation period PBAL (step S43). The main control portion 170 reads out the alarm event data 43 of the memory portion 16 and judges if there is any alarm event at which the present time TP is in the pre-sound operation period PBAL.
When it is judged that there is any alarm event in which the present time TP is in the pre-sound operation period PBAL at step S43, the main control portion 170 performs alarm stop processing and stops the corresponding alarm event (step S44). The main control portion 170 deletes or cancels an alarm event data 43 matching the alarm stop condition from the memory portion 16.
As described above, in the first example of the alarm automatic canceling processing of
Next, while referring to the flow chart in
In the alarm automatic canceling processing in
When the alarm automatic stop setting is judged as valid at step S52, the main control portion 170 further judges whether, or not a determination-use AP program is started up (step S53).
The “determination-use AP program” means an AP program 32 which is able to determine if a user is operating the mobile phone 10. The determination-use AP program may be the mailer program 33, the web browser program 34, the call program 36, the player program 37, and so on to be started up by a user operation, for example. Further, the AP execution control portion 171 sets a predetermined value for the execution AP flag 45 in a case where the determination-use AP program is executed over a predetermined period. Therefore, the main control portion 170, for example, confirms that the execution AP flag 45 is the predetermined value in the pre-sound operation period PBAL so as to judge if that the determination-use AP program is continuously started up for the predetermined period in the pre-sound operation period PBAL.
The determination-use AP program judged at step S53 is previously set at step S3 of
Further, at the second example, a determination time for judging the duration after startup of the determination-use AP program is previously set at step S3 of
Next, the main control portion 170 refers to the predetermined area of the memory portion 16. When judging that the execution AP flag 45 is in the on state, the main control portion 170 further judges whether or not the execution period P(Pro) of the determination-use AP program exceeds the judgment period P1 (step S54).
When it is determined that the execution period P(Pro) of the determination-use AP program exceeds the judgment period P1 at step S54, the main control portion 170 further judges existence of any alarm event at which the present time is included in the pre-sound operation period PBAL (step S55). In addition, even in a case where the execution period P(Pro) of the determination-use AP program does not exceed the judgment period, the main control portion 170 may further judge existence of any alarm event at which the present time is included in the pre-sound operation period PBAL when it is judged that the determination-use AP program is started up.
When the main control portion 170 judges at step S55 that an alarm event at which the present time TP is included in the pre-sound operation period PBAL is set, the main control portion 170 performs alarm stop processing to stop the corresponding alarm event (step S56). The main control portion 170 deletes or cancels the alarm event data 43 matching the alarm stop condition from the memory portion 16, for example.
As described above, in the second example of the alarm automatic canceling processing in
Next, with reference to the flow chart in
In the alarm automatic canceling processing in
When the automatic stop processing is judged to be validly set at step S62, the main control portion 170 further judges existence of any alarm event at which the present time TP is included in the pre-sound operation period PBAL of the alarm event (step S63).
When it is judged that the alarm event at which the present time TP is within the pre-sound operation period PBAL is set at step S63, the main control portion 170 makes the display portion 14 display a user selecting screen with the UI provision portion 172 (step S64). The display portion 14 displays a message such as “Reserved alarm canceled?” and so on. Due to this, the mobile phone 10 prompts a user to input his or her intent by operation of the operation portion 12.
When a user operates the operation portion 12 to input “stop”, the main control portion 170 performs alarm stop processing and stops the corresponding alarm event (step S66). The main control portion 170 deletes or cancels the alarm event data 43 from the memory portion 16.
On the other hand, when it is judged at step S65 that the user has not input “stop”, the main control portion 170 further judges whether or not “change” is input (step S67). Then, when the user operates the operation portion 12 to input “change”, the main control portion 170 reads this through the UI provision portion 172 and performs change processing (step S68).
In the change processing of the step S68, the main control portion 170 makes the display portion 14 display an edit screen by the UI provision portion 172, for example. The edit screen displays for example “30 minutes later”, “60 minutes later”, and other such candidates for the time intervals to be changed to. The user operates the operation portion 12 to select one of the time intervals. The UI provision portion 172 provides information of the time interval selected by the user to the main control portion 170. The main control portion 170 uses the information of the time interval provided by the UI provision portion 172 to change the timing for execution of the alarm event at that time interval.
As described above, in the third example of the alarm automatic canceling processing in
Next, referring to the flow chart in
In the alarm automatic canceling processing of
When it is judged that the alarm automatic stop processing is validly set at step S72, the main control portion 170 further judges whether or not an alarm event at which the present time is within the pre-sound operation period PBAL is set (step S73).
When an alarm event at which the present time TP is within the pre-sound operation period PBAL is set, the main control portion 170 starts up the imaging portion 15 and measures the brightness of the surroundings of the mobile phone 10 (step S74).
When the detected value of the brightness of the surroundings measured at step S74 is determined to be brighter in comparison with a predetermined threshold value, the main control portion 170 deems that the user has woken up and performs alarm stop processing to stop the corresponding alarm event (step S75). To measure the surrounding brightness of the mobile phone 10, it is also possible to perform measurement by only a photo sensor or optical sensor without starting up the imaging portion 15. The main control portion 170 deletes or cancels the alarm event data 43 from the memory portion 16.
As described above, in the fourth example of the alarm automatic canceling processing of
As described above, the mobile phone 10 of the first embodiment executes four types of alarm automatic canceling processing in
In the alarm automatic canceling processing in
Thereafter, the main control portion 170 enters a state waiting for the second and later key inputs. In the stating waiting for the second and later key inputs, the main control portion 170 judges whether or not a timeout time Tout has been exceeded (step S83) and further judges if there is any key operation (step S84). In addition, the main control portion 170 repeats the determination processing of steps S83 to S84 until a key is operated or until the timeout time Tout has elapsed. The timeout time Tout may be a time of about one minute in the pre-sound operation period PBAL, for example. In addition, the timeout time Tout may match with the pre-sound operation period PBAL.
When the timeout time Tout has elapsed, the main control portion 170 ends the alarm automatic canceling processing of
When detecting a second or later key operation before the timeout time Tout has elapsed, the main control portion 170 adds “1” to the loop variable “n” (step S85) and judges whether or not the loop variable “n” has reached a predetermined number of times N (step S86). Then, when it is judged at step S86 that the loop variable “n” has not reached the predetermined number of times N, the main control portion 170 again enters at state waiting for the second or later key inputs. The main control portion 170 repeatedly executes steps S83 to S86.
When it is judged at step S86 that the loop variable “n” has reached the predetermined number of times N, the main control portion 170 judges whether or not an alarm automatic stop setting processing is validly set (step S42) and further judges whether or not an alarm event at which the present time TP is within the pre-sound operation period PBAL is set (step S43). Then, when it is judged at step S43 that an alarm event at which the present time TP within the pre-sound operation period PBAL is set, the main control portion 170 performs alarm stop processing and stops the corresponding alarm event (step S44). The main control portion 170 deletes or cancels the alarm event data 43 matching the alarm stop condition from the memory portion 16, for example.
As described above, in the modified example of the first example of the alarm automatic canceling processing of
Next, control of alarm functions of the mobile phone 10 of the second embodiment having the above-mentioned structure will be explained. The mobile phone 10 of the second embodiment, in the same way as the mobile phone 10 of the first embodiment, executes the user alarm setting processing in
In the alarm automatic canceling processing in
First, the main control portion 170 controls the mobile phone 10 to power it up (step S92). Due to this, the peripheral circuits of the mobile phone 10 operate.
After the mobile phone 10 is started up, the main control portion 170 reads attribute information of the closest alarm event from the alarm event data 43 of the memory portion 16. Then, the main control portion 170 judges whether or not the readout attribute information of the alarm event indicates an alarm with a wakeup attribute (step S93).
When the readout attribute information of the alarm event indicates an alarm with a wakeup attribute, the main control portion 170 detects if the user is walking (step S94). In the detection of walking, the main control portion 170 reads detected data 52 of the acceleration sensor 51 for example.
After detecting existence of movement of the mobile phone 10 at steps S93 and S94, the main control portion 170 judges whether or not walking is detected (step S95). The main control portion 170 judges that the walking is detected in a case where an acceleration value indicated by the detected data 52 exceeds a predetermined value, for example. Note that, unlike the processing in
When not detecting walking, the main control portion 170 executes output processing of an alarm sound (step S96). The main control portion 170 reads out the audio sound data file 46 of the alarm sound from the memory portion 16 and outputs a signal including the audio sound data to the voice input/output portion 13. The voice input/output portion 13 generates a playback sound signal from the audio sound data and outputs it to the speaker 19. Due to this, an alarm sound is output from the speaker 19.
After the output processing of the alarm sound, the main control portion 170 enters a waiting state for input to stop the alarm sound. The main control portion 170 judges whether or not an input signal of a key operation is input from the operation portion 12 (step S98). In a case of no input, the main control portion 170 further judges whether or not to end the output of the alarm sound (step S99). The main control portion 170 repeats the judgment from step S98 to S99 until an input signal of a key operation is input from the operation portion 12 or judging to end the output of the alarm sound.
When it is judged at step S98 that an input signal of a key operation is input from the operation portion 12, the main control portion 170 outputs a signal instructing to stop the alarm to the voice input/output portion 13 (step S100). The voice input/output portion 13 stops the output of the playback sound signal to the speaker 19. Due to this, the speaker 19 ends the output of the alarm sound.
In addition, when for example the predetermined period for emitting an alarm sound ends and the main control portion 170 determines to end the output of the alarm sound at step S99, the main control portion 170 outputs a signal instructing the stopping of the alarm to the voice input/output portion 13 (step S100). The voice input/output portion 13 stops the output of the playback sound signal to the speaker 19. Due to this, the output of the alarm sound from the speaker 19 ends.
On the other hand, when judging that walking is detected at step S95, the main control portion 170 makes the display portion 14 display a screen to inform the user that the output of the alarm sound has been canceled (step S97). In addition, the main control portion 170 ends the alarm event executing processing of
As described above, in the second embodiment, when detecting walking before the alarm sound is emitted, the output of the alarm sound for an alarm of the wakeup attribute is stopped. Therefore, when the user has woken up and is walking, the mobile phone 10 can stop the output of the alarm sound for an alarm of the wakeup attribute.
The GPS receiver 61 receives radio waves output from GPS satellites and calculates the position of the GPS receiver 61. In addition, the GPS receiver 61 outputs a signal including the calculated positional information to the CPU 17. The CPU 17 outputs the input positional information to the memory portion 16. The memory portion 16 stores the positional information as the detected data 52.
Next, the control of the alarm functions of the mobile phone 10 of the third embodiment having the above-mentioned configuration will be explained. The mobile phone 10 of the third embodiment, in the same way as the mobile phone 10 of the second embodiment, executes the user alarm setting processing in
When the present time TP is the sleeping setting time T(SLP), the main control portion 170 acquires positional information of the GPS receiver 61 and stores it in the memory portion 16 (step S112). Due to this, the memory portion 16 stores the detected data 52 of the positional information.
In the alarm automatic canceling processing of
First, the main control portion 170 controls the mobile phone 10 to power it up (step S122). Due to this, the peripheral circuits of the mobile phone 10 operate.
After starting up the mobile phone 10, the main control portion 170 acquires the present positional information from the started up GPS receiver 61 (step S123).
After the present positional information acquiring processing, the main control portion 170 determines whether or not acquisition of either the sleeping positional information or the present positional information has failed (step S124).
When the acquisition of the positional information has not failed, these positional information are compared (step S125).
Then, when the position of the sleeping positional information and the position of the present positional information match, the main control portion 170 executes processing to output the alarm sound (step S126). Specifically, the main control portion 170 reads out the audio sound data file 46 of the alarm sound from the memory portion 16 and outputs a signal including the audio sound data to the voice input/output portion 13. The voice input/output portion 13 generates a playback sound signal from the audio sound data and outputs it to the speaker 19. Due to this, the speaker 19 outputs the alarm sound.
In addition, when acquisition of either the sleeping positional information or the present positional information has failed, the main control portion 170 executes processing for outputting the alarm sound (step S126).
After the processing for outputting the alarm sound, the main control portion 170 enters a state waiting for input to stop the alarm sound. The main control portion 170 judges whether or not an input signal of a key operation from the operation portion 12 is input (step S127) and, in a case where the signal is not input, further judges whether or not to end the output of the alarm sound (step S128). The main control portion 170 repeats the judgment from step S127 to S128 until the input signal of a key operation is input from the operation portion 12 or until it is judged to end the output of the alarm sound.
When it is judged at step S127 that the input signal of a key operation is input from the operation portion 12, the main control portion 170 outputs a signal instructing stopping of the alarm to the voice input/output portion 13 (step S129). The voice input/output portion 13 stops the output of the playback sound signal to the speaker 19. Due to this, the output of the alarm sound from the speaker 19 is ended.
In addition, when the predetermined period for emitting the alarm sound ends and it is judged at step S128 to end the output of the alarm sound, the main control portion 170 outputs a signal instructing stopping of the alarm to the voice input/output portion 13. The voice input/output portion 13 stops the output of the playback sound signal to the speaker 19. Due to this, the output of the alarm sound from the speaker 19 is ended.
On the other hand, when the position indicated by the positional information during sleeping and the position indicated by the present positional information do not match in the position determination of step S125, the main control portion 170 makes the display portion 14 display a screen informing the user of cancellation of the output of the alarm sound (step S130). In addition, the main control portion 170 ends the processing in
As described above, in the third embodiment, the output of an alarm sound is stopped when detecting a change of the positional information before the alarm sound is output. Therefore, when the user wakes up and moves from the sleeping area, the mobile phone 10 can stop the output of the alarm sound. The user-friendliness is therefore improved.
The main control portion 170 of the third embodiment acquires the sleeping positional information in the processing of
In the processing for acquisition of the positional information of
After acquiring the positional information, the main control portion 170 judges whether or not a predetermined time interval Tint has elapsed (step S142).
Then, when a predetermined time interval Tint has elapsed, the main control portion 170 again acquires positional information from the GPS receiver 61 and stores it in the memory portion 16 (step S141). Due to this, the main control portion 170 acquires positional information at each predetermined time interval Tint, and the memory portion 16 stores the plurality of positional information of the predetermined time intervals Tint.
In addition, when the time reaches an alarm event executing time T(IVT), the main control portion 170 executes the processing of
The embodiments described above are preferable embodiments of the present invention. However, the present invention is not limited to them and may be modified or changed in various ways within the gist of the present invention.
For example, the above described embodiments are example of application of the electronic device of the present invention to one type of portable terminal, that is, a mobile phone 10. In addition, however, the electronic device of the present invention may be applied to a PDA (personal digital assistant), a mobile game device, and so on.
In the mobile phone 10 of the embodiments, the CPU 17 realizes the main control portion 170, the AP execution control portion 171, and the UI provision portion 172. In addition, the CPU 17 is used to execute the processing for a user to set the alarm, the processing for setting an alarm event based on a user setting, the alarm processing, the processing for cancellation of the alarm output, and other processing for outputting and canceling alarm sounds. In addition, part or all of the processing for outputting and canceling the alarm sound in the mobile phone 10 may be realized by hardware.
In the mobile phone 10 of the embodiments, the mobile phone 10 generates the alarm sound signal by the voice input/output portion 13 and outputs the alarm sound from the speaker 19. In addition, the mobile phone 10 may display an alarm screen by the display portion 14, and the main control portion 170 may perform the alarm operation at the alarm time by the display portion 14. In addition, the mobile phone 10 may have a vibrator which generates vibration for the alarm operation, and the main control portion 170 may perform the alarm operation at the alarm time by the vibrator.
In the first embodiment shown in
In the second embodiment, the acceleration sensor 51 is added to the mobile phone 10, and predetermined motion of the mobile phone 10 by a user is detected based on the detection of this acceleration sensor 51 over the predetermined value. In addition, a geomagnetic sensor can be added to the mobile phone 10, and predetermined motion of the mobile phone 10 by a user may be detected based on a change of the detected direction of the geomagnetic sensor. In addition, an inclination sensor can be added to the mobile phone 10, and predetermined motion of the mobile phone 10 by a user may be detected based on a change of the inclination detection value of this inclination sensor. In addition, a contact sensor can be added to the mobile phone 10, and predetermined motion of the mobile phone 10 by a user may be detected based on a change of the contact state between this contact sensor and another portion. In addition, the main control portion 170 may determine that there has been predetermined motion of the mobile phone 10 when a predetermined detection state continues for at least a predetermined time rather than from single detection values of these sensors.
Number | Date | Country | Kind |
---|---|---|---|
2008-080049 | Mar 2008 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | 12934622 | Nov 2010 | US |
Child | 14319979 | US |