Portable apparatus and determination method

A disclosed portable apparatus includes: a first touch switch that is installed on a first surface of a housing of the portable apparatus; a second touch switch that is installed on a second surface of the housing, which is opposite to the first surface; and a determination unit configured to determine whether or not the first surface and the second surface are simultaneously touched, based on outputs of the first touch switch and the second touch switch. The portable apparatus may further include a first controller configured to release a lock function upon determining that the first surface and the second surface are simultaneously touched, and to activate the lock function upon determining that the first surface and the second surface are not simultaneously touched.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2013-021056, filed on Feb. 6, 2013, the entire contents of which are incorporated herein by reference.

FIELD

This invention relates to a technique for determining a holding state of a device.

BACKGROUND

A certain patent document discloses a cellular phone to set key lock or not to release the key lock regardless of the intention of the user. This cellular phone has two touch switches . The two touch switches are provided on the same surface, and the cellular phone distinguishes “ON” and “OFF” of the key lock setting by the sequence of touching. In other words, when the user sets “ON” as the key lock setting, the user performs a slide touch operation in a predetermined direction, and when the user sets “OFF” as the key lock setting, the user performs a slide touch operation in another direction.

This technique premises that the user normally holds the cellular phone, however, even if the user does not normally hold the cellular phone, when any portion of the human body touches the touch switch, the cellular phone detects an operation relating to the key lock. Therefore, the cellular phone may perform an operation in contradiction to the user's intention.

Another prior document discloses a technique for controlling so as not to change the direction of an object on a display screen of a portable terminal with a camera even when at least one housing of the portable terminal is rotated in a state where the object is displayed on the display screen of the portable terminal. This portable terminal determines the direction of the display screen by an angle of a hinge that couples the housing including the display screen with the housing including the camera to rotate the image including the object.

In this technique, because the direction of the display screen is determined based on the relationship between the housing including the display screen and the housing including the camera, the direction of the display screen is not identified, when the user does not fixedly have the housing including the camera.

As an aspect, an object of this invention is to determine whether or not the user holds a portable apparatus.

SUMMARY

A portable apparatus relating to this invention includes: a first touch switch that is installed on a first surface of a housing of the portable terminal; a second touch switch that are installed on a second surface of the housing, which is opposite to the first surface; and a determination unit configured to determine whether or not the first surface and the second surface are simultaneously touched, based on outputs of the first touch switch and the second touch switch.

DESCRIPTION OF EMBODIMENTS

A housing of a cellular phone terminal relating to this embodiment has plural touch switches.

FIG. 1is an oblique diagram of the cellular phone terminal. The cellular phone terminal100is an example of the portable apparatuses. A touch switch101bis installed on the right side of the cellular phone terminal100. A touch switch101dis installed on the bottom side of the cellular phone terminal100. A proximity sensor103is installed on the front of the cellular phone terminal100. The proximity sensor103detects an adjacent object if it exists. In this example, the proximity sensor103is installed on upper right of the front side, however, may be provided on another portion. A display surface105is also installed on the front of the cellular phone terminal100. Keys107ato107care arranged on the lower portion in front of the cellular phone terminal100.

FIG. 2is another oblique diagram of the cellular phone terminal100. A touch switch101ais installed on the left side of the cellular phone terminal100. A touch switch101cis installed on the top side of the cellular phone terminal100. The proximity sensor103, display surface105and keys107ato107care the same as those inFIG. 1.

Next, various states where the cellular phone terminal100is held will be explained. First, a state will be explained in which the user holds the cellular phone terminal100with one hand in the vertical direction.FIG. 3illustrates a state in which the cellular phone terminal100is grasped. More specifically, the cellular phone terminal100is grasped with the left hand. In this state, the thumb touches the touch switch101a. Furthermore, the forefinger to the little finger touch the touch switch101b. Therefore, the touch switch101aand touch switch101bdetect a touched state (hereinafter, referred to “ON”) , and the touch switch101cand touch switch101ddetect an untouched state (hereinafter, referred to “OFF”) . When the cellular phone terminal100is grasped with the right hand, the touch switch101aand touch switch101bsimilarly detect “ON”, and the touch switch101cand touch switch101ddetect “OFF”.

Next, a state will be explained in which the user holds the cellular phone terminal100with both hands sideways.FIG. 4illustrates a state in which the cellular phone terminal100is grasped. In this state, the left hand touches the touch switch101c, and the right hand touches the touch switch101d. Therefore, the touch switch101cand touch switch101ddetect “ON”, and the touch switch101aand touch switch101bdetect “OFF”.

Next, a state will be explained in which the user holds the cellular phone terminal100with one hand sideways.FIG. 5illustrates a state in which the cellular phone terminal100is grasped. The forefinger touches the touch switch101a, and the palm touches the touch switch101d, and the thumb touches the touch switch101b. Therefore, the touch switch101a, touch switch101band touch switch101ddetect “ON”, and the touch switch101cdetects “OFF”.

When passing the cellular phone terminal100from the left hand to the right hand, the forefinger touches the touch switch101a, and the palm touches the touch switch101c, and the thumb touches the touch switch101b. Therefore, the touch switch101a, touch switch101band touch switch101cdetect “ON”, and the touch switch101ddetects “OFF”.

Next, a hardware configuration of the cellular phone terminal100will be explained.FIG. 6illustrates a hardware configuration example of the cellular phone terminal100. The cellular phone terminal100has a processor601, memory unit603, antenna611, wireless communication controller613, audio controller615, speaker617, microphone619, display unit621, touch pad623, keys625, touch switches627, battery629, vibration device631and proximity sensor103.

The processor601may include a modem Central Processing Unit (CPU) and application CPU. The memory unit603has a Read Only Memory (ROM)605, Random Access Memory (RAM)607and flash memory609. The ROM605stores programs such as application programs. The RAM607includes an area in which programs such as application programs are expanded, for example. The flash memory609stores user data, for example.

The touch pad623is a planar sensor disposed on the display screen of the display unit621, for example, and accepts an instruction by a touch operation. The display unit621displays various screens instructed by the application programs, for example. More specifically, the touch panel implemented by combining the display unit621and touch pad623is used. The touch pad623is an example of pointing devices.

The antenna611receives wireless data in cellular method, wireless Local Area Network (LAN) type, near field communication method or the like. The wireless communication controller613controls the wireless communication. By controlling the wireless communication, voice communication for call and data communication for mail are performed.

The audio controller615performs analog-digital conversion and digital-analog conversion for sound data. The speaker617outputs sounds as analog data. The microphone619converts sounds to analog data.

The keys625correspond to the aforementioned keys107ato107c. The touch switches627correspond to the aforementioned touch switches101ato101d. The battery629supplies the power to each device illustrated inFIG. 6. The vibration device631is used for notification by vibration.

Next, a program module configuration relating to this embodiment will be explained.FIG. 7illustrates a program module configuration example of the cellular phone terminal100. In this embodiment, the cellular phone terminal100has an event obtaining unit701, a first determination unit703and a lock controller705. The event obtaining unit701obtains events. The first determination unit703determines modes relating to this embodiment. The lock controller705controls a lock function.

Next, a processing in this embodiment will be explained.FIG. 8illustrates an entire processing flow. The event obtaining unit701obtains a switch event (S801). The first determination unit703performs a first determination processing A (S803). However, the first determination processing (B to D) that will be explained later may be performed.

FIG. 9illustrates a processing flow of the first determination processing A. The first determination unit703determines whether or not a present state is a state in which the touch switch101aand touch switch101bdetect “ON”, and the touch switch101cand touch switch101ddetect “OFF” (S901).

In other words, the first determination unit703determines by using a detection result of the touch switch101awhether or not the left side is touched, and determines by using a detection result of the touch switch101b, whether or not the right side is touched, similarly to the left side. Moreover, the first determination unit703determines by using a detection result of the touch switch101cwhether or not the top side is touched, and also determines by using a detection result of the touch switch101d, whether or not the bottom side is touched.

When it is determined that the present state is the state in which the touch switch101aand touch switch101bdetect “ON”, and the touch switch101cand touch switch101ddetect “OFF”, the first determination unit703determines that the present mode is a second mode (S903), and the processing returns to the calling-source processing. The second mode represents a state in which it is presumed that the cellular phone terminal100is grasped. This state corresponds to the state illustrated inFIG. 3.

On the other hand, when it is determined that the present state is not a state in which the touch switch101aand touch switch101bdetect “ON”, and the touch switch101cand touch switch101ddetect “OFF”, the first determination unit703determines whether or not the touch switch101cand touch switch101ddetect “ON”, and the touch switch101aand touch switch101bdetect “OFF”(S905). When it is determined that the present state is a state in which the touch switch101cand touch switch101ddetect “ON”, and the touch switch101aand touch switch101bdetect “OFF”, the first determination unit703determines that the present mode is the second mode (S903), and the processing returns to the calling-source processing. This state corresponds to the state illustrated inFIG. 4.

On the other hand, when it is determined that the present state is not a state in which the touch switch101cand touch switch101ddetect “ON”, and the touch switch101aand touch switch101bdetect “OFF”, the first determination unit703determines whether or not the present state is a state in which the touch switch101a, touch switch101band touch switch101cdetect “ON”, and the touch switch101ddetects “OFF” (S907). When it is determined that the present state is a state in which the touch switch101a, touch switch101band touch switch101cdetect “ON”, and the touch switch101ddetects OFF, the first determination unit703determines that the present mode is the second mode (S903), and the processing returns to the calling-source processing. This state corresponds to a state illustrated inFIG. 5, in which the cellular phone terminal100is passed from the left hand to the right hand.

On the other hand, when it is determined that the present state is not a state in which the touch switch101a, touch switch101band touch switch101cdetect “ON”, and the touch switch101ddetects “OFF”, the first determination unit703determines whether or not the present state is a state in which the touch switch101a, touch switch101band touch switch101ddetect “ON”, and the touch switch101cdetects “OFF” (step S909). When it is determined that the present state is a state in which the touch switch101a, touch switch101band touch switch101ddetect “ON”, and the touch switch101cdetects “OFF”, the first determination unit703determines that the present mode is the second mode (S903), and the processing returns to the calling-source processing. This state corresponds to the state illustrated inFIG. 5.

On the other hand, when it is determined that the present state is not a state in which the touch switch101a, touch switch101band touch switch101ddetect “ON”, and the touch switch101cdetects “OFF”, the first determination unit703determines that the present mode is a first mode (S911), and the processing returns to the calling-source processing. The first mode represents a state in which it is presumed that the cellular phone terminal100is not grasped.

When the first determination processing A ends, the processing returns to S805inFIG. 8.

Returning to the explanation of the entire processing flow inFIG. 8, the lock controller705determines whether the determination result represents the first mode or second mode (S805) . When it is determined that the determination result represents the first mode, the lock controller705determines whether or not the lock has been set (S807). When it is determined that the lock has not been set, the lock controller705performs a lock setting processing (S809), and the processing then returns to S801. With this processing, the cellular phone terminal100becomes in a state “being locked”. When it is determined that the lock has been set, the processing returns to S801.

When it is determined at S805that the determination result represents the second mode, the lock controller705determines whether or not the lock has been unlocked (step S811). When it is determined that the lock has not been unlocked, the lock controller705performs an unlock processing (S813), and the processing returns to S801. With this processing, the cellular phone terminal100becomes in a state “being unlocked”. On the other hand, when it is determined that the lock has been unlocked, the processing returns to S801. The lock controller705may display a screen for inputting a password before the unlock processing (S813), and may perform the unlock processing when the user is authenticated by the received password.

According to this embodiment, by detecting whether or not at least two opposite surfaces of the housing such as the left and right surfaces or top and bottom surfaces are simultaneously touched, it is possible to determine whether or not the cellular phone terminal100is grasped by the user.

Thus, because the lock function is released when the portable terminal is grasped by the user, it is possible to make the release operation by the user unnecessary and for the user to use the portable terminal soon when grasping the portable terminal.

Therefore, when the cellular phone terminal100is released, the cellular phone terminal100is automatically locked, and the security is always secured.

In this embodiment, an example will be explained that the mode determination is performed by using the proximity sensor103. In this example, when detecting an adjacent object, it is presumed that the portable terminal is in an unused state such as in a pocket, and it is determined that the portable terminal is in the first mode.

The module configuration is as illustrated inFIG. 7.

Next, a processing in this embodiment will be explained.FIG. 10illustrates a first determination processing B. When it is determined at S901that the touch switch101aand touch switch101bdetect “ON” and the touch switch101cand touch switch101ddetect “OFF”, the first determination unit703determines whether or not the proximity sensor103senses any object (S1001). When it is determined that the proximity sensor103does not sense any object, the first determination unit703determines that the present mode is the second mode (S1003), and the processing returns to the calling-source processing. On the other hand, when it is determined that the proximity sensor103senses any object, the first determination unit703determines that the present mode is the first mode (S1005), and the processing returns to the calling-source processing.

When it is determined at S905that the present state is the state that the touch switch101cand touch switch101ddetect “ON” and the touch switch101aand touch switch101bdetect “OFF”, the processing shifts to a processing of S1001, similarly to the aforementioned case.

In addition, when it is determined at S907that the present state is the state that the touch switch101a, touch switch101band touch switch101cdetect “ON”, and the touch switch101ddetects “OFF”, the processing shifts to the processing of S1001, similarly to the aforementioned case.

When it is determined at S909that the present state is the state that the touch switch101a, touch switch101band touch switch101ddetect “ON” and the touch switch101cdetects “OFF”, the processing shifts to the processing of S1001, similarly to the aforementioned case. Other processing is the same as that inFIG. 9.

According to this embodiment, it is presumed that the portable terminal is in an unused state such as in a pocket, and it is possible to handle the unused state similarly to the state that the cellular phone terminal100is not grasped.

In this embodiment, an example will be explained that the touch switch101cand touch switch101dare omitted.

FIG. 11illustrates a front view of a cellular phone terminal100relating to the third embodiment. The touch switch101ais installed at the left side, similarly to that in the first embodiment. Moreover, the touch switch101bis installed at the right side, similarly to that in the first embodiment. However, the aforementioned touch switch101cis not installed at the top side. Furthermore, the aforementioned touch switch101dis not also installed at the bottom side.

The module configuration is as illustrated inFIG. 7.

Next, a processing in this embodiment will be explained.FIG. 12illustrates a first determination processing C. The first determination unit703determines whether or not the present state is a state that the touch switch101aand touch switch101bdetect “ON” (S1201). When it is determined that the present state is the state that the touch switch101aand touch switch101bdetect “ON”, the first determination unit703determines that the present mode is the second mode (S1203). When it is determined that the present state is not the state that the touch switch101aand touch switch101bdetect “ON”, the first determination unit703determines that the present mode is the first mode (S1205).

In this example, the touch switch101cand touch switch101dare omitted. However, the touch switch101aand touch switch101bmay be omitted. In such a case, at the S1201of the first determination processing C, the first determination unit703determines whether or not the present state is a state that the touch switch101cand touch switch101ddetect “ON”. When it is determined that the present state is the state that the touch switch101cand touch switch101ddetect “ON”, the first determination unit703determines at S1203that the present mode is the second mode. When it is determined that it is not in the state that the touch switch101cand touch switch101ddetect “ON”, the first determination unit703determines at S1205that the present mode is the first mode.

According to this embodiment, by detecting whether or not two opposite surfaces of the housing are touched, it is possible to determine whether or not the cellular phone terminal100is grasped by the user.

In this embodiment, an example will be explained that the touch switch101is installed on the rear surface.

FIG. 13illustrates a rear view of the cellular phone terminal100relating to the fourth embodiment. A touch switch101eis installed on the rear surface of the cellular phone terminal100.

The module configuration is as illustrated inFIG. 7.

Next, a processing in this embodiment will be explained.FIG. 14illustrates a first determination processing D. The first determination unit703determines whether or not it is in a state that the touch switch101a, touch switch101band touch switch101edetect “ON”(S1401). When it is determined that the present sate is the state that the touch switch101a, touch switch101band touch switch101edetect “ON”, the first determination unit703determines that the present mode is the second mode (S1403). When it is determined that the present sate is not the state that the touch switch101a, touch switch101band touch switch101edetect “ON”, the first determination unit703determines that the present mode is the first mode (S1405).

As illustrated inFIGS. 3 to 5, in a state that the user grasps the cellular phone terminal100, this example pays attention to the fact that the rear surface is also touched. In other words, when the rear surface is not touched, it is presumed that it is in the state that the user does not grasp the cellular phone terminal100. Therefore, when the touch switch101edetects “OFF” as described above, it is determined that the present mode is the first mode instead of the second mode.

In this example, the touch switch101eis added based on the third embodiment. However, the touch switch101emay be added based on the first embodiment.

According to this embodiment, by detecting whether or not the rear surface is simultaneously touched, it is possible to presume the grasped state.

In this embodiment, an example will be explained that the lock is set after a predetermined time elapsed since the first mode was detected.

The module configuration is as illustrated inFIG. 7.

Next, a processing in this embodiment will be explained.FIG. 15illustrates an entire processing flow relating to the fifth embodiment. The processing at S801and S803is similar to that inFIG. 8.

The lock controller705determines whether the determination result represents the first mode or the second mode (S1501). When it is determined that the determination result represents the first mode, the lock controller705determines whether or not the timer is operating (S1503). The timer is used to measure the elapsed time since the first mode was detected. When it is determined that the timer is not operating, the lock controller705begins the operation of the timer (S1505), and the processing shifts to a processing of S1507. When it is determined that the timer is operating, the processing directly shifts to the processing of S1507.

The lock controller705determines whether or not the predetermined time elapsed since the first mode was detected (S1507). When it is determined that the predetermined time does not elapse since the first mode was detected, the processing returns to S801, and the aforementioned processing is repeated.

When it is determined that the predetermined time elapsed since the first mode was detected, the lock controller705ends the operation of the timer (S1509). Then, the lock controller705determines whether or not the lock has been set (S1511). When it is determined that the lock has been set, the processing returns to S801. When it is determined that the lock is not set, the lock controller705performs a lock setting processing (S1513), and the processing returns to the processing of S801. By this processing, the cellular phone terminal100becomes in a locked state.

When it is determined at S1501that the determination result represents the second mode, the lock controller705determines whether or not the lock is released (S1515). When it is determined that the lock is released, the processing returns to S801. When it is determined that the lock is not released, the lock controller705performs the lock release processing (S1517), and ends the operation of the timer (S1519). Then, the processing returns to S801.

According to this embodiment, the lock is set after the predetermined time elapsed since the first mode was detected. Therefore, the frequent lock control operations are prevented.

In this embodiment, an example will be explained that, in a state that the cellular phone terminal100is not grasped, the supply of the power is suppressed.

A module configuration relating to this embodiment will be explained.FIG. 16illustrates an example of the module configuration of a cellular phone terminal100relating to the sixth embodiment. The event obtaining unit701and first determination unit703are as illustrated inFIG. 7. The cellular phone terminal100in this embodiment has a battery controller1601. The battery controller1601controls the power supply by the battery629. More specifically, the battery controller1601performs a processing for suspending the power supply to portions of the cellular phone terminal100from the battery629, and a processing for resuming the restart of the suspended power supply. The battery controller1601may suspend and resume the power supply to the display unit621, for example.

Next, a processing in this embodiment will be explained.FIG. 17illustrates an entire processing flow relating to the sixth embodiment. The event obtaining unit701obtains a switch event (S1701), and the first determination unit703performs the first determination processing (S1703), which is a similar processing described above. The first determination processing may be either of the aforementioned first determination processing A to D.

The battery controller1601determines whether the determination result represents the first mode or second mode (S1705). When it is determined that the determination result represents the first mode, the battery controller1601determines whether or not the power supply is partially suspended (S1707). When it is determined that the power supply is not partially suspended, the battery controller1601performs a processing for partially suspending the power supply (S1709). When the power supply is partially suspended, the processing returns to the processing of S1701.

When it is determined at S1705that the determination result represents the second mode, the power controller1601determines whether or not the power supply is partially suspended (S1711). When it is determined that the power supply is partially suspended, the battery controller1601performs a processing for resuming the power supply, which is partially suspended (S1713). When it is determined that the power supply is not partially suspended, the processing returns to the processing of S1701.

According to this embodiment, when the cellular phone terminal100is released, the power supply is automatically suspended, and the power saving is always performed.

In this embodiment, an example will be explained that the power supply is partially suspended after a predetermined time elapsed since the first mode was detected.

The module configuration is as illustrated inFIG. 16.

Next, a processing in this embodiment will be explained.FIG. 18illustrates an entire processing flow relating to the seventh embodiment. Similarly toFIG. 17, the event obtaining unit701obtains the switch event (S1701), and the first determination unit703performs a first determination processing (S1703). Any one of the first determination processing A to D may be employed.

Then, the battery controller1601determines whether the determination result represents the first mode or second mode (S1801). When it is determined that the determination result represents the first mode, the battery controller1601determines whether or not the timer is operating (S1803). The timer is used to measure the elapsed time since the first mode was detected, similarly to the aforementioned embodiment. When it is determined that the timer is not operating, the battery controller1601begins the operation of the timer (S1805), and the processing shifts to a processing of S1807. When it is determined that the timer is operating, the processing directly shifts to the processing of S1807.

The battery controller1601determines whether or not the predetermined time elapsed since the first mode was detected (S1807). When it is determined that the predetermined time does not elapse since the first mode was detected, the processing returns to the S1701, and the aforementioned processing is repeated.

When it is determined that the predetermined time elapsed since the first mode was detected, the battery controller1601ends the operation of the timer (S1809). Then, the battery controller1601determines whether or not the power supply is partially suspended (S1811). When it is determined that the power supply is partially suspended, the processing returns to the processing of S1701. On the other hand, when it is determined that the power supply is not partially suspended, the battery controller1601performs a processing for partially suspending the power supply (S1813), and the processing returns to the processing of S1701.

On the other hand, when it is determined at the S1801that the determination result represent the second mode, the battery controller1601determines whether or not the power supply is partially suspended (S1815). When it is determined that the power supply is not partially suspended, the processing returns to the S1701. On the other hand, when it is determined that the power supply is partially suspended, the battery controller1601resumes the power supply, which is partially suspended (S1817), and ends the operation of the timer (S1819). Then, the processing returns to the processing of S1701.

According to this embodiment, because the lock is set after the predetermined time elapsed since the first mode was detected, the frequent battery control operation is prevented.

In this embodiment, an example will be explained that no operation event is accepted in a state that the cellular phone terminal100is not grasped.

A module configuration relating to this embodiment will be explained.FIG. 19illustrates an example of the module configuration of the cellular phone terminal100relating to the eighth embodiment. The event obtaining unit701and first determination unit703are similar to those inFIGS. 7 and 16. The cellular phone terminal100relating to this embodiment has an event transfer unit1901and application unit1903. In this embodiment, the event obtaining unit701obtains an operation event from the touch pad623and keys625in addition to the events from the touch switches101ato101d. The operation event is an event to be transferred to the application unit1903in a normal state. The event transfer unit1901performs a processing to transfer or discard the operation event obtained by the event obtaining unit701to the application unit1903according to the mode determined by the first determination unit703. The application unit1903performs an application processing in response to the operation event.

Next, a processing in this embodiment will be explained.FIG. 20illustrates an entire processing flow relating to the eighth embodiment. The event obtaining unit701waits for an occurrence of the key event or touch panel event (S2001). When the key event or touch panel event occurs, the event obtaining unit701obtains the switch event (S2003). The first determination unit703performs the first determination processing similar to the aforementioned embodiment (S2005). The event transfer unit1901determines whether the determination result represents the first mode or second mode (S2007). When it is determined that the determination result represents the first mode, the event transfer unit1901discards the key event or touch panel event without transferring to the application unit1903(S2009). When it is determined that the determination result represents the second mode, the event transfer unit1901transfers the event to the application unit1903(S2011). Then, the processing returns to the S2001.

In this example, an example was explained that the operation event to be transferred to the application unit1903was discarded, however, the operation event to be transferred to the operating system executed on the cellular phone terminal100may be discarded.

According to this embodiment, the operation when the user does not grasp is invalidated, so it is possible to prevent from performing malfunction by unintentional operation.

In this embodiment, an example will be explained that an alarm is stopped in a state that the cellular phone terminal100is not grasped.

Next, a module configuration relating to this embodiment will be explained.FIG. 21illustrates an example of the module configuration relating to the ninth embodiment. The event obtaining unit701and first determination unit703are similar to those inFIG. 7. The cellular phone terminal100in this embodiment has a notification unit2101. The notification unit2101performs a notification processing activated by receiving a call or e-mail, for example, or wake-up function. A method of the notification includes sounds such as alarm sounds or ring or display and/or vibration that are other than the sounds.

Next, a processing in this embodiment will be explained.FIG. 22illustrates an entire processing flow relating to the ninth embodiment. The notification unit2101determines whether or not the event to be notified by sounds is valid (S2201). For example, when it is the wake-up time, this event becomes valid. Moreover, until a stop instruction of the notification is made or a notification period elapsed, the state that the event is valid continues. When receiving the call, this event becomes valid. In case of receiving the call, the state that the event is valid may continue until the rejection of the call is instructed or the user responds to the call.

When the event to be notified by sounds is not valid, the determination processing of S2201is repeated.

When it is determined that the event to be notified by sounds is valid, the event obtaining unit701obtains the switch event as described in other embodiments (S2203). Furthermore, the first determination unit703performs the first determination processing (S2205). Any one of the first determination processing A to D may be employed.

The notification unit2101determines whether the determination result represents the first mode or second mode (S2207). When it is determined that the determination result represents the first mode, the notification unit2101performs the notification processing by sounds (S2209). The notification unit2101outputs the notification sounds from the speaker617.

On the other hand, when it is determined that the determination result represents the second mode, the notification unit2101performs a silent-mode processing. In other words, the notification unit2101stops the notification by sounds. For example, the notification unit2101may display the notification contents on the display unit621, or make the vibration device631vibrate.

According to this embodiment, when the cellular phone terminal is grasped, the notification sounds such as alarm sounds or ring are stopped.

In this embodiment, an example will be explained that a direction of the display is changed based on the detection result of the touch switches101ato101d.

Next, the module configuration relating to this embodiment will be explained.FIG. 23illustrates an example of the module configuration of the cellular phone terminal100relating to the tenth embodiment. The event obtaining unit701is as illustrated inFIG. 7. The cellular phone terminal100in this embodiment has a second determination unit2301and display controller2303. The second determination unit2301determines the aforementioned mode and the direction of the cellular phone terminal100. The display controller2303controls the display direction on the display unit621and the like.

Next, a processing in this embodiment will be explained.FIG. 24illustrates an entire processing flow relating to the tenth embodiment. The second determination unit2301performs a second determination processing (S2401).

FIG. 25illustrates a flow example of the second determination processing. The second determination unit2301determines whether or not the present state is a state that the touch switch101aand touch switch101bdetect “ON”, and the touch switch101cand touch switch101ddetect “OFF” (S2501). When it is determined that the present state is the state that the touch switch101aand touch switch101bdetect “ON”, and the touch switch101cand touch switch101ddetect “OFF”, the second determination unit2301determines that the present mode is the second mode and the direction of the cellular phone terminal100is “vertical” (S2503), and the processing returns to the calling-source processing. This state corresponds to the state as illustrated inFIG. 3.

On the other hand, when it is determined that the present state is not the state that the touch switch101aand touch switch101bdetect “ON” and the touch switch101cand touch switch101ddetect “OFF”, the second determination unit2301determines whether or not the present state is a state that the touch switch101cand touch switch101ddetect “ON” and the touch switch101aand touch switch101bdetect “OFF” (S2505). When it is determined that it is in the state that the touch switch101cand touch switch101ddetect “ON” and the touch switch101aand touch switch101bdetect “OFF”, the second determination unit2301determines that the present mode is the second mode and the direction of the cellular phone terminal100is “horizontal” (S2507), and the processing returns to the calling-source processing. This state corresponds to the state as illustrated inFIG. 4.

On the other hand, when it is determined that the present state is not the state that the touch switch101cand touch switch101ddetect “ON”, and the touch switch101aand touch switch101bdetect “OFF”, the second determination unit2301determines whether or not it is in a state that the touch switch101a, touch switch101band touch switch101cdetect “ON” and the touch switch101ddetects “OFF” (S2509). When it is determined that the present state is a state that the touch switch101a, touch switch101band touch switch101cdetect “ON” and the touch switch101ddetects “OFF”, the second determination unit2301determines that the present mode is the second mode, and the direction of the cellular phone terminal100is “horizontal” (S2507), and the processing returns to the calling-source processing. This state corresponds to the state that the cellular phone terminal100is passed to the right hand as illustrated inFIG. 5.

On the other hand, when it is determined that the present state is not the state that the touch switch101a, touch switch101band touch switch101cdetect “ON” and the touch switch101ddetects “OFF”, the second determination unit2301determines whether or not the present state is a state that the touch switch101a, touch switch101band touch switch101ddetect “ON” and the touch switch101cdetects “OFF” (S2511). When it is determined that the present state is a state that the touch switch101a, touch switch101band touch switch101ddetect “ON” and the touch switch101cdetects “OFF”, the second determination unit2301determines that the present mode is the second mode, and the direction of the cellular phone terminal100is “horizontal” (S2507), and the processing returns to the calling-source processing. This state corresponds to the state as illustrated inFIG. 5.

On the other hand, when it is determined that the present state is not a state that the touch switch101a, touch switch101band touch switch101ddetect “ON” and the touch switch101cdetects “OFF”, the second determination unit2301determines that the present mode is the first mode (S2513), and the processing returns to the calling-source processing.

Returning to the explanation of the entire processing flow illustrated inFIG. 24, the display controller2303determines whether or not the mode in the determination result is the second mode (S2403). When it is determined that the present mode is not the second mode, the processing returns to the processing of S2401.

On the other hand, the display controller2303determines whether the direction of the cellular phone terminal100is “vertical” or “horizontal” (S2405). When it is determined that the direction of the cellular phone terminal100is “vertical”, the display controller2303determines whether or not the display is being performed vertically on the display unit621(S2407). When it is determined that the display is being performed vertically, the processing returns to the processing of S2401. When it is determined that the display is not performed vertically, the display controller2303changes the direction of the display on the display unit621to the vertical direction (S2409).

When it is determined at S2405that the direction of the cellular phone terminal100is “horizontal”, the display controller2303determines whether or not the display is being performed horizontally on the display unit621(S2411). When it is determined that the display is being performed horizontally on the display unit621, the processing returns to the processing of S2401. When it is determined that the display is not performed horizontally on the display unit621, the display controller2303changes the direction of the display on the display unit621to the horizontal direction (S2413).

Accordingly, by detecting whether or not the top side and bottom side, which are other than the right and left surfaces, are touched simultaneously, it is possible to presume the grasped mode. Therefore, it is possible to presume the direction of the cellular phone terminal100.

Whether or not either of the aforementioned entire processing flows is executed may be set by a user in advance. Moreover, in response to the user's instruction, a case where either of the aforementioned entire processing flows is executed and a case where any of the aforementioned entire processing flows is not executed may be switched each time.

Although the embodiments of the invention were explained above, this invention is not limited to those embodiments. For example, the aforementioned functional block configurations may not always correspond to program module configurations.

Moreover, the configurations of the storage areas are mere examples, and may be changed. Furthermore, as for the processing flow, as long as the processing results do not change, the turns of the steps may be exchanged, and plural steps may be executed in parallel.

The aforementioned embodiments are outlined as follows:

A disclosed portable apparatus relating to the embodiments includes: a first touch switch that is installed on a first surface of a housing of the portable apparatus; a second touch switch that are installed on a second surface of the housing, which is opposite to the first surface; and a determination unit configured to determine whether or not the first surface and the second surface are simultaneously touched, based on outputs of the first touch switch and the second touch switch.

Thus, by detecting whether or not the two opposite surfaces in the housing are simultaneously touched, it is possible to determine whether or not the portable apparatus is grasped by the user.

Moreover, the portable apparatus may further include a third touch switch that is installed on a third surface that is different from the first surface and the second surface. Furthermore, the determination unit may determine whether or not the third surface is simultaneously touched in addition to the first surface and the second surface, based further on an output of the third touch switch.

Accordingly, by detecting whether or not an additional surface is simultaneously touched, it is possible to presume the user's grasped state.

Moreover, the determination unit may determine a direction of the portable apparatus, based on touched states of the first to third surfaces.

With this configuration, the direction of the portable apparatus can be presumed based on the grasped state.

Moreover, the aforementioned portable apparatus may further include a proximity sensor that senses an adjacent object. Furthermore, the aforementioned determination unit may further determine whether or not any adjacent object exists.

With this configuration, it is possible to presume the unused state such as in a pocket.

Moreover, the aforementioned portable apparatus may further include: a first controller configured to release a lock function upon determining that the first surface and the second surface are simultaneously touched.

Because the lock function is released when the user grasps the portable apparatus, the user's release operation is eliminated, and it is possible for the user to use the portable apparatus soon.

Moreover, the first controller may activate the lock function upon determining that the first surface and the second surface are not simultaneously touched.

With this configuration, when the portable apparatus is released, the lock is automatically made, and the security is always secured.

Moreover, the portable apparatus may further include: a second controller configured to resume a suspended power supply upon determining that the first surface and the second surface are simultaneously touched.

Accordingly, because the power supply is automatically resumed when the user grasps, it is possible for the user to use the suspended function soon when the user grasps the portable apparatus.

Moreover, the second controller may suspend a power supply upon determining that the first surface and the second surface are not simultaneously touched.

With this configuration, the power supply is automatically suspended when the portable apparatus is released, and the power saving can be realized.

Moreover, the aforementioned portable apparatus may further include: a transfer unit that discards an operation event to be transferred, upon determining that the first surface and the second surface are not simultaneously touched.

Accordingly, the operation is invalidated when the user does not grasp the portable apparatus, so the malfunction by the unintentional operation can be prevented.

Moreover, the aforementioned portable apparatus may further include: a notification unit that stops notification by sounds upon determining that the first surface and the second surface are simultaneously touched.

Accordingly, the notification sounds are stopped when the user grasps the portable apparatus.

Incidentally, it is possible to create a program causing a processor to execute the aforementioned processing, and such a program is stored in a computer readable storage medium or storage device such as a flexible disk, CD-ROM, DVD-ROM, magneto-optic disk, a semiconductor memory, and hard disk. In addition, the intermediate processing result is temporarily stored in a storage device such as a main memory or the like.