This application is related to and claims priority to Japanese Patent Application No. 2010-248004 filed on Nov. 5, 2010, the entire contents of which are herein incorporated by reference.
1. Field
The present invention relates to a technique for controlling operations of electronic apparatuses based on signals from sensors.
2. Description of the Related Art
Techniques for switching between operations of electronic apparatuses based on signals acquired from sensors have been proposed.
Japanese Laid-open Patent Publication No. 2000-184013 discloses a mobile phone apparatus including a camera for image capturing. More specifically, a technique for detecting an ambient luminance level from an image-capturing signal acquired by the camera and adjusting ring volume in accordance with the luminance level in the mobile phone apparatus is disclosed. For example, the following control example has been proposed. When the luminance level detected from the image-capturing signal is lower than a predetermined fixed reference value, the ring volume is raised. In contrast, when the luminance level is equal to or higher than the predetermined fixed reference value, the ring volume is lowered.
Japanese Laid-open Patent Publication No. 2008-5253 discloses an image capturing apparatus that switches between and activates different operations based on image information resulting from image capturing. The image capturing apparatus includes a table in which operation information indicating a to-be-activated operation is previously set in association with image information, such as expected color and luminance of a subject. As examples of the image information resulting from image capturing, information such as luminance information indicating a luminance value acquired from a captured image of a subject, color-difference information, information on shape of the subject, is illustrated in this publication. Additionally, operations, such as a setting operation of the image-capturing apparatus, a diagnosis operation for diagnosing a failure in each unit of the image-capturing apparatus, a reset operation for returning various setting values set in the image-capturing apparatus to an initial state, and an adjustment operation for adjusting a reference value for adjusting an optical system included in the image-capturing apparatus, are illustrated as examples of the different operations.
It is an aspect of embodiments disclosed herein to provide an electronic apparatus that receives a signal from a sensor device, the electronic apparatus comprising: an environmental signal acquiring unit to acquire an environmental signal at specific sampling intervals, the environmental signal being input from the sensor device; an environmental signal storage unit to store the acquired environmental signal until at least a next sampling interval comes; a differential amount acquiring unit to acquire a differential amount that is a difference between a first environmental signal and a second environmental signal, the first environmental signal being the acquired environmental signal, the second environmental signal being the environmental signal that is acquired before the first environmental signal is acquired by the environmental signal acquiring unit and is stored in the environmental signal storage unit; and an operation selecting unit to select a to-be-activated operation based on the acquired differential amount.
In accordance with embodiments of the present invention, an operation that is potentially activated can be selected in accordance with an amount of a change in an environment signal, which changes as time passes. It is possible to effectively suppress an influence of a variation of the steady-state output level of the sensor in each use environment of the electronic apparatus by focusing on the amount of the change in the environment signal.
In the related art, unlike the embodiments of the present invention, a signal acquired from a sensor is compared with a predetermined reference value. For example, in Japanese Laid-open Patent Publication No. 2000-184013, it is determined whether a luminance level acquired from the sensor is lower than a predetermined fixed reference value in order to detect that a mobile phone apparatus is stored in a bag or a pocket of cloths. Such a technique may unfortunately induce a detection error when a steady state output level of the sensor varies in each use environment. More specifically, when electronic apparatuses are used in an environment different from a previously expected one in which the reference value is set, the detection error occurs at high frequency. For example, when an electronic apparatus whose reference value is set based on an assumption of indoor use is used outdoor, the detection error may frequently occur. If users are required to perform an operation for switching the reference value depending on the use environment to solve this problem, convenience of the electronic apparatus is damaged and client attraction to the product will be increasingly decreased. Additionally, setting the reference value generally applied to various use environments is generally difficult and may create design/development load.
With reference to
The sensor unit 100A is a component that converts physical information into an electric signal using a specified detection principle, such as a camera module using an element that detects light and generates a charge and a microphone that converts sound propagating through air into an electric signal. In this embodiment, an example of using the camera module as the sensor unit 100A will be described. The sensor unit 100A supplies the environmental signal acquiring unit 100B with an environmental signal indicating information on intensity of ambient light (e.g., a luminance level) and an attribute of color (e.g., color phase, brightness, and color saturation) based on charge stored by the photoelectric effect in response to reception of light. The environmental signal in this embodiment may be changed accordingly depending on types of the sensor. For example, when a microphone is used as the sensor unit 100A, information on an attribute of sound, such as volume of an acoustic signal acquired from the microphone, can be used as the environmental signal.
The environmental signal acquiring unit 100B acquires the environmental signal supplied from the sensor unit 100A at, for example, specified sampling intervals. The environmental signal acquiring unit 100B supplies the acquired environmental signal (i.e., a first environmental signal) to the environmental signal storage unit 100C and the differential amount acquiring unit 100D.
The environmental signal storage unit 100C is a storage device for storing the supplied environmental signal. The environmental signal storage unit 100C stores the environmental signal supplied from the environmental signal acquiring unit 100B and then supplies the stored environmental signal (i.e., a second environmental signal) to the differential amount acquiring unit 100D, for example, at a next sampling interval. That is, the environmental signal storage unit 100C in this embodiment functions as a delay. Alternatively, the environmental signal storage unit 100C may supply the differential amount acquiring unit 100D with an average of the environmental signal acquired based on the environmental signals of several past sampling intervals.
The differential amount acquiring unit 100D acquires a differential amount between the first environmental signal, i.e., the environmental signal supplied from the environmental signal acquiring unit 1008, and the second environmental signal, i.e., the environmental signal supplied from the environmental signal storage unit 100C. The differential amount acquiring unit 100D then supplies the differential amount to the operation selecting unit 100E.
Based on the supplied differential amount, the operation selecting unit 100E selects an operation that is potentially activated (i.e., a to-be-activated operation). For example, the operation selecting unit 100E compares the supplied differential amount with a specified reference value. When it is determined that the differential amount exceeds the reference value, the operation selecting unit 100E activates a specified operation. Further, the operation selecting unit 100E starts recording a detection signal supplied from, for example, a second sensor unit, not illustrated, when the luminance level indicated by the environmental signal supplied from the environmental signal acquiring unit 100B drops from the level of the last sampling interval by a specified amount or more.
With the above configuration, the electronic apparatus according to this embodiment can take an operation according to an amount of a change in the environmental signal that changes as time passes. In this embodiment, it is possible to effectively suppress an influence of a variation of a static level in each use environment of the electronic apparatus by focusing on the amount of the change in the environmental signal.
With reference to
For example, when the luminance level changes from “255” indicating a brightest state outdoor in the daytime to “185” because a user stores the electronic apparatus in a pocket of their clothes made of thin material, the differential amount is equal to −70 (=185−255). In such a case, “start measurement A” in the content example illustrated in
With reference to
A correspondence table 100F of this embodiment does not directly set a to-be-activated operation in association with a specified reference value but sets an event type, which is more abstract than the operation, in association with the reference value.
An operation selecting unit 100E in the third embodiment compares a differential amount supplied from a differential amount acquiring unit 100D with a reference value T201 that is referred to based on the content of the correspondence table 100F. The operation selecting unit 100E selects the event type T202 associated with the reference value whose relation with the differential amount satisfies a condition. The operation selecting unit 100E then supplies the event type to the event information generating unit 100H. For example, when a luminance level changes from “255” indicating a brightest state outdoor in the daytime to “185” because a user stores the electronic apparatus in a pocket of their clothes made of thin material, the differential amount is equal to −70 (=185−255). In such a case, “event A” in the content example illustrated in
The event information generating unit 100H generates event information indicating that a detection-target event is detected based on the supplied event type. The event information generating unit 100H may be supplied with various kinds of information, by the operation selecting unit 100E, such as the differential amount originally from the differential amount acquiring unit 100D and the reference value originally from the correspondence table 100F, in addition to the event type, and may include those various kinds of information in the event information.
The event sending unit 100I is supplied with the event information generated by the event information generating unit 100H and selects a destination corresponding to the event type indicated by the event information with reference to content of the destination table 100G.
It is assumed that “destination A” and “destination B” correspond to an object A 101L and an object B 102L in the program unit 100L, respectively, in the example of the functional configuration illustrated in
The event information sent from the event sending unit 100I is delivered to a specified functional unit in the program unit 100L specified by a destination T302 registered in the destination table 100G using an available technology, such as interprocess communication. In the aforementioned example, the event information “event A” is sent to “destination A”, thereby being delivered to the object A. Similarly, the event information of “event B” is sent to “destination B”, thereby being delivered to the object B. The destination T302 of the destination table 100G may be identification information (e.g., a process ID or an object ID) specifying each final-destination functional unit (such as the object A or the object B) in the program unit 100L or may be identification information specifying a logical communication path established between each functional unit in the program unit 100L and the event sending unit 100I.
The request receiving unit 100J and the destination registering unit 100K will now be described. The request receiving unit 100J receives a request from each functional unit in the program unit 100L, whereas the destination registering unit 100K registers information in the destination table 100G.
For example, when a request for detecting a specified event based on an environmental signal supplied from a sensor unit 100A is made in the process of execution of the object A 101L, the object A 101L sends a request for registering a destination to the request receiving unit 100J at given timing. The registration request includes an event type for specifying a detection-target event. Additionally, the registration request may include information for specifying processing to be activated when the detection-target event is detected.
Upon receiving the request from the object A 101L, the request receiving unit 100J supplies the destination registering unit 100K with information for specifying the object having sent the request (i.e., a request source object) and the event type for specifying the detection-target event. The information for specifying the object having sent the request may be identification information (e.g., a process ID, an object ID, or a function pointer) for specifying a final-destination functional unit (e.g., the object A) in the program unit 100L or may be identification information for specifying a logical communication path established between the functional unit in the program unit 100L and the event sending unit 100I. Additionally, information for specifying processing to be activated when the detection-target event included in the registration request is detected may be used as the information for specifying the object having sent the request.
The destination registering unit 100K registers destination information in the destination table 100G based on the various kinds of supplied information. For example, the destination registering unit 100K sets the event type supplied from the request receiving unit 100J in the event type T301 and sets the information for specifying the object having sent the request in the destination T302.
With the above configuration, for example, when a luminance level changes from “255” indicating a brightest state outdoor in the daytime to “185” because a user stores the electronic apparatus in a pocket of their clothes made of thin material, a differential amount is equal to −70 (=185−255). Accordingly, “event A” in the content example illustrated in
With reference to
Furthermore, a sensor type T203 is newly added in a correspondence table 100F of this embodiment.
An operation of the sensor activation control unit 100N will now be described. The sensor activation control unit 100N according to this embodiment executes a specified operation in response to reception of an instruction from a destination registering unit 100K. The destination registering unit 100K of this embodiment registers information in a destination table 100G based on various kinds of information supplied from a request receiving unit 100J as in the operation according to the third embodiment. Furthermore, the destination registering unit 100K of this embodiment supplies an instruction for executing activation processing to the sensor activation control unit 100N based on the various kinds of information supplied from the request receiving unit 100J. Content of the instruction supplied to the sensor activation control unit 100N may include, for example, an event type that specifies a detection-target event or the instruction may simply notify the sensor activation control unit 100N that the destination table 100G is updated.
Upon receiving the notification from the destination registering unit 100K, the sensor activation control unit 100N executes processing for selecting a to-be-activated sensor. For example, when the notification from the destination registering unit 100K includes the event type that specifies the detection-target event, the sensor activation control unit 100N selects the sensor type T203 corresponding to the event type based on the content of the correspondence table 100F. More specifically, when the event type included in the notification from the destination registering unit 100K is “event A”, “sensor 1” is selected based on the content example illustrated in
Alternatively, the sensor activation control unit 100N may select the event type T301 for which the destination T302 is registered with reference to the content of the destination table 100G and then select the sensor type T203 corresponding to the event type based on the content of the correspondence table 100F. For example, when the event types selected based on the content of the destination table 100G are “event A” and “event B”, “sensor 1” is selected based on the content example illustrated in
The sensor activation control unit 100N activates a sensor specified by the selected sensor type. The electronic apparatus 100 according to the fourth embodiment illustrated in
With the above configuration, once an object A 101L sends a request specifying a detection-target event to the request receiving unit 100J, the sensor corresponding to the event is activated and the sensor starts supplying the environmental signal therefrom.
An operation of an operation selecting unit 100E in this embodiment will now be described. The operation selecting unit 100E in this embodiment executes a specified operation in response to reception of a differential amount supplied from a differential amount acquiring unit 100D as in the first embodiment. The operation selecting unit 100E of this embodiment is supplied with the sensor type indicating a source of an environmental signal, based on which the aforementioned differential amount is calculated. For example, the operation selecting unit 100E is supplied with the sensor type “sensor 1” in association with the differential amount of the environmental signal supplied from the first sensor 101A. Additionally, a storage area for storing an environmental signal for each environmental-signal supplying sensor is set in the environmental signal storage unit 100C in this embodiment. For example, when supplying the environmental signal fed from a sensor unit 100A to the environmental signal storage unit 100C, an environmental signal acquiring unit 100B of this embodiment controls the environmental signal storage unit 100C so that the storage area differs for each environmental-signal supplying sensor. Additionally, for example, when supplying the environmental signal fed from the sensor unit 100A to the differential amount acquiring unit 100D, the environmental signal acquiring unit 100B of this embodiment controls the environmental signal storage unit 100C so that the environmental signal (i.e., a second environmental signal) in the storage area corresponding to the source of the environmental signal is output from the environmental signal storage unit 100C.
The operation selecting unit 100E selects a to-be-activated operation based on the supplied differential amount and sensor type. For example, the operation selecting unit 100E selects a reference value T201 corresponding to the supplied sensor type with reference to the content of the correspondence table 100F. In the content example illustrated in
Other operations of the sensor activation control unit 100N will now be described. The sensor activation control unit 100N of this embodiment executes a specified operation in response to reception of an instruction from the destination deleting unit 100M, for example. The destination deleting unit 100M of this embodiment receives a request from a functional unit (e.g., the object A 101L) in the program unit 100L through the request receiving unit 100J and deletes information from the destination table 100G. For example, when detection of a specified event based on an environmental signal from the sensor unit 100A is no longer needed in process of execution of the object A 101L, the object A 101L sends a delete request to the request receiving unit 100J at given timing. The delete request includes the event type for specifying a deletion-target event. Upon receiving the request from the object A 101L, the request receiving unit 100J supplies the destination deleting unit 100M with information for specifying the object having been sent the request (i.e., a request source object) and the event type for specifying the deletion-target event. The information for specifying the object having sent the request may be identification information (e.g., a process ID or an object ID) for specifying each final-destination functional unit (e.g., the object A) in the program unit 100L or may be identification information specifying a logical communication path established between each functional unit in the program unit 100L and the event sending unit 100I. The destination deleting unit 100M deletes the information specified based on the various kinds of supplied information from the destination table 100G. The content example of the destination table illustrated in
Furthermore, the destination deleting unit 100M supplies the sensor activation control unit 100N with an instruction for executing stop processing based on various kinds of information supplied from the request receiving unit 100J. Content of the instruction supplied to the sensor activation control unit 100N may include, for example, the event type that specifies the deletion-target event or may simply notify the sensor activation control unit 100N that the destination table 100G is updated.
Upon receiving the notification from the destination deleting unit 100M, the sensor activation control unit 100N executes processing for selecting a to-be-stopped sensor. For example, when the notification from the destination deleting unit 100M includes the event type that specifies the delete-target event, the sensor activation control unit 100N determines whether the event type is effectively registered in association with another destination with reference to the destination table 100G. When the effectively registered destination exists, the sensor activation control unit 100N terminates the stop processing. That is, the environmental signal is continuously supplied from the sensor. In contrast, when the destination associated with the event type is no longer effectively registered, the sensor activation control unit 100N selects the sensor type T203 corresponding to the event type based on the content of the correspondence table 100F. For example, when the event type included in the notification from the destination registering unit 100K is “event A”, “sensor 1” is selected in the content example illustrated in
The sensor activation control unit 100N then selects another event type corresponding to the selected sensor with reference to the content of the correspondence table 100F. For example, it is assumed that “event B” is selected as the other event type corresponding to “sensor 1” in the content example in
With the above configuration, for example, once the object A 101L sends a request specifying a deletion-target event to the request receiving unit 100J, the sensor corresponding to the event is stopped and supply of the environmental signal from the sensor stops.
With reference to
The electronic apparatus 100 illustrated in
The first system section 101 is connected to each section, such as the second system section 102, the wireless communication control section 103, the storage section 105, the input function section 106, the display section 107, or the audio control section 108, through various transmission paths, such as a bus, to be able to communicate with the section. The first system section 101 has functions, such as controlling an operation of each section and executing a specified process after receiving an operation result from each section. Additionally, the first system section 101 illustrated in
The second system section 102 can operate independently from the first system section 101. In this embodiment, the second system section 102 includes, as functional configurations thereof, an environmental signal acquiring unit 100B, an environmental signal storage unit 100C, and a differential amount acquiring unit 100D that perform processing regarding an environmental signal fed from various sensors. The electronic apparatus 100 according to this embodiment includes an in-camera 101A, an out-camera 102A, and a microphone 103A that serve as the various sensors. The in-camera 101A is disposed on the same surface as the display section 107, typically, near an opening of the receiver 109. In this typical arrangement, it is expected that an opening of the in-camera 101A be covered with a body of a user when the user brings the opening of the receiver 109 near their ear to utilize a voice communication function. Furthermore, in this typical arrangement, the opening of the in-camera 101A is covered with a closed casing in a folded state when the electronic apparatus 100 is made up of a casing foldable through a hinge. On the other hand, the out-camera 102A is disposed on a surface different from the display section 107, typically, on a surface opposite to the display section 107. In this typical arrangement, an opening of the out-camera 102A faces outside in the folded state when the electronic apparatus 100 is made up of a casing foldable through a hinge.
The wireless communication control section 103 has a function for supplying the first system section 101 with a reception date acquired by executing a decoding process on a radio signal received with the antenna 104 and a function for outputting, from the antenna 104, a radio signal acquired by executing a modulation process on transmission data fed from the first system section 101. For example, the wireless communication control section 103 has a communication function compliant with various communication standards, such as wideband code division multiple access (W-CDMA) and CDMA 2000.
The storage section 105 includes semiconductor storage devices, such as a random access memory (RAM) and a read only memory (ROM), and portable storage media. In this embodiment, the storage section 105 includes, as functional configurations thereof, a correspondence table 100F and a destination table 100G.
The input function section 106 has a function for receiving an operation from an operator of the information processing apparatus. For example, as the input function section 106, input buttons can be arranged on the information processing apparatus or a touch panel can be arranged on the display section 107.
The display section 107, such as a liquid crystal display unit or an organic electroluminescence (EL) display unit, has a function for displaying display data supplied from the first system section 101.
The audio control section 108 has functions, such as converting audio data (e.g., digital data in a pulse code modulation (PCM) format) supplied from the first system section 101 into an analog signal and outputting the analog signal from the receiver 109 (i.e., an earpiece speaker).
An operation of the electronic apparatus 100 according to this embodiment will now be described. For example, in response to reception of an interrupt signal indicating an input operation of a user from the input function section 106, the first system section 101 of the electronic apparatus 100 activates a golf-swing measurement program serving as the program unit 100L. In a process of the activated golf-swing measurement program, the first system section 101 executes a request for registering destinations for events A and B. In the first system section 101, a process of the request receiving unit 100J receives the request for registering the destinations for the events A and B from the golf-swing measurement program and a process of the destination registering unit 100K registers information in the destination table 100G.
The first system section 101 also executes a process of the sensor activation control unit 100N together with the process of the destination registering unit 100K to activate a sensor relating to the destination registration request in the process.
The environmental signal acquiring unit 100B implemented in the second system section 102 of the electronic apparatus 100 receives an environmental signal (i.e., an image signal) supplied from the out-camera 102A serving as the sensor and extracts, for example, a luminance signal serving as subject information from the image signal serving as the environmental signal. The environmental signal acquiring unit 100B then supplies the environmental signal storage unit 100C and the differential amount acquiring unit 100D with the extracted luminance signal serving as the environmental signal (i.e., a first environmental signal).
The environmental signal storage unit 100C implemented in the second system section 102 stores the environmental signal for a specified period and supplies the environmental signal (i.e., a second environmental signal) to the differential amount acquiring unit 100D.
The differential amount acquiring unit 100D implemented in the second system section 102 acquires a differential amount that is a difference between the first environmental signal and the second environmental signal and supplies the first system section 101 with the differential amount regarding the environmental signal fed from the out-camera 102A.
The operation selecting unit 100E implemented in the first system section 101 receives the differential amount regarding the environmental signal fed from the out-camera 102 from the second system section 102 and compares the differential amount with the reference values “−60 or smaller” and “+60 or larger” corresponding to the sensor type “out-camera”. The operation selecting unit 100E implemented in the first system section 101 selects the event type corresponding to the reference value whose relation with the differential amount satisfies a specified condition. The event information generating unit 100H implemented in the first system section 101 generates event information on the basis of the selected event type. The event sending unit 100I implemented in the first system section 101 sends the generated event information to a destination specified by the content of the destination table 100G.
With the above configuration, a user who has caused the electronic apparatus 100 to activate the golf-swing measurement program can cause the electronic apparatus 100 to start executing measurement processing regarding a specified a body motion, such as golf swing, using various sensors, such as a three-dimensional acceleration sensor, of the electronic apparatus 100 by a simple action, such as storing the electronic apparatus 100 in a pocket of their trousers. Furthermore, the user can cause the electronic apparatus 100 to stop executing the measurement processing by a simple action, such as pulling out the electronic apparatus 100 from the pocket of their trousers. In this way, the user can instruct the electronic apparatus 100 to start and stop the measurement by simple actions, whereby the electronic apparatus can record a motion that the user wants to measure as the measurement target. More specifically, in a configuration in which start and end of the measurement are instructed through a button operation or an on-screen touch operation, a motion from performance of the operation to attachment of the electronic apparatus to a measurement target is also recorded. In contrast, in this embodiment, a to-be-activated operation is selected in accordance with an amount of a change (i.e., the differential amount) in a signal fed from the sensor, which changes as time passes. Further, it is possible to effectively suppress an influence of a variation of a static level in each use environment of the electronic apparatus by focusing on the amount of the change in the environment signal.
Although the description has been given for the configuration in which the electronic apparatus 100 illustrated in
The description has been given for the example of the configuration in which the first system section 101 operates as the operation selecting unit 100E, the event information generating unit 100H, the event sending unit 100I, the request receiving unit 100J, the destination registering unit 100K, the destination deleting unit 100M, the sensor activation control unit 100N, and the program unit 100L in the electronic apparatus 100 illustrated in
Although the example of the configuration has been described in which the second system section 102 operates as the environmental signal acquiring unit 100B, the environmental signal storage unit 100C, and the differential amount acquiring unit 100D in the electronic apparatus 100 illustrated in
In the electronic apparatus 100 illustrated in
Although the embodiments of the present invention have been described in detail above, the present invention should not be limited to specific embodiments and can be variously modified and altered within the scope of the spirit of the present invention disclosed in the appended claims. The scope of the spirit of the present invention includes a given combination of the above-described embodiments.
The electronic apparatus including the wireless communication control section 103 serving as an example of an information processing apparatus according to embodiments of the present invention has been described in one of the above-described embodiments, the information processing apparatus is not limited to this configuration. The electronic apparatus according to embodiments of the present invention may be, for example, a portable device or a fixed device. Types of the portable device may include, for example, a mobile phone apparatus, a smartphone, a notebook personal computer, and a portable game machine. Additionally, the electronic apparatus may be a device that does not include an internal battery but operates using electric power supplied from an external power source.
All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions. Although the embodiment(s) of the present inventions have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2010-248004 | Nov 2010 | JP | national |