WO2015098706A1 - 携帯電子機器、制御方法、及び制御プログラム - Google Patents

携帯電子機器、制御方法、及び制御プログラム Download PDF

Info

Publication number
WO2015098706A1
WO2015098706A1 PCT/JP2014/083605 JP2014083605W WO2015098706A1 WO 2015098706 A1 WO2015098706 A1 WO 2015098706A1 JP 2014083605 W JP2014083605 W JP 2014083605W WO 2015098706 A1 WO2015098706 A1 WO 2015098706A1
Authority
WO
WIPO (PCT)
Prior art keywords
atmospheric pressure
change
controller
smartphone
moving
Prior art date
Application number
PCT/JP2014/083605
Other languages
English (en)
French (fr)
Inventor
茂輝 田辺
英樹 森田
Original Assignee
京セラ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京セラ株式会社 filed Critical 京セラ株式会社
Priority to US15/105,614 priority Critical patent/US10228244B2/en
Publication of WO2015098706A1 publication Critical patent/WO2015098706A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels
    • G01C5/06Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels by using barometric means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • This application relates to a portable electronic device, a control method, and a control program.
  • Patent Document 1 discloses a portable electronic device equipped with an atmospheric pressure sensor.
  • Some of the portable electronic devices described above can detect a change in altitude by detecting a change in atmospheric pressure using a barometric sensor.
  • a portable electronic device includes an atmospheric pressure sensor that detects atmospheric pressure, an acceleration sensor that detects acceleration, and a controller that detects movement of the own device based on the acceleration. Based on the pressure fluctuation when the aircraft is not moving, the change in the atmospheric pressure when the aircraft is moving is corrected to calculate the altitude change of the aircraft.
  • the control method which concerns on one aspect is a control method of a portable electronic device provided with an atmospheric pressure sensor and an acceleration sensor, Comprising: The step which detects the atmospheric
  • a control program includes a step of detecting an atmospheric pressure acting on the portable electronic device by the atmospheric pressure sensor in a portable electronic device including an atmospheric pressure sensor and an acceleration sensor; When detecting the acceleration acting, detecting the movement of the portable electronic device based on the acceleration, and when the own device is moving based on atmospheric pressure fluctuation when the own device is not moving And a step of calculating the altitude change of the own aircraft is executed.
  • FIG. 1 is a perspective view of a smartphone according to one of a plurality of embodiments.
  • FIG. 2 is a front view of the smartphone.
  • FIG. 3 is a rear view of the smartphone.
  • FIG. 4 is a block diagram of the smartphone.
  • FIG. 5 is a diagram illustrating a change in atmospheric pressure detected by a smartphone on a certain day.
  • FIG. 6 is a diagram for explaining an example of the relationship among atmospheric pressure, time, and moving state.
  • FIG. 7 is a diagram illustrating an example of state data.
  • FIG. 8 is a flowchart illustrating a processing procedure of an example of control by the smartphone.
  • FIG. 9 is a flowchart illustrating a processing procedure of a first modification of control by the smartphone.
  • FIG. 10 is a flowchart illustrating a processing procedure of a second modification of the control by the smartphone.
  • FIG. 11 is a flowchart illustrating a processing procedure of a third modification of the control by the smartphone.
  • the smartphone 1 has a housing 20.
  • the housing 20 includes a front face 1A, a back face 1B, and side faces 1C1 to 1C4.
  • the front face 1 ⁇ / b> A is the front of the housing 20.
  • the back face 1 ⁇ / b> B is the back surface of the housing 20.
  • the side faces 1C1 to 1C4 are side faces that connect the front face 1A and the back face 1B.
  • the side faces 1C1 to 1C4 may be collectively referred to as the side face 1C without specifying which face.
  • the smartphone 1 has a touch screen display 2, buttons 3A to 3C, an illuminance sensor 4, a proximity sensor 5, a receiver 7, a microphone 8, and a camera 12 on the front face 1A.
  • the smartphone 1 has a speaker 11 and a camera 13 on the back face 1B.
  • the smartphone 1 has buttons 3D to 3F and a connector 14 on the side face 1C.
  • the buttons 3A to 3F may be collectively referred to as the button 3 without specifying which button.
  • the touch screen display 2 has a display 2A and a touch screen 2B.
  • the display 2A and the touch screen 2B are substantially rectangular, but the shapes of the display 2A and the touch screen 2B are not limited to this.
  • Each of the display 2A and the touch screen 2B can take any shape such as a square or a circle.
  • the display 2 ⁇ / b> A and the touch screen 2 ⁇ / b> B are overlapped, but the arrangement of the display 2 ⁇ / b> A and the touch screen 2 ⁇ / b> B is not limited to this.
  • the display 2A and the touch screen 2B may be arranged side by side or may be arranged apart from each other. In the example of FIG.
  • the long side of the display 2A is along the long side of the touch screen 2B
  • the short side of the display 2A is along the short side of the touch screen 2B
  • the display 2A and the touch screen 2B are overlapped. Is not limited to this.
  • the display 2A and the touch screen 2B are arranged so as to overlap each other, for example, one or more sides of the display 2A may not be along any side of the touch screen 2B.
  • the display 2A includes a liquid crystal display (LCD: Liquid Crystal Display), an organic EL display (OELD: Organic Electro-Luminescence Display), or an inorganic EL display (IELD: Inorganic Electro-Luminescence Display device).
  • LCD Liquid Crystal Display
  • OELD Organic Electro-Luminescence Display
  • IELD Inorganic Electro-Luminescence Display device
  • the touch screen 2B detects contact of a finger, a pen, a stylus pen, or the like with the touch screen 2B.
  • the touch screen 2B can detect a position where a plurality of fingers, a pen, a stylus pen, or the like is in contact with the touch screen 2B.
  • a finger, pen, stylus pen, or the like that contacts the touch screen 2B may be referred to as a “contact object” or “contact object”.
  • the detection method of the touch screen 2B may be any method such as a capacitance method, a resistive film method, a surface acoustic wave method (or an ultrasonic method), an infrared method, an electromagnetic induction method, and a load detection method.
  • a capacitance method a resistive film method
  • a surface acoustic wave method or an ultrasonic method
  • an infrared method an electromagnetic induction method
  • an electromagnetic induction method an electromagnetic induction method
  • the smartphone 1 is based on at least one of the contact detected by the touch screen 2B, the position at which the contact is detected, the change in the position at which the contact is detected, the interval at which the contact is detected, and the number of times the contact is detected. Determine the type of gesture.
  • the gesture is an operation performed on the touch screen 2B.
  • Gestures identified by the smartphone 1 include, but are not limited to, touch, long touch, release, swipe, tap, double tap, long tap, drag, flick, pinch in, and pinch out, for example.
  • “Touch” is a gesture in which a finger touches the touch screen 2B.
  • the smartphone 1 determines a gesture in which a finger contacts the touch screen 2B as a touch.
  • “Long touch” is a gesture in which a finger touches the touch screen 2B for a longer period of time.
  • the smartphone 1 determines a gesture in which a finger contacts the touch screen 2B for longer than a certain time as a long touch.
  • “Release” is a gesture in which a finger leaves the touch screen 2B.
  • the smartphone 1 determines that a gesture in which a finger leaves the touch screen 2B is a release.
  • “Swipe” is a gesture in which a finger moves while touching the touch screen 2B.
  • the smartphone 1 determines a gesture that moves while the finger is in contact with the touch screen 2B as a swipe.
  • “Tap” is a gesture for releasing following a touch.
  • the smartphone 1 determines a gesture for releasing following a touch as a tap.
  • the “double tap” is a gesture in which a gesture for releasing following a touch is continued twice.
  • the smartphone 1 determines a gesture in which a gesture for releasing following a touch is continued twice as a double tap.
  • “Long tap” is a gesture to release following a long touch.
  • the smartphone 1 determines a gesture for releasing following a long touch as a long tap.
  • “Drag” is a gesture for performing a swipe starting from an area where a movable object is displayed.
  • the smartphone 1 determines, as a drag, a gesture for performing a swipe starting from an area where a movable object is displayed.
  • “Flick” is a gesture in which a finger leaves the touch screen 2B while moving after touching the touch screen 2B.
  • “flick” is a gesture in which a release is performed while a finger moves following a touch.
  • the smartphone 1 determines, as a flick, a gesture in which the finger leaves the touch screen 2B while moving after touching the touch screen 2B.
  • the flick is often performed while the finger moves in one direction.
  • Flick is "upper flick” where the finger moves upward on the screen, “lower flick” where the finger moves downward on the screen, “right flick” where the finger moves rightward on the screen, finger is left on the screen Including “left flick” moving in the direction.
  • the movement of a finger in a flick is often quicker than the movement of a finger in a swipe.
  • “Pinch-in” is a gesture that swipes in a direction in which multiple fingers approach each other.
  • the smartphone 1 determines, as a pinch-in, a gesture in which the distance between the position of a finger detected by the touch screen 2B and the position of another finger is shortened.
  • “Pinch out” is a gesture of swiping a plurality of fingers away from each other.
  • the smartphone 1 determines, as a pinch-out, a gesture that increases the distance between the position of one finger and the position of another finger detected by the touch screen 2B.
  • a gesture performed with one finger may be referred to as a “single touch gesture”, and a gesture performed with two or more fingers may be referred to as a “multi-touch gesture”.
  • Multi-touch gestures include, for example, pinch-in and pinch-out. Taps, flicks, swipes, and the like are single-touch gestures when performed with one finger, and multi-touch gestures when performed with two or more fingers.
  • the smartphone 1 operates according to these gestures determined via the touch screen 2B. Therefore, an operability that is intuitive and easy to use for the user is realized.
  • the operation performed by the smartphone 1 according to the determined gesture may differ depending on the screen displayed on the display 2A.
  • the touch screen 2B detects contact
  • the smartphone 1 determines that the gesture type is X based on the detected contact”. May be described as “detect” or “the controller detects X”.
  • FIG. 4 is a block diagram of the smartphone 1.
  • the smartphone 1 includes a touch screen display 2, a button 3, an illuminance sensor 4, a proximity sensor 5, a communication unit 6, a receiver 7, a microphone 8, a storage 9, a controller 10, a speaker 11, and a camera. 12 and 13, a connector 14, an acceleration sensor 15, an orientation sensor 16, a gyroscope 17, and an atmospheric pressure sensor 19.
  • the touch screen display 2 has the display 2A and the touch screen 2B as described above.
  • the display 2A displays characters, images, symbols, graphics, or the like.
  • the touch screen 2B detects contact.
  • the controller 10 detects a gesture for the smartphone 1. Specifically, the controller 10 detects an operation (gesture) on the touch screen 2B (touch screen display 2) by cooperating with the touch screen 2B.
  • the button 3 is operated by the user.
  • the button 3 has buttons 3A to 3F.
  • the controller 10 detects an operation on the button 3 by cooperating with the button 3.
  • the operation on the button 3 includes, for example, click, double click, triple click, push, and multi-push, but is not limited thereto.
  • the buttons 3A to 3C are, for example, a home button, a back button, or a menu button.
  • the button 3D is, for example, a power on / off button of the smartphone 1.
  • the button 3D may also serve as a sleep / sleep release button.
  • the buttons 3E and 3F are volume buttons, for example.
  • the illuminance sensor 4 detects the illuminance of the ambient light of the smartphone 1. Illuminance indicates light intensity, brightness, or luminance. The illuminance sensor 4 is used for adjusting the luminance of the display 2A, for example.
  • the proximity sensor 5 detects the presence of a nearby object without contact. The proximity sensor 5 detects the presence of an object based on a change in a magnetic field or a change in a feedback time of an ultrasonic reflected wave. The proximity sensor 5 detects that the touch screen display 2 is brought close to the face, for example.
  • the illuminance sensor 4 and the proximity sensor 5 may be configured as one sensor. The illuminance sensor 4 may be used as a proximity sensor.
  • the communication unit 6 communicates wirelessly.
  • the communication method supported by the communication unit 6 is a wireless communication standard.
  • wireless communication standards include cellular phone communication standards such as 2G, 3G, and 4G.
  • As communication standards of cellular phones for example, LTE (Long Term Evolution), W-CDMA (Wideband Code Multiple Access), CDMA2000, PDC (Personal Digital Cellular), GSM (Regular Trademark) (GloSbMoS) (Personal Handy-phone System).
  • As wireless communication standards for example, there are WiMAX (Worldwide Interoperability for Microwave Access), IEEE 802.11, Bluetooth (registered trademark), IrDA (Infrared Data Association), NFC (NearFarm, etc.).
  • the communication unit 6 may support one or more of the communication standards described above.
  • the receiver 7 and the speaker 11 are sound output units.
  • the receiver 7 and the speaker 11 output the sound signal transmitted from the controller 10 as sound.
  • the receiver 7 is used, for example, to output the other party's voice during a call.
  • the speaker 11 is used for outputting a ring tone and music, for example.
  • One of the receiver 7 and the speaker 11 may also function as the other.
  • the microphone 8 is a sound input unit. The microphone 8 converts the user's voice or the like into a sound signal and transmits the sound signal to the controller 10.
  • the storage 9 stores programs and data.
  • the storage 9 is also used as a work area for temporarily storing the processing result of the controller 10.
  • the storage 9 may include any non-transitory storage medium such as a semiconductor storage medium and a magnetic storage medium.
  • the storage 9 may include a plurality of types of storage media.
  • the storage 9 may include a combination of a portable storage medium such as a memory card, an optical disk, or a magneto-optical disk and a storage medium reader.
  • the storage 9 may include a storage device used as a temporary storage area such as a RAM (Random Access Memory).
  • the program stored in the storage 9 includes an application executed in the foreground or the background and a control program that supports the operation of the application.
  • the application displays a screen on the display 2A, and causes the controller 10 to execute processing according to a gesture detected via the touch screen 2B.
  • the control program is, for example, an OS.
  • the application and the control program may be installed in the storage 9 via wireless communication by the communication unit 6 or a non-transitory storage medium.
  • the storage 9 stores, for example, a control program 9A, a calculation application 9B, acceleration data 9W, atmospheric pressure data 9X, state data 9Y, and setting data 9Z.
  • the calculation application 9B provides a function for calculating an energy consumption amount when the user who owns the smartphone 1 moves.
  • the acceleration data 9W includes information indicating the acceleration acting on the smartphone 1.
  • the atmospheric pressure data 9X includes information indicating the atmospheric pressure acting on the smartphone 1.
  • the state data 9Y includes information indicating the movement state of the user of the smartphone 1.
  • the setting data 9Z includes information related to various settings related to the operation of the smartphone 1.
  • the control program 9A provides functions related to various controls for operating the smartphone 1.
  • the control program 9A realizes a call by controlling the communication unit 6, the receiver 7, the microphone 8, and the like, for example.
  • the function provided by the control program 9A includes a function of performing various controls such as changing information displayed on the display 2A according to a gesture detected via the touch screen 2B.
  • the functions provided by the control program 9A include a function of detecting the movement, stop, etc. of the user holding the smartphone 1 by controlling the acceleration sensor 15 and the atmospheric pressure sensor 19 and the like.
  • the function provided by the control program 9A may be used in combination with a function provided by another program such as the calculation application 9B.
  • the control program 9A is for determining whether the user (object) carrying the smartphone 1 (own device) is moving by a predetermined movement method based on the acceleration value detected by the acceleration sensor 15.
  • Provide functionality examples of the moving method include a first moving method in which the user moves by himself / herself and a second moving method in which the user is moved by the moving body.
  • Examples of the first movement method include a method in which the user moves by himself / herself by walking, running, bicycle, or the like.
  • Examples of the second movement method include a method in which a user is moved by a moving body such as an automobile, a train, an elevator, and an escalator.
  • the control program 9A determines that the user is moving based on the acceleration value detected by the acceleration sensor 15, and determines the movement of the smartphone 1.
  • the calculation application 9B is used, for example, to calculate the user's energy consumption.
  • the calculation application 9B provides a function for calculating the consumption amount of the user by applying the movement speed of the user to the relational expression between the movement speed (number of steps) of the user and the energy consumption amount, for example.
  • This user's energy consumption may be calculated in consideration of the user's movement method. For example, when the user walks the same number of steps, the calculation application 9B may change the relational expression of energy consumption according to whether the user walks or travels.
  • the user's energy consumption may be calculated in consideration of the user's moving environment. For example, when the user walks the same number of steps, the calculation application 9B changes the energy consumption relational expression depending on whether the road on which the user is walking is flat or uphill.
  • thermodynamic calories are adopted as “a measure of the amount of heat consumed by a person or animal or the amount of heat consumed by a person or animal due to metabolism” based on the measurement law of Japan.
  • the measurement of energy consumption is not limited to this, and a joule (J) may be adopted based on CGPM (Conference General des Poids et Measurements).
  • the target calculated by the calculation application 9B is not limited to the user's energy consumption, and the user's exercise, the number of steps when moving by walking, and the like may be calculated.
  • “Exercise” is a unit representing the amount of physical activity. The exercise is the amount of exercise calculated by multiplying the mets, which will be described later, by the time of physical activity.
  • This Met is a unit that represents the strength of physical activity. The strength of this physical activity varies depending on the type of physical activity. For example, the mets is set for each movement method of the user. The mets may be used for calculation of energy consumption, which is an activity factor indicating an activity amount. In Mets, it is expressed as a ratio to the strength of physical activity at rest. For example, a sitting and resting state is equivalent to 1 Mets, and a normal walk is equivalent to 3 Mets. That is, it means that the intensity of physical activity in normal walking is three times the intensity of physical activity at rest.
  • the acceleration data 9W stores a plurality of acceleration information in time series.
  • the acceleration information includes items such as time and an acceleration value.
  • the time indicates the time when the acceleration is detected by the acceleration sensor 15.
  • the acceleration value indicates the acceleration value detected by the acceleration sensor 15.
  • the atmospheric pressure information includes items such as time, atmospheric pressure value, and atmospheric pressure change amount.
  • the time indicates the time when the atmospheric pressure is detected by the atmospheric pressure sensor 19.
  • the value of atmospheric pressure indicates the value of atmospheric pressure detected by the atmospheric pressure sensor 19.
  • the change amount of the atmospheric pressure indicates the change amount of the atmospheric pressure detected by the atmospheric pressure sensor 19 per unit time.
  • the status data 9Y stores a plurality of status information. Details of the state data 9Y will be described later.
  • the setting data 9Z includes determination condition data for performing determination regarding the movement of the smartphone 1.
  • the determination condition data is for determining whether the user who owns the device (smartphone 1) is moving by a predetermined movement method based on the acceleration value detected by the control program 9A by the acceleration sensor 15. Includes conditions.
  • the determination condition data includes a vibration pattern of acceleration based on the direction and magnitude of acceleration applied to the smartphone 1 when moving by a predetermined movement method, a range of acceleration direction and magnitude, and the like.
  • the controller 10 is an arithmetic processing unit.
  • the arithmetic processing unit includes, for example, a CPU (Central Processing Unit), an SoC (System-on-a-chip), an MCU (Micro Control Unit), an FPGA (Field-Programmable Gate Array), and a coprocessor. It is not limited.
  • the controller 10 controls various operations of the smartphone 1 to realize various functions.
  • the controller 10 executes instructions included in the program stored in the storage 9 while referring to the data stored in the storage 9 as necessary. And the controller 10 controls a function part according to data and a command, and implement
  • the functional unit includes, for example, the display 2A, the communication unit 6, the receiver 7, and the speaker 11, but is not limited thereto.
  • the controller 10 may change the control according to the detection result of the detection unit.
  • the detection unit includes, for example, a touch screen 2B, a button 3, an illuminance sensor 4, a proximity sensor 5, a microphone 8, a camera 12, a camera 13, an acceleration sensor 15, an orientation sensor 16, a gyroscope 17, and an atmospheric pressure sensor 19. It is not limited to these.
  • the controller 10 executes various controls such as changing the information displayed on the display 2A according to the gesture detected via the touch screen 2B by executing the control program 9A, for example.
  • the connector 14 is a terminal to which other devices are connected.
  • the connector 14 may be a general-purpose terminal such as a USB (Universal Serial Bus), HDMI (registered trademark) (High-Definition Multimedia Interface), Light Peak (Thunderbolt (registered trademark)), or an earphone microphone connector.
  • the connector 14 may be a dedicated terminal such as a dock connector.
  • Devices connected to the connector 14 include, but are not limited to, external storage, speakers, and communication devices, for example.
  • the acceleration sensor 15 detects the direction and magnitude of acceleration acting on the smartphone 1.
  • the direction sensor 16 detects the direction of geomagnetism.
  • the gyroscope 17 detects the angle and angular velocity of the smartphone 1.
  • the atmospheric pressure sensor 19 detects the atmospheric pressure acting on the smartphone 1. The detection results of the acceleration sensor 15, the azimuth sensor 16, the gyroscope 17, and the atmospheric pressure sensor 19 are used in combination in order to detect changes in the position and orientation of the smartphone 1.
  • Non-transitory storage media include, for example, optical disks such as CD (registered trademark), DVD (registered trademark), and Blu-ray (registered trademark), magneto-optical disks, magnetic storage media, memory cards, and solid-state storage media Including, but not limited to.
  • the configuration of the smartphone 1 shown in FIG. 4 is an example, and may be changed as appropriate without departing from the spirit of the present invention.
  • the number and type of buttons 3 are not limited to the example of FIG.
  • the smartphone 1 may include buttons such as a numeric keypad layout or a QWERTY layout instead of the buttons 3A to 3C as buttons for operations related to the screen.
  • the smartphone 1 may include only one button or may not include a button for operations related to the screen.
  • the smartphone 1 includes two cameras, but the smartphone 1 may include only one camera or may not include a camera.
  • the smartphone 1 includes four types of sensors in order to detect the position and orientation, but the smartphone 1 may not include some of these sensors.
  • the smartphone 1 may include another type of sensor for detecting at least one of a position and a posture.
  • the controller 10 of the smartphone 1 causes the acceleration sensor 15 to detect acceleration and causes the atmospheric pressure sensor 19 to detect atmospheric pressure. Then, the acceleration sensor 15 outputs an acceleration value for each axis (for example, the x axis, the y axis, and the z axis) to the controller 10 as a current value.
  • the atmospheric pressure sensor 19 outputs the atmospheric pressure value as a current value to the controller 10.
  • FIG. 5 is a figure which shows transition of the atmospheric pressure of the certain day which the smart phone 1 detected.
  • FIG. 5 shows changes in atmospheric pressure detected by the smartphone 1 on a rainy day when the smartphone 1 is stationary and there is no change in altitude.
  • the atmospheric pressure changes from 1008 [hPa] to 1000 [hPa] throughout the day. If the atmospheric pressure change of 8 [hPa] is caused by the change of altitude, it corresponds to the altitude change of 80 [m]. As shown in FIG. 5, if the user moves while the atmospheric pressure is changing, the smartphone 1 changes the altitude calculated based on the detected change in atmospheric pressure to 80 due to the change in atmospheric pressure. There is a possibility that an error of [m] is included. If the smartphone 1 is in a stationary state, it can accurately detect a change in atmospheric pressure due to an atmospheric change.
  • the smartphone 1 calculates the amount of change in atmospheric pressure according to the change in the atmosphere when the user is stationary, and the user is moving based on the calculated amount of change in atmospheric pressure.
  • the amount of change in atmospheric pressure in the state is corrected.
  • the smartphone 1 can reduce the occurrence of an error in the altitude change calculated due to atmospheric changes.
  • FIG. 6 is a diagram for explaining an example of the relationship among atmospheric pressure, time, and moving state.
  • the smartphone 1 determines the movement state of the user (subject) who owns the smartphone 1 based on the acceleration value detected by the acceleration sensor 15 at predetermined time intervals.
  • the predetermined time is a time indicating a sampling interval determined in order to detect acceleration and atmospheric pressure.
  • the moving state includes a walking state where the user is moving and a stationary state where the user is not moving.
  • the smartphone 1 determines whether the user is stationary or walking (moving) based on the detected acceleration.
  • the smartphone 1 refers to the determination condition data of the setting data 9Z, and determines whether the acceleration of the acceleration sensor 15 matches the acceleration pattern based on the direction and magnitude of the acceleration applied to the smartphone 1 when walking. If the smartphone 1 matches the acceleration pattern, the smartphone 1 determines that the user is walking. If the smartphone 1 does not match the acceleration pattern, the smartphone 1 determines that the user is stationary.
  • the smartphone 1 adds a time stamp to the moving state indicating the determination result, and stores it in the state data 9Y.
  • the smartphone 1 describes a case where the user determines whether the user is stationary or walking, but is not limited thereto.
  • the smartphone 1 may determine a movement state other than walking. Examples of the movement state other than walking include running, bicycle, car, train, elevator, and escalator.
  • the smartphone 1 calculates the amount of change in atmospheric pressure per predetermined time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19 every predetermined time.
  • the smartphone 1 adds a time stamp to the value of the atmospheric pressure and the calculated change amount of the atmospheric pressure, and stores it in the atmospheric pressure data 9X as atmospheric pressure information.
  • the smartphone 1 determines that the user is stationary based on the acceleration value detected by the acceleration sensor 15 and the determination condition data.
  • the smartphone 1 calculates the first change amount ⁇ P1 / ⁇ t of the atmospheric pressure per unit time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and adds a time stamp to the calculated first change amount ⁇ P1 / ⁇ t.
  • the first change amount of the atmospheric pressure indicates the change amount of the atmospheric pressure when the user is in a stationary state.
  • the change amount of the atmospheric pressure detected by the smartphone 1 does not include the change amount of the atmospheric pressure due to the change in altitude.
  • the smartphone 1 detects the first change amount ⁇ P1 / ⁇ t as the change amount of the atmospheric pressure corresponding to the change in the atmosphere.
  • the smartphone 1 determines that the user is in a walking state based on the acceleration value detected by the acceleration sensor 15 and the determination condition data.
  • the smartphone 1 calculates the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure per unit time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and adds a time stamp to the calculated second change amount ⁇ P2 / ⁇ t. And stored in the atmospheric pressure data 9X.
  • the second change amount indicates the change amount of the atmospheric pressure when the user is in a walking state.
  • the user is in a walking state from time t1 to time t2, and the atmospheric pressure hardly changes. And if only predetermined time passes, possibility that atmospheric pressure will change rapidly is low. That is, there is a high possibility that the amount of change in atmospheric pressure from time t1 to time t2 is equivalent to the first amount of change ⁇ P1 / ⁇ t from time t0 to time t1.
  • the smartphone 1 has no change in atmospheric pressure due to a change in altitude, when the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure detected during walking is smaller than the first change amount ⁇ P1 / ⁇ t of the atmospheric pressure at rest. Judge that you are walking in a flat environment.
  • the smartphone 1 corrects the second change amount ⁇ P2 / ⁇ t by subtracting the first change amount ⁇ P1 / ⁇ t of the atmospheric pressure at rest from the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure during walking. That is, the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure at the time of walking is a value obtained by subtracting the fluctuation amount of the atmospheric pressure at the time of stationary from the amount of change of the atmospheric pressure at the time of walking.
  • the smartphone 1 compares the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure with the first change amount ⁇ P1 / ⁇ t at the last stationary time, and a change occurs in the altitude of the user based on the comparison result. To estimate.
  • the pressure value is higher as the altitude is lower and lower as the altitude is higher.
  • the smart phone 1 estimates that the user is walking uphill, when the variation
  • the smartphone 1 estimates that the user is walking downhill when the change amount of the atmospheric pressure during walking is larger than the change amount of the atmospheric pressure when stationary.
  • the smartphone 1 determines that the road is a gentle slope when the difference between the second change amount ⁇ P2 / ⁇ t of the atmospheric pressure during walking and the first change amount ⁇ P1 / ⁇ t of the atmospheric pressure at rest does not exceed the slope determination threshold value.
  • the smartphone 1 determines that the road is steep when the difference between the second change amount ⁇ P2 / ⁇ t and the first change amount ⁇ P1 / ⁇ t exceeds the slope determination threshold value.
  • the slope judgment threshold is set based on, for example, an altitude that affects the consumption of the user when walking on a slope, the slope angle of the slope, and the like.
  • the smartphone 1 determines that the user is walking on a gentle uphill. However, the gentle slope does not affect user consumption. As a result, the smartphone 1 sets the user's moving environment to “flat” and stores it in the state data 9Y in association with the acceleration value.
  • the smartphone 1 will be described as determining whether the uphill and downhill are gentle or steep, but the present invention is not limited to this.
  • the smartphone 1 may be configured to determine whether the moving environment in which the user is walking is an uphill, a downhill, or a slope.
  • the smartphone 1 determines that the user is in a walking state based on the acceleration value detected by the acceleration sensor 15 and the determination condition data.
  • the smartphone 1 calculates the second change amount ⁇ P3 / ⁇ t of the atmospheric pressure per unit time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and adds a time stamp to the calculated second change amount ⁇ P3 / ⁇ t. And stored in the atmospheric pressure data 9X.
  • the smart phone 1 detects that the 2nd variation
  • the smartphone 1 determines that the user is walking on a steep downhill, sets the user's moving environment as “slope”, and stores it in the state data 9Y in association with the acceleration value.
  • the smartphone 1 determines that the user is in a walking state based on the acceleration value detected by the acceleration sensor 15 and the determination condition data.
  • the smartphone 1 calculates the second change amount ⁇ P4 / ⁇ t of the atmospheric pressure per unit time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and adds a time stamp to the calculated second change amount ⁇ P4 / ⁇ t. And stored in the atmospheric pressure data 9X.
  • the smartphone 1 detects that the second change amount ⁇ P4 / ⁇ t of the atmospheric pressure is substantially equal to the first change amount ⁇ P1 / ⁇ t at rest. Thereby, the smartphone 1 determines that the user is walking on a flat ground, sets the user's moving environment to “flat”, and stores it in the state data 9Y in association with the acceleration value.
  • the smartphone 1 determines that the user is stationary based on the acceleration value detected by the acceleration sensor 15 and the determination condition data.
  • the smartphone 1 calculates the first change amount ⁇ P5 / ⁇ t of the atmospheric pressure per unit time based on the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and adds a time stamp to the calculated first change amount ⁇ P5 / ⁇ t. And stored in the atmospheric pressure data 9X. Thereafter, the smartphone 1 performs the above-described processing every unit time.
  • the smartphone 1 corrects the change amount of the atmospheric pressure when the user is moving based on the change amount of the atmospheric pressure when the user is stationary before moving, and based on the corrected change amount of the atmospheric pressure.
  • the smart phone 1 can reduce the influence of the change of the air
  • the smartphone 1 can improve the accuracy of calculating the altitude change when the user moves.
  • the smartphone 1 can also improve the accuracy of determining the moving environment by determining the moving environment of the user based on the altitude change.
  • FIG. 7 is a diagram illustrating an example of the state data 9Y.
  • the state data 9Y stores state information every predetermined time.
  • the state information includes items such as time, movement state, and movement environment.
  • the time indicates the time when the acceleration and the atmospheric pressure are detected.
  • the movement state indicates the movement state of the user who owns the smartphone 1.
  • the mobile environment indicates the environment of a user who is walking.
  • the state data 9Y includes state information corresponding to the above-described time t1 to time t5.
  • “stationary”, “walking”, “walking”, “walking”, and “stationary” are set as the movement states at time t1, time t2, time t3, time t4, and time t5, respectively.
  • “flat”, “slope”, and “flat” are set, respectively. Since the movement state at time t1 and time t5 is stationary, nothing is set as the movement environment.
  • the state information may include an item supplementing whether the slope is an uphill or a downhill when the moving environment is a slope.
  • the state information may include other items such as an atmospheric pressure change amount, an altitude change amount, a user consumption amount (calories).
  • the smartphone 1 executes the calculation application 9B and estimates the moving speed of the user based on the acceleration value for each unit time. For example, the smartphone 1 calculates the number of steps of the user based on the vertical acceleration value, and estimates the moving speed from the calculated number of steps.
  • the smartphone 1 calculates the change in altitude of the user during walking by applying the amount of change in atmospheric pressure per unit time to the altitude calculation formula.
  • the altitude calculation formula is a calculation formula for calculating the altitude change from the change amount of the atmospheric pressure.
  • the smartphone 1 uses the corrected atmospheric pressure data 9X, the state data 9Y, and a relational expression indicating the relationship between the movement speed and consumption corresponding to the user's movement environment, altitude change, and the like. Calculate the amount of consumption. Thereby, the smart phone 1 can improve the calculation accuracy of consumption by considering the altitude change of the user in which the change in the atmospheric pressure due to the change in the atmosphere is reduced.
  • FIG. 8 is a flowchart illustrating a processing procedure of an example of control by the smartphone 1.
  • the processing procedure shown in FIG. 8 is realized by the controller 10 executing the control program 9A.
  • the processing procedure shown in FIG. 8 is repeatedly executed every predetermined time.
  • the controller 10 of the smartphone 1 causes the acceleration sensor 15 to detect acceleration in step S101, adds a time stamp to the acceleration information indicating the acceleration value detected by the acceleration sensor 15, and adds acceleration data. Store in 9W.
  • the controller 10 causes the atmospheric pressure sensor 19 to detect the atmospheric pressure, adds a time stamp to the atmospheric pressure information indicating the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and stores the atmospheric pressure data 9X.
  • Controller 10 discriminate
  • the controller 10 calculates the 1st variation
  • the controller 10 adds a time stamp and stores the first change amount in the storage 9.
  • the controller 10 calculates the altitude change based on the first change amount and stores it in the storage 9 as step S107.
  • the altitude change includes, for example, an altitude change amount and a changed altitude value. Thereafter, the controller 10 ends the processing procedure shown in FIG.
  • step S104 When it is a walking state (step S104, Yes), the controller 10 progresses to step S108.
  • the controller 10 calculates the 2nd variation
  • Step S111 the controller 10 associates the moving environment with the second change amount to which the time stamp has been added and stores it in the atmospheric pressure data 9X. Then, the controller 10 calculates the altitude change based on the corrected second change amount and stores it in the storage 9 as step S112. Thereafter, the controller 10 ends the processing procedure shown in FIG.
  • the smartphone 1 calculates the change in altitude per unit time each time acceleration and atmospheric pressure are detected.
  • the present invention is not limited to this.
  • the smartphone 1 may be configured to calculate a change in altitude based on the amount of change in atmospheric pressure during the movement after the movement of the user is completed.
  • each program shown in FIG. 4 may be divided into a plurality of modules, or may be combined with other programs.
  • FIG. 9 is a flowchart illustrating a processing procedure of a first modified example of control by the smartphone 1.
  • the processing procedure shown in FIG. 9 is realized by the controller 10 executing the control program 9A. In the following description, overlapping description may be omitted.
  • the controller 10 of the smartphone 1 causes the acceleration sensor 15 to detect acceleration and adds a time stamp to acceleration information indicating the value of the acceleration detected by the acceleration sensor 15 in step S201 to obtain acceleration data.
  • the controller 10 causes the atmospheric pressure sensor 19 to detect the atmospheric pressure, adds a time stamp to the atmospheric pressure information indicating the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and stores the atmospheric pressure data 9X.
  • Controller 10 discriminate
  • the controller 10 proceeds to step S205.
  • the controller 10 calculates the 1st variation
  • step S206 the controller 10 adds a time stamp and stores the first change amount in the storage 9.
  • the controller 10 sets a 2nd space
  • the second interval is a time for monitoring the atmospheric pressure fluctuation when the user is stationary. Specifically, the controller 10 sets the detection time for detecting acceleration and atmospheric pressure next to be the second interval. Then, the controller 10 calculates the altitude change based on the first change amount and stores it in the storage 9 as step S208. Thereafter, the controller 10 proceeds to step S215.
  • the controller 10 determines whether it is a detection time as step S215. When it is detection time (step S215, Yes), the controller 10 returns to step S201. If it is not the detection time (step S215, No), the controller 10 proceeds to step S216.
  • Controller 10 determines whether or not to end in step S216. For example, the controller 10 determines to end when detecting a power-off operation of the smartphone 1. When it is not the end (step S216, No), the controller 10 returns to step S215. When it is the end (step S216, Yes), the controller 10 ends the processing procedure shown in FIG.
  • step S204 When it is a walking state (step S204, Yes), the controller 10 progresses to step S209.
  • the controller 10 calculates the 2nd variation
  • step S212 the controller 10 associates the moving environment with the second change amount to which the time stamp has been added and stores it in the atmospheric pressure data 9X. And the controller 10 sets a 1st space
  • the first interval is the time for monitoring the pressure fluctuation when the user is walking. The first interval is longer than the second interval.
  • the controller 10 calculates the altitude change based on the corrected second change amount and stores it in the storage 9 in step S214. Thereafter, the controller 10 proceeds to step S215 already described.
  • the smartphone 1 when the user is walking (moving), the smartphone 1 causes the atmospheric pressure sensor 19 to detect the atmospheric pressure at the first interval, and is shorter than the first interval when the user is stationary.
  • the atmospheric pressure sensor 19 detects the atmospheric pressure at the second interval.
  • the smart phone 1 can improve the precision which judges an atmospheric
  • the smartphone 1 can determine whether or not the amount of change in atmospheric pressure at rest is due to changes in the atmosphere, and can subtract the amount of change in atmospheric pressure from the amount of change in atmospheric pressure during movement.
  • the smartphone 1 may be modified so as to correct the amount of change in the atmospheric pressure in the walking state based on the change in the atmospheric pressure in the stationary state after movement.
  • FIG. 10 is a flowchart illustrating a processing procedure of a second modification of the control by the smartphone 1.
  • the processing procedure shown in FIG. 10 is realized by the controller 10 executing the control program 9A.
  • the controller 10 of the smartphone 1 causes the acceleration sensor 15 to detect acceleration in step S301, adds a time stamp to the acceleration information indicating the acceleration value detected by the acceleration sensor 15, and adds acceleration data. Store in 9W.
  • the controller 10 causes the atmospheric pressure sensor 19 to detect the atmospheric pressure, adds a time stamp to the atmospheric pressure information indicating the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and stores the atmospheric pressure data 9X.
  • Controller 10 discriminate
  • the controller 10 proceeds to step S305.
  • the controller 10 calculates the 1st variation
  • the controller 10 adds a time stamp and stores the first change amount in the storage 9. Then, the controller 10 calculates the altitude change based on the first change amount and stores it in the storage 9 as step S307.
  • step S308 the controller 10 determines whether it is a change period.
  • the change period is a range of time determined to temporarily increase the sampling rate for detecting the atmospheric pressure after switching from the walking state to the stationary state.
  • the controller 10 determines that it is the change period when the time since switching from the walking state to the stationary state is within the range.
  • step S308, Yes the controller 10 progresses to step S309.
  • the controller 10 sets a 3rd space
  • the third interval is a time in which the time for monitoring the atmospheric pressure fluctuation is temporarily shorter than the second interval when the user is stationary. Thereafter, the controller 10 proceeds to step S320.
  • the controller 10 determines whether it is detection time as step S320. When it is detection time (step S320, Yes), the controller 10 returns to step S301. When it is not the detection time (step S320, No), the controller 10 proceeds to step S321.
  • Controller 10 determines whether or not to end in step S321. For example, the controller 10 determines to end when detecting a power-off operation of the smartphone 1. When it is not the end (step S321, No), the controller 10 returns to step S320. When it is the end (step S321, Yes), the controller 10 ends the processing procedure shown in FIG.
  • Step S310 The controller 10 sets a 2nd space
  • the controller 10 determines whether it is a correction timing as step S311.
  • the correction timing is a timing for correcting the change in atmospheric pressure when the user is moving based on the atmospheric pressure fluctuation detected after the user stops.
  • the correction timing is when the user transitions from the walking state to the stationary state and ends the sampling rate change period.
  • the controller 10 determines that it is the correction timing when the elapsed time since the user has entered a stationary state deviates from the change period.
  • the controller 10 proceeds to step S320 already described.
  • Step S312 the controller 10 corrects the second change amount based on the first change amount after movement. For example, the controller 10 performs correction when the difference between the first change amount before and after the movement satisfies a predetermined condition. Further, the target of the second change amount to be corrected includes, for example, all the second change amounts during movement, the second change amount that is traced back by a predetermined number from the stationary state after movement, and the like.
  • a method for correcting the second change amount of the atmospheric pressure for example, a method of correcting by subtracting the difference between the first change amount before and after the movement from the second change amount, before correction based on the first change amount after the movement. Including a method of correcting the second change amount.
  • step S313 the controller 10 corrects the altitude change stored in the storage 9 based on the corrected second change amount. Thereafter, the controller 10 proceeds to step S320 already described.
  • step S304 When it is a walking state (step S304, Yes), the controller 10 progresses to step S314.
  • the controller 10 calculates the 2nd variation
  • the controller 10 discriminate
  • step S316 the controller 10 corrects the second change amount based on the first change amount before the movement.
  • step S317 the controller 10 associates the moving environment with the second change amount to which the time stamp has been added and stores it in the atmospheric pressure data 9X. And the controller 10 sets a 1st space
  • the smartphone 1 when the smartphone 1 detects that the user is in the stationary state, the smartphone 1 temporarily detects the atmospheric pressure at the third interval shorter than the second interval, thereby detecting the atmospheric pressure in the stationary state.
  • the first change amount is calculated.
  • the smart phone 1 can grasp
  • the smartphone 1 corrects the second change amount during movement even with the first change amount after movement. Therefore, when the movement time of the user becomes long and the first change amount of the atmospheric pressure before and after the movement changes greatly, the smartphone 1 can correct the change amount of the atmospheric pressure during the movement.
  • the controller 10 described the case where the altitude change is corrected based on the corrected second change amount as step S313, but is not limited thereto.
  • the controller 10 may be configured to recalculate the altitude change based on the corrected second change amount.
  • FIG. 11 is a flowchart illustrating a processing procedure of a third modification of the control by the smartphone 1.
  • the processing procedure shown in FIG. 11 is realized by the controller 10 executing the control program 9A.
  • the processing procedure shown in FIG. 11 is repeatedly executed every predetermined time.
  • the controller 10 of the smartphone 1 causes the acceleration sensor 15 to detect acceleration in step S401, adds a time stamp to the acceleration information indicating the acceleration value detected by the acceleration sensor 15, and adds acceleration data. Store in 9W.
  • the controller 10 causes the atmospheric pressure sensor 19 to detect the atmospheric pressure, adds a time stamp to the atmospheric pressure information indicating the value of the atmospheric pressure detected by the atmospheric pressure sensor 19, and stores the atmospheric pressure data 9X.
  • Controller 10 discriminate
  • the controller 10 proceeds to step S405.
  • the controller 10 calculates the 1st variation
  • the controller 10 adds a time stamp and stores the first change amount in the storage 9. Then, the controller 10 calculates an altitude change based on the first change amount and stores it in the storage 9 as step S407. Thereafter, the controller 10 ends the processing procedure shown in FIG.
  • step S404 When it is a walking state (step S404, Yes), the controller 10 progresses to step S408.
  • the controller 10 calculates the 2nd variation
  • controller 10 discriminate
  • Step S411 the controller 10 determines whether the moving environment determined in Step S409 is a slope. When it is not a slope (step S411, No), the controller 10 ends the processing procedure shown in FIG. When it is a slope (step S411, Yes), the controller 10 progresses to step S412.
  • Controller 10 calculates the duration of walking on the hill based on the moving state of state data 9Y as step S412. And the controller 10 determines whether the continuation time exceeded the determination threshold value as step S413.
  • the determination threshold is a time set for determining a continuous movement. When the duration does not exceed the determination threshold value (step S413, No), the controller 10 ends the processing procedure illustrated in FIG. When the duration exceeds the determination threshold (step S413, Yes), the controller 10 proceeds to step S414.
  • the controller 10 corrects the second change amount based on the first change amount in step S414. Specifically, the controller 10 subtracts the first change amount from the second change amount, thereby subtracting the amount of fluctuation in the stationary air pressure from the change amount of the atmospheric pressure during movement. Then, the controller 10 calculates an altitude change based on the corrected second change amount and stores it in the storage 9 in step S415. Thereafter, the controller 10 ends the processing procedure shown in FIG.
  • the smartphone 1 corrects and corrects the change amount of the atmospheric pressure when the user is moving based on the change amount of the atmospheric pressure when the user is stationary.
  • the altitude change of the user is calculated based on the change amount of the atmospheric pressure.
  • the smart phone 1 can reduce the influence of the change of the air
  • the smartphone 1 can efficiently perform the correction process only on a portion that may cause a large error, and reduce the load on the controller 10.
  • the smartphone 1 has been described with respect to the case where the acceleration sensor 15 and the atmospheric pressure sensor 19 are detected at the same timing, but the present invention is not limited to this.
  • the smartphone 1 may detect the acceleration sensor 15 and the atmospheric pressure sensor 19 at different timings.
  • the smartphone 1 has been described with respect to the case where the user is moving by walking, but the moving method of the user is not limited to this.
  • the smartphone 1 may be configured to correct the change amount of the atmospheric pressure when the user is running and moving based on the change amount of the atmospheric pressure before and after the movement.
  • the smartphone 1 may determine whether to correct the second change amount in the moving state with the first change amount in the stationary state based on, for example, weather in a day, a time zone, or the like. Good. For example, if the weather forecast is clear, the weather may not change. Thereby, the smartphone 1 acquires the weather forecast data via communication by the communication unit 6, and determines that there is no atmospheric pressure fluctuation when there is no change in weather based on the acquired weather forecast data, and the second You may comprise so that correction
  • a smartphone has been described as an example of a portable electronic device including an atmospheric pressure sensor, but the portable electronic device according to the appended claims is not limited to a smartphone.
  • the portable electronic device according to the appended claims may be a portable electronic device other than a smartphone. Examples of portable electronic devices include, but are not limited to, mobile phones, tablets, portable personal computers, smart watches, digital cameras, media players, electronic book readers, navigators, and game machines.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

 携帯電子機器(例えば、スマートフォン)は、気圧センサと、加速度センサと、コントローラとを備える。気圧センサは、携帯電子機器に作用する気圧を検出する。加速度センサは、携帯電子機器に作用する加速度を検出する。コントローラは、加速度に基づいて自機の移動を検出する。コントローラは、自機が移動していない場合の気圧変動に基づいて自機が移動している場合の気圧変化を補正して、自機の高度変化を算出する。

Description

携帯電子機器、制御方法、及び制御プログラム
 本出願は、携帯電子機器、制御方法、及び制御プログラムに関する。
 携帯電話やスマートフォンなどの携帯電子機器には、気圧センサを搭載したものがある。例えば、特許文献1には、気圧センサを搭載した携帯電子機器が開示されている。
特開2005-230340号公報
 上記の携帯電子機器では、気圧センサによって気圧の変化を検出して、高度変化を検出することができるものがある。
 1つの態様に係る携帯電子機器は、気圧を検出する気圧センサと、加速度を検出する加速度センサと、前記加速度に基づいて自機の移動を検出するコントローラとを備え、前記コントローラは、前記自機が移動していない場合の気圧変動に基づいて前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出する。
 1つの態様に係る制御方法は、気圧センサと、加速度センサとを備える携帯電子機器の制御方法であって、前記気圧センサによって前記携帯電子機器に作用する気圧を検出するステップと、前記加速度センサによって前記携帯電子機器に作用する加速度を検出するステップと、前記加速度に基づいて前記携帯電子機器の移動を検出するステップと、自機が移動していない場合の気圧変動に基づいて、前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出するステップとを含む。
 1つの態様に係る制御プログラムは、気圧センサと、加速度センサとを備える携帯電子機器に、前記気圧センサによって前記携帯電子機器に作用する気圧を検出するステップと、前記加速度センサによって前記携帯電子機器に作用する加速度を検出するステップと、前記加速度に基づいて前記携帯電子機器の移動を検出するステップと、自機が移動していない場合の気圧変動に基づいて、前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出するステップとを実行させる。
図1は、複数の実施形態の1つに係るスマートフォンの斜視図である。 図2は、スマートフォンの正面図である。 図3は、スマートフォンの背面図である。 図4は、スマートフォンのブロック図である。 図5は、スマートフォンが検出したある1日の気圧の推移を示す図である。 図6は、気圧と時間と移動状態との関係の例を説明するための図である。 図7は、状態データの例を示す図である。 図8は、スマートフォンによる制御の例の処理手順を示すフローチャートである。 図9は、スマートフォンによる制御の第1の変形例の処理手順を示すフローチャートである。 図10は、スマートフォンによる制御の第2の変形例の処理手順を示すフローチャートである。 図11は、スマートフォンによる制御の第3の変形例の処理手順を示すフローチャートである。
 本出願に係る電子機器、制御方法、及び制御プログラムを実施するための複数の実施形態を、図面を参照しつつ詳細に説明する。以下では、携帯電子機器の1つの例として、スマートフォンについて説明する。
(実施形態)
 図1から図3を参照しながら、実施形態の一例に係るスマートフォン1の全体的な構成について説明する。図1から図3に示すように、スマートフォン1は、ハウジング20を有する。ハウジング20は、フロントフェイス1Aと、バックフェイス1Bと、サイドフェイス1C1~1C4とを有する。フロントフェイス1Aは、ハウジング20の正面である。バックフェイス1Bは、ハウジング20の背面である。サイドフェイス1C1~1C4は、フロントフェイス1Aとバックフェイス1Bとを接続する側面である。以下では、サイドフェイス1C1~1C4を、どの面であるかを特定することなく、サイドフェイス1Cと総称することがある。
 スマートフォン1は、タッチスクリーンディスプレイ2と、ボタン3A~3Cと、照度センサ4と、近接センサ5と、レシーバ7と、マイク8と、カメラ12とをフロントフェイス1Aに有する。スマートフォン1は、スピーカ11と、カメラ13とをバックフェイス1Bに有する。スマートフォン1は、ボタン3D~3Fと、コネクタ14とをサイドフェイス1Cに有する。以下では、ボタン3A~3Fを、どのボタンであるかを特定することなく、ボタン3と総称することがある。
 タッチスクリーンディスプレイ2は、ディスプレイ2Aと、タッチスクリーン2Bとを有する。図1の例では、ディスプレイ2A及びタッチスクリーン2Bはそれぞれ略長方形状であるが、ディスプレイ2A及びタッチスクリーン2Bの形状はこれに限定されない。ディスプレイ2A及びタッチスクリーン2Bは、それぞれが正方形又は円形等のどのような形状もとりうる。図1の例では、ディスプレイ2A及びタッチスクリーン2Bは重ねて配置されているが、ディスプレイ2A及びタッチスクリーン2Bの配置はこれに限定されない。ディスプレイ2A及びタッチスクリーン2Bは、例えば、並べて配置されてもよいし、離して配置されてもよい。図1の例では、ディスプレイ2Aの長辺はタッチスクリーン2Bの長辺に沿っており、ディスプレイ2Aの短辺はタッチスクリーン2Bの短辺に沿っているが、ディスプレイ2A及びタッチスクリーン2Bの重ね方はこれに限定されない。ディスプレイ2Aとタッチスクリーン2Bとが重ねて配置される場合、例えば、ディスプレイ2Aの1ないし複数の辺がタッチスクリーン2Bのいずれの辺とも沿っていなくてもよい。
 ディスプレイ2Aは、液晶ディスプレイ(LCD:Liquid Crystal Display)、有機ELディスプレイ(OELD:Organic Electro-Luminescence Display)、又は無機ELディスプレイ(IELD:Inorganic Electro-Luminescence Display)等の表示デバイスを備える。ディスプレイ2Aは、文字、画像、記号、及び図形等を表示する。
 タッチスクリーン2Bは、タッチスクリーン2Bに対する指、ペン、又はスタイラスペン等の接触を検出する。タッチスクリーン2Bは、複数の指、ペン、又はスタイラスペン等がタッチスクリーン2Bに接触した位置を検出することができる。以下の説明では、タッチスクリーン2Bに対して接触する指、ペン、又はスタイラスペン等を、「接触オブジェクト」又は「接触物」と呼ぶことがある。
 タッチスクリーン2Bの検出方式は、静電容量方式、抵抗膜方式、表面弾性波方式(又は超音波方式)、赤外線方式、電磁誘導方式、及び荷重検出方式等の任意の方式でよい。以下の説明では、説明を簡単にするため、利用者はスマートフォン1を操作するために指を用いてタッチスクリーン2Bに接触するものと想定する。
 スマートフォン1は、タッチスクリーン2Bにより検出された接触、接触が検出された位置、接触が検出された位置の変化、接触が検出された間隔、及び接触が検出された回数の少なくとも1つに基づいてジェスチャの種別を判別する。ジェスチャは、タッチスクリーン2Bに対して行われる操作である。スマートフォン1によって判別されるジェスチャは、例えば、タッチ、ロングタッチ、リリース、スワイプ、タップ、ダブルタップ、ロングタップ、ドラッグ、フリック、ピンチイン、及びピンチアウトを含むがこれらに限定されない。
 「タッチ」は、タッチスクリーン2Bに指が触れるジェスチャである。スマートフォン1は、タッチスクリーン2Bに指が接触するジェスチャをタッチとして判別する。「ロングタッチ」は、タッチスクリーン2Bに指が一定時間より長く触れるジェスチャである。スマートフォン1は、タッチスクリーン2Bに指が一定時間より長く接触するジェスチャをロングタッチとして判別する。
 「リリース」は、指がタッチスクリーン2Bから離れるジェスチャである。スマートフォン1は、指がタッチスクリーン2Bから離れるジェスチャをリリースとして判別する。「スワイプ」は、指がタッチスクリーン2Bに接触したままで移動するジェスチャである。スマートフォン1は、指がタッチスクリーン2Bに接触したままで移動するジェスチャをスワイプとして判別する。
 「タップ」は、タッチに続いてリリースをするジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャをタップとして判別する。「ダブルタップ」は、タッチに続いてリリースをするジェスチャが2回連続するジェスチャである。スマートフォン1は、タッチに続いてリリースをするジェスチャが2回連続するジェスチャをダブルタップとして判別する。
 「ロングタップ」は、ロングタッチに続いてリリースをするジェスチャである。スマートフォン1は、ロングタッチに続いてリリースをするジェスチャをロングタップとして判別する。「ドラッグ」は、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャである。スマートフォン1は、移動可能なオブジェクトが表示されている領域を始点としてスワイプをするジェスチャをドラッグとして判別する。
 「フリック」は、指が、タッチスクリーン2Bに触れた後移動しながらタッチスクリーン2Bから離れるジェスチャである。すなわち、「フリック」は、タッチに続いて指が移動しながらリリースが行われるジェスチャである。スマートフォン1は、指が、タッチスクリーン2Bに触れた後移動しながらタッチスクリーン2Bから離れるジェスチャをフリックとして判別する。フリックは、指が一方方向へ移動しながら行われることが多い。フリックは、指が画面の上方向へ移動する「上フリック」、指が画面の下方向へ移動する「下フリック」、指が画面の右方向へ移動する「右フリック」、指が画面の左方向へ移動する「左フリック」等を含む。フリックにおける指の移動は、スワイプにおける指の移動よりも素早いことが多い。
 「ピンチイン」は、複数の指が互いに近付く方向にスワイプするジェスチャである。スマートフォン1は、タッチスクリーン2Bにより検出されるある指の位置と他の指の位置との間の距離が短くなるジェスチャをピンチインとして判別する。「ピンチアウト」は、複数の指が互いに遠ざかる方向にスワイプするジェスチャである。スマートフォン1は、タッチスクリーン2Bにより検出されるある指の位置と他の指の位置との間の距離が長くなるジェスチャをピンチアウトとして判別する。
 以下の説明では、1本の指により行われるジェスチャを「シングルタッチジェスチャ」と呼び、2本以上の指により行われるジェスチャを「マルチタッチジェスチャ」と呼ぶことがある。マルチタッチジェスチャは、例えば、ピンチインおよびピンチアウトを含む。タップ、フリックおよびスワイプ等は、1本の指で行われればシングルタッチジェスチャであり、2本以上の指で行われればマルチタッチジェスチャである。
 スマートフォン1は、タッチスクリーン2Bを介して判別するこれらのジェスチャに従って動作を行う。このため、利用者にとって直感的で使いやすい操作性が実現される。判別されるジェスチャに従ってスマートフォン1が行う動作は、ディスプレイ2Aに表示されている画面に応じて異なることがある。以下の説明では、説明を簡単にするために、「タッチスクリーン2Bが接触を検出し、検出された接触に基づいてジェスチャの種別をスマートフォン1がXと判別すること」を、「スマートフォンがXを検出する」、又は「コントローラがXを検出する」と記載することがある。
 図4は、スマートフォン1のブロック図である。スマートフォン1は、タッチスクリーンディスプレイ2と、ボタン3と、照度センサ4と、近接センサ5と、通信ユニット6と、レシーバ7と、マイク8と、ストレージ9と、コントローラ10と、スピーカ11と、カメラ12及び13と、コネクタ14と、加速度センサ15と、方位センサ16と、ジャイロスコープ17と、気圧センサ19とを有する。
 タッチスクリーンディスプレイ2は、上述したように、ディスプレイ2Aと、タッチスクリーン2Bとを有する。ディスプレイ2Aは、文字、画像、記号、又は図形等を表示する。タッチスクリーン2Bは、接触を検出する。コントローラ10は、スマートフォン1に対するジェスチャを検出する。具体的には、コントローラ10は、タッチスクリーン2Bと協働することによって、タッチスクリーン2B(タッチスクリーンディスプレイ2)に対する操作(ジェスチャ)を検出する。
 ボタン3は、利用者によって操作される。ボタン3は、ボタン3A~ボタン3Fを有する。コントローラ10はボタン3と協働することによってボタン3に対する操作を検出する。ボタン3に対する操作は、例えば、クリック、ダブルクリック、トリプルクリック、プッシュ、及びマルチプッシュを含むが、これらに限定されない。
 ボタン3A~3Cは、例えば、ホームボタン、バックボタン又はメニューボタンである。ボタン3Dは、例えば、スマートフォン1のパワーオン/オフボタンである。ボタン3Dは、スリープ/スリープ解除ボタンを兼ねてもよい。ボタン3E及び3Fは、例えば、音量ボタンである。
 照度センサ4は、スマートフォン1の周囲光の照度を検出する。照度は、光の強さ、明るさ、又は輝度を示す。照度センサ4は、例えば、ディスプレイ2Aの輝度の調整に用いられる。近接センサ5は、近隣の物体の存在を非接触で検出する。近接センサ5は、磁界の変化又は超音波の反射波の帰還時間の変化等に基づいて物体の存在を検出する。近接センサ5は、例えば、タッチスクリーンディスプレイ2が顔に近付けられたことを検出する。照度センサ4及び近接センサ5は、一つのセンサとして構成されていてもよい。照度センサ4は、近接センサとして用いられてもよい。
 通信ユニット6は、無線により通信する。通信ユニット6によってサポートされる通信方式は、無線通信規格である。無線通信規格として、例えば、2G、3G、4G等のセルラーフォンの通信規格がある。セルラーフォンの通信規格として、例えば、LTE(Long Term Evolution)、W-CDMA(Wideband Code Division Multiple Access)、CDMA2000、PDC(Personal Digital Cellular)、GSM(登録商標)(Global System for Mobile Communications)、PHS(Personal Handy-phone System)等がある。無線通信規格として、さらに、例えば、WiMAX(Worldwide Interoperability for Microwave Access)、IEEE802.11、Bluetooth(登録商標)、IrDA(Infrared Data Association)、NFC(Near Field Communication)等がある。通信ユニット6は、上述した通信規格の1つ又は複数をサポートしていてもよい。
 レシーバ7及びスピーカ11は、音出力部である。レシーバ7及びスピーカ11は、コントローラ10から送信される音信号を音として出力する。レシーバ7は、例えば、通話時に相手の声を出力するために用いられる。スピーカ11は、例えば、着信音及び音楽を出力するために用いられる。レシーバ7及びスピーカ11の一方が、他方の機能を兼ねてもよい。マイク8は、音入力部である。マイク8は、利用者の音声等を音信号へ変換してコントローラ10へ送信する。
 ストレージ9は、プログラム及びデータを記憶する。ストレージ9は、コントローラ10の処理結果を一時的に記憶する作業領域としても利用される。ストレージ9は、半導体記憶媒体、及び磁気記憶媒体等の任意の非一過的(non-transitory)な記憶媒体を含んでよい。ストレージ9は、複数の種類の記憶媒体を含んでよい。ストレージ9は、メモリカード、光ディスク、又は光磁気ディスク等の可搬の記憶媒体と、記憶媒体の読み取り装置との組み合わせを含んでよい。ストレージ9は、RAM(Random Access Memory)等の一時的な記憶領域として利用される記憶デバイスを含んでよい。
 ストレージ9に記憶されるプログラムには、フォアグランド又はバックグランドで実行されるアプリケーションと、アプリケーションの動作を支援する制御プログラムとが含まれる。アプリケーションは、例えば、ディスプレイ2Aに画面を表示させ、タッチスクリーン2Bを介して検出されるジェスチャに応じた処理をコントローラ10に実行させる。制御プログラムは、例えば、OSである。アプリケーション及び制御プログラムは、通信ユニット6による無線通信又は非一過的な記憶媒体を介してストレージ9にインストールされてもよい。
 ストレージ9は、例えば、制御プログラム9A、算出アプリケーション9B、加速度データ9W、気圧データ9X、状態データ9Y、及び設定データ9Zを記憶する。算出アプリケーション9Bは、例えば、スマートフォン1を所持する利用者の移動時におけるエネルギ消費量を算出するための機能を提供する。加速度データ9Wは、スマートフォン1に作用する加速度を示す情報を含む。気圧データ9Xは、スマートフォン1に作用する気圧を示す情報を含む。状態データ9Yは、スマートフォン1の利用者の移動状態を示す情報を含む。設定データ9Zは、スマートフォン1の動作に関する各種の設定に関する情報を含む。
 制御プログラム9Aは、スマートフォン1を稼働させるための各種制御に関する機能を提供する。制御プログラム9Aは、例えば、通信ユニット6、レシーバ7、及びマイク8等を制御することによって、通話を実現させる。制御プログラム9Aが提供する機能には、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を行う機能が含まれる。制御プログラム9Aが提供する機能には、加速度センサ15及び気圧センサ19等を制御することによって、スマートフォン1を所持する利用者の移動、停止等を検出する機能が含まれる。制御プログラム9Aが提供する機能は、算出アプリケーション9B等の他のプログラムが提供する機能と組み合わせて利用されることがある。
 制御プログラム9Aは、加速度センサ15が検出した加速度の値に基づいて、スマートフォン1(自機)を所持している利用者(対象物)が所定の移動方法で移動しているかを判定するための機能を提供する。移動方法としては、例えば、利用者が自力で移動する第1移動方法と、利用者が移動体によって移動される第2移動方法とを含む。第1移動方法としては、例えば、徒歩、ランニング、自転車等によって利用者が自力で移動する方法を含む。第2移動方法としては、例えば、自動車、電車、エレベーター、エスカレーター等の移動体によって利用者が移動される方法を含む。制御プログラム9Aは、加速度センサ15が検出した加速度の値に基づいて、利用者が移動していることを判定して、スマートフォン1の移動を判定する。
 算出アプリケーション9Bは、例えば、利用者のエネルギ消費量を算出するために用いられる。算出アプリケーション9Bは、例えば、利用者の移動速度(歩数)とエネルギ消費量との関係式に、利用者の移動速度を当てはめて、利用者の消費量を算出するための機能を提供する。この利用者のエネルギ消費量は、利用者の移動方法を考慮して算出してもよい。例えば、利用者が同じ歩数を歩いた場合に、算出アプリケーション9Bは、利用者が歩きおよび走行のいずれかに応じて、エネルギ消費量の関係式を変更してもよい。この利用者のエネルギ消費量は、利用者の移動環境を考慮して算出してもよい。例えば、利用者が同じ歩数を歩いた場合に、算出アプリケーション9Bは、利用者が歩いている道が平坦であるか、上り坂であるかに応じて、エネルギ消費量の関係式を変更してもよい。このエネルギ消費量としては、例えば、日本国の計量法に基づいて「人若しくは動物が摂取する物の熱量又は人若しくは動物が代謝により消費する熱量の計量」として熱力学カロリー(cal)が採用される。エネルギ消費量の計量はこれに限られるものではなく、CGPM(Conference General des Poids et Mesures)に基づいてジュール(J)が採用されてもよい。
 算出アプリケーション9Bが算出する対象は、利用者のエネルギ消費量に限定されるものではなく、利用者のエクササイズ、歩行によって移動した際の歩数などを算出してもよい。「エクササイズ」とは、身体活動の量を表す単位である。エクササイズは、後述するメッツに身体活動の実施時間を乗じて算出される運動の量である。このメッツとは、身体活動の強さを表す単位である。この身体活動の強さは、身体活動の種類ごとに異なる。メッツは、例えば使用者の移動方法ごとに設定される。メッツは、活動量を示す活動ファクタであるエネルギ消費量の演算に用いてもよい。メッツでは、安静時の身体活動の強さに対する比として表される。例えば、座って安静にしている状態が1メッツ、普通歩行が3メッツに相当するとされる。つまり、普通歩行の身体活動の強さは、安静時の身体活動の強さに対して、3倍であることを意味する。
 加速度データ9Wには、複数の加速度情報が時系列的に記憶される。加速度情報は、時間と、加速度の値といった項目を含む。時間は、加速度センサ15によって加速度を検出した時間を示す。加速度の値は、加速度センサ15によって検出した加速度の値を示す。
 気圧データ9Xには、複数の気圧情報が時系列的に記憶される。気圧情報は、時間と、気圧の値と、気圧の変化量といった項目を含む。時間は、気圧センサ19によって気圧を検出した時間を示す。気圧の値は、気圧センサ19によって検出した気圧の値を示す。気圧の変化量は、気圧センサ19によって検出した気圧の単位時間当たりの変化量を示す。
 状態データ9Yには、複数の状態情報が記憶される。状態データ9Yの詳細については、後述する。
 設定データ9Zは、スマートフォン1の移動に関する判定を行うための判定条件データを含む。判定条件データは、制御プログラム9Aが加速度センサ15によって検出した加速度の値に基づいて、自機(スマートフォン1)を所持している利用者が所定の移動方法で移動しているかを判定するための条件を含む。例えば、判定条件データには、所定の移動方法で移動しているときにスマートフォン1に加わる加速度の方向及び大きさに基づく加速度の振動パターン、加速度の方向及び大きさの範囲等が含まれる。
 コントローラ10は、演算処理装置である。演算処理装置は、例えば、CPU(Central Processing Unit)、SoC(System-on-a-chip)、MCU(Micro Control Unit)、FPGA(Field-Programmable Gate Array)、及びコプロセッサを含むが、これらに限定されない。コントローラ10は、スマートフォン1の動作を統括的に制御して各種の機能を実現する。
 具体的には、コントローラ10は、ストレージ9に記憶されているデータを必要に応じて参照しつつ、ストレージ9に記憶されているプログラムに含まれる命令を実行する。そして、コントローラ10は、データ及び命令に応じて機能部を制御し、それによって各種機能を実現する。機能部は、例えば、ディスプレイ2A、通信ユニット6、レシーバ7、及びスピーカ11を含むが、これらに限定されない。コントローラ10は、検出部の検出結果に応じて、制御を変更することがある。検出部は、例えば、タッチスクリーン2B、ボタン3、照度センサ4、近接センサ5、マイク8、カメラ12、カメラ13、加速度センサ15、方位センサ16、ジャイロスコープ17、及び気圧センサ19を含むが、これらに限定されない。
 コントローラ10は、例えば、制御プログラム9Aを実行することにより、タッチスクリーン2Bを介して検出されたジェスチャに応じて、ディスプレイ2Aに表示されている情報を変更する等の各種制御を実行する。
 カメラ12は、フロントフェイス1Aに面している物体を撮影するインカメラである。カメラ13は、バックフェイス1Bに面している物体を撮影するアウトカメラである。
 コネクタ14は、他の装置が接続される端子である。コネクタ14は、USB(Universal Serial Bus)、HDMI(登録商標)(High-Definition Multimedia Interface)、ライトピーク(サンダーボルト(登録商標))、イヤホンマイクコネクタのような汎用的な端子であってもよい。コネクタ14は、Dockコネクタのような専用の端子でもよい。コネクタ14に接続される装置は、例えば、外部ストレージ、スピーカ、及び通信装置を含むが、これらに限定されない。
 加速度センサ15は、スマートフォン1に働く加速度の方向及び大きさを検出する。方位センサ16は、地磁気の向きを検出する。ジャイロスコープ17は、スマートフォン1の角度及び角速度を検出する。気圧センサ19は、スマートフォン1に作用する気圧を検出する。加速度センサ15、方位センサ16、ジャイロスコープ17、及び気圧センサ19の検出結果は、スマートフォン1の位置及び姿勢の変化を検出するために、組み合わせて利用される。
 図4においてストレージ9が記憶するプログラム及びデータの一部又は全部は、通信ユニット6による無線通信で他の装置からダウンロードされてもよい。図4においてストレージ9が記憶するプログラム及びデータの一部又は全部は、ストレージ9に含まれる読み取り装置が読み取り可能な非一過的な記憶媒体に記憶されていてもよい。図4においてストレージ9が記憶するプログラム及びデータの一部又は全部は、コネクタ14に接続される読み取り装置が読み取り可能な非一過的な記憶媒体に記憶されていてもよい。非一過的な記憶媒体は、例えば、CD(登録商標)、DVD(登録商標)、Blu-ray(登録商標)等の光ディスク、光磁気ディスク、磁気記憶媒体、メモリカード、及びソリッドステート記憶媒体を含むが、これらに限定されない。
 図4に示したスマートフォン1の構成は例であり、本発明の要旨を損なわない範囲において適宜変更してよい。例えば、ボタン3の数と種類は図4の例に限定されない。スマートフォン1は、画面に関する操作のためのボタンとして、ボタン3A~3Cに代えて、テンキー配列又はQWERTY配列等のボタンを備えていてもよい。スマートフォン1は、画面に関する操作のために、ボタンを1つだけ備えてもよいし、ボタンを備えなくてもよい。図4に示した例では、スマートフォン1が2つのカメラを備えるが、スマートフォン1は、1つのカメラのみを備えてもよいし、カメラを備えなくてもよい。図4に示した例では、スマートフォン1が位置及び姿勢を検出するために4種類のセンサを備えるが、スマートフォン1は、このうちいくつかのセンサを備えなくてもよい。あるいは、スマートフォン1は、位置及び姿勢の少なくとも1つを検出するための他の種類のセンサを備えてもよい。
 次に、スマートフォン1による移動状態及び高度変化の検出に関する制御の例について説明する。
 スマートフォン1のコントローラ10は、加速度センサ15に加速度を検出させ、気圧センサ19に気圧を検出させる。そして、加速度センサ15は、軸(例えばx軸、y軸、z軸)ごとの加速度の値を電流値としてコントローラ10に出力する。気圧センサ19は、気圧の値を電流値としてコントローラ10に出力する。
 一般に、気圧の値は、高度が低いほど高く、高度が高いほど低い。そして、気圧の変動は、日々刻々と変化量も異なり、一概に規定することが難しい。そして、図5は、スマートフォン1が検出したある1日の大気圧の推移を示す図である。図5は、スマートフォン1が静止した状態で、高度の変化がない雨の日に、当該スマートフォン1によって検出された大気圧の推移を示している。
 図5に示すように、大気圧は、1日を通して、1008[hPa]から1000[hPa]に変化している。8[hPa]の気圧変化が高度の変化によって生じたとすると、80[m]の高度変化に相当する。図5に示すように大気圧が変化している間に、利用者が移動していると、スマートフォン1は、検出した気圧の変化に基づいて算出した高度の変化に、大気圧の変動による80[m]の誤差が含まれてしまうおそれがある。スマートフォン1は、静止している状態であれば、大気の変動による気圧の変動を精度よく検出することができる。そこで、本実施形態のスマートフォン1は、利用者が静止している状態における大気の変動に応じた気圧の変化量を算出し、算出した気圧の変化量に基づいて、利用者が移動している状態における気圧の変化量を補正する。スマートフォン1は、大気変動によって算出した高度変化に誤差が生じるのを低減することができる。
 図6を参照しながら、スマートフォン1による気圧の検出に関する制御の例について説明する。図6は、気圧と時間と移動状態との関係の例を説明するための図である。
 スマートフォン1は、所定の時間ごとに、加速度センサ15によって検出された加速度の値に基づいて、スマートフォン1を所持する利用者(対象者)の移動状態を判定する。所定の時間は、加速度及び気圧を検出するために定められたサンプリングの間隔を示す時間である。移動状態は、利用者が移動している歩行状態と、利用者が移動していない静止状態とを含む。
 スマートフォン1は、所定の時間ごとに加速度の値を検出すると、検出した加速度に基づいて、利用者が静止しているか、歩行(移動)しているかを判定する。スマートフォン1は、設定データ9Zの判定条件データを参照し、加速度センサ15の加速度が、歩行しているときにスマートフォン1に加わる加速度の方向及び大きさに基づく加速度パターンに一致するかを判定する。スマートフォン1は、加速度パターンに一致している場合、利用者が歩行していると判定し、加速度パターンに一致していない場合、利用者が静止していると判定する。スマートフォン1は、判定結果を示す移動状態にタイムスタンプを付加して状態データ9Yに記憶する。
 本実施形態では、スマートフォン1は、利用者が静止しているか、歩行しているかを判別する場合について説明するが、これに限定されない。例えば、スマートフォン1は、歩行以外の移動状態を判別するようにしてもよい。歩行以外の移動状態としては、例えば、ランニング、自転車、車、電車、エレベーター、エスカレーターを含む。
 スマートフォン1は、所定の時間ごとに、気圧センサ19によって検出された気圧の値に基づいて、所定時間当たりの気圧の変化量を算出する。スマートフォン1は、気圧の値と算出した気圧の変化量とにタイムスタンプを付加し、気圧情報として気圧データ9Xに記憶する。
 図6に示すように、時間t0から時間t1において、利用者は静止状態であり、気圧はなだらかに上昇している。時間t1において、スマートフォン1は、加速度センサ15によって検出された加速度の値と判定条件データに基づいて、利用者が静止状態であると判別する。スマートフォン1は、気圧センサ19によって検出された気圧の値に基づいて、単位時間当たりの気圧の第1変化量ΔP1/Δtを算出し、算出した第1変化量ΔP1/Δtにタイムスタンプを付加して気圧データ9Xに記憶する。気圧の第1変化量は、利用者が静止状態である場合の気圧の変化量を示している。
 図6に示す例では、時間t0から時間t1において、利用者が静止状態である場合、スマートフォン1が検出する気圧の変化量には、高度の変化による気圧の変化量は含まれない。これにより、スマートフォン1は、第1変化量ΔP1/Δtを、大気の変動に対応した気圧の変動量として検出する。
 時間t1から時間t2において、利用者は、なだらかな上り坂を歩行している。時間t2において、スマートフォン1は、加速度センサ15によって検出された加速度の値と判定条件データに基づいて、利用者が歩行状態であると判別する。スマートフォン1は、気圧センサ19によって検出された気圧の値に基づいて、単位時間当たりの気圧の第2変化量ΔP2/Δtを算出し、算出した第2変化量ΔP2/Δtにタイムスタンプを付加して気圧データ9Xに記憶する。第2変化量は、利用者が歩行状態である場合の気圧の変化量を示している。
 図6に示す例では、時間t1から時間t2において、利用者は歩行状態であり、気圧はほとんど変化していない。そして、所定の時間が経過しただけでは、大気圧が急激に変化する可能性は低い。すなわち、時間t1から時間t2における大気による気圧の変化量は、時間t0から時間t1における第1変化量ΔP1/Δtと同等である可能性が高い。これにより、スマートフォン1は、今回検出した歩行時の気圧の第2変化量ΔP2/Δtが、静止時の気圧の第1変化量ΔP1/Δtよりも小さい場合、高度の変化による気圧の変化はなく、平坦な環境を歩行していると判断する。そして、スマートフォン1は、歩行時の気圧の第2変化量ΔP2/Δtから静止時の気圧の第1変化量ΔP1/Δtを差し引くことで、第2変化量ΔP2/Δtを補正する。すなわち、歩行時の気圧の第2変化量ΔP2/Δtは、歩行時の気圧の変化量から静止時の気圧の変動量を減じた値になっている。
 本実施形態では、スマートフォン1は、気圧の第2変化量ΔP2/Δtと直前の静止時の第1変化量ΔP1/Δtとを比較し、比較結果に基づいて利用者の高度に変化が生じているかを推定する。気圧の値は、高度が低いほど高く、高度が高いほど低い。これにより、スマートフォン1は、歩行中の気圧の変化量が静止時の気圧の変化量(変動量)よりも小さい場合、利用者が上り坂を歩行していると推定する。スマートフォン1は、歩行中の気圧の変化量が静止時の気圧の変化量よりも大きい場合、利用者が下り坂を歩行していると推定する。
 スマートフォン1は、歩行中の気圧の第2変化量ΔP2/Δtと静止時の気圧の第1変化量ΔP1/Δtとの差が、坂道判定閾値を超えない場合、なだらかな坂道と判定する。スマートフォン1は、第2変化量ΔP2/Δtと第1変化量ΔP1/Δtとの差が、坂道判定閾値を超える場合、急な坂道と判定する。坂道判定閾値は、例えば、坂道を歩行した場合に利用者の消費量に影響を及ぼす高度、坂道の傾斜角等に基づいて設定される。
 図6に示す例では、時間t1から時間t2において、歩行中の気圧の第2変化量ΔP2/Δtが直前の静止時の第1変化量ΔP1/Δtよりも小さい。これにより、スマートフォン1は、利用者がなだらかな上り坂を歩行していると判定する。しかし、なだらかな坂道は、利用者の消費量に影響を及ぼさない。これにより、スマートフォン1は、利用者の移動環境を「平坦」とし、加速度値に紐付けて状態データ9Yに記憶する。
 本実施形態では、スマートフォン1は、上り坂及び下り坂がなだらかであるか、急であるかを判別する場合について説明するが、これに限定しない。例えば、スマートフォン1は、利用者が歩行している移動環境が、上り坂であるか下り坂であるか、坂道であるか否かを判定するように構成されてもよい。
 時間t2から時間t3において、利用者は、急な下り坂を歩行している。時間t3において、スマートフォン1は、加速度センサ15によって検出された加速度の値と判定条件データに基づいて、利用者が歩行状態であると判別する。スマートフォン1は、気圧センサ19によって検出された気圧の値に基づいて、単位時間当たりの気圧の第2変化量ΔP3/Δtを算出し、算出した第2変化量ΔP3/Δtにタイムスタンプを付加して気圧データ9Xに記憶する。そして、スマートフォン1は、歩行時の気圧の第2変化量ΔP3/Δtが静止時の第1変化量ΔP1/Δtよりも大きく、その差が坂道判定閾値を超えていることを検出する。これにより、スマートフォン1は、利用者が急な下り坂を歩行していると判定し、利用者の移動環境を「坂道」とし、加速度値に紐付けて状態データ9Yに記憶する。
 時間t3から時間t4において、利用者は、なだらかな下り坂を歩行している。時間t4において、スマートフォン1は、加速度センサ15によって検出された加速度の値と判定条件データに基づいて、利用者が歩行状態であると判別する。スマートフォン1は、気圧センサ19によって検出された気圧の値に基づいて、単位時間当たりの気圧の第2変化量ΔP4/Δtを算出し、算出した第2変化量ΔP4/Δtにタイムスタンプを付加して気圧データ9Xに記憶する。そして、スマートフォン1は、気圧の第2変化量ΔP4/Δtが静止時の第1変化量ΔP1/Δtとほぼ等しいことを検出する。これにより、スマートフォン1は、利用者が平地を歩行していると判定し、利用者の移動環境を「平坦」とし、加速度値に紐付けて状態データ9Yに記憶する。
 時間t4から時間t5において、利用者は歩行を止めて静止しており、気圧は上昇していない。時間t5において、スマートフォン1は、加速度センサ15によって検出された加速度の値と判定条件データに基づいて、利用者が静止状態であると判別する。スマートフォン1は、気圧センサ19によって検出された気圧の値に基づいて、単位時間当たりの気圧の第1変化量ΔP5/Δtを算出し、算出した第1変化量ΔP5/Δtにタイムスタンプを付加して気圧データ9Xに記憶する。以降、スマートフォン1は、単位時間ごとに上述した処理を行う。
 このように、スマートフォン1は、利用者の移動前の静止時における気圧の変化量に基づいて、利用者が移動しているときの気圧の変化量を補正し、補正した気圧の変化量に基づいて利用者の高度変化を算出する。これにより、スマートフォン1は、利用者の高度が変化している場合に、気圧の変化に対する大気の変化の影響を低減することができる。その結果、スマートフォン1は、利用者の移動時における高度変化を算出する精度を向上することができる。さらに、スマートフォン1は、その高度変化に基づいて利用者の移動環境を判別することにより、移動環境を判別する精度も向上することができる。
 次に、図7を参照しながら、状態データ9Yについて説明する。図7は、状態データ9Yの例を示す図である。図7に示すように、状態データ9Yには、所定時間ごとの状態情報が記憶される。状態情報は、時間と、移動状態と、移動環境といった項目を含む。時間は、加速度及び気圧を検出した時間を示す。移動状態は、スマートフォン1を所持する利用者の移動状態を示す。移動環境は、歩行している利用者の環境を示す。
 図7に示す例では、状態データ9Yは、上記の時間t1から時間t5に対応する状態情報を含む。図7に示す例では、時間t1、時間t2、時間t3、時間t4、時間t5の移動状態として、それぞれ、「静止」、「歩行」、「歩行」、「歩行」、「静止」が設定されている。時間t2、時間t3、時間t4の移動環境として、それぞれ、「平坦」、「坂道」、「平坦」が設定されている。そして、時間t1及び時間t5の移動状態は、静止であるため、移動環境としては、何も設定されていない。
 状態情報は、図7に示す例に限定されない。例えば、状態情報は、移動環境が坂道の場合に、坂道が上り坂、下り坂等であるかを補足する項目を含んでもよい。例えば、状態情報は、時間ごとの気圧の変化量、高度の変化量、利用者の消費量(カロリー)等の他の項目を含んでもよい。
 次に、スマートフォン1が利用者の消費量を算出する場合の例について説明する。スマートフォン1は、算出アプリケーション9Bを実行し、単位時間ごとの加速度値に基づいて利用者の移動速度を推定する。例えば、スマートフォン1は、上下方向の加速度値に基づいて利用者の歩数を算出し、算出した歩数から移動速度を推定する。スマートフォン1は、単位時間ごとの気圧の変化量を高度算出式に当てはめて、歩行時における利用者の高度変化を算出する。高度算出式は、気圧の変化量から高度変化を算出するための算出式である。そして、スマートフォン1は、補正された気圧データ9Xと、状態データ9Yと、利用者の移動環境、高度変化等に対応する移動速度と消費量との関係を示す関係式とに基づいて、利用者の消費量を算出する。これにより、スマートフォン1は、大気の変化による気圧の変化が減じられた利用者の高度変化を考慮することで、消費量の算出精度を向上することができる。
 図8を参照しながら、スマートフォン1による制御の処理手順について説明する。図8は、スマートフォン1による制御の例の処理手順を示すフローチャートである。図8に示す処理手順は、コントローラ10が制御プログラム9Aを実行することによって実現される。図8に示す処理手順は、所定の時間ごとに繰り返し実行される。
 図8に示すように、スマートフォン1のコントローラ10は、ステップS101として、加速度センサ15に加速度を検出させ、加速度センサ15によって検出された加速度の値を示す加速度情報にタイムスタンプを付加して加速度データ9Wに記憶する。コントローラ10は、ステップS102として、気圧センサ19に気圧を検出させ、気圧センサ19によって検出された気圧の値を示す気圧情報にタイムスタンプを付加して気圧データ9Xに記憶する。
 コントローラ10は、ステップS103として、取得した加速度情報と判定条件データに基づいて、利用者の移動状態を判別する。具体的には、コントローラ10は、利用者が歩行状態であるか、静止状態であるかを判別する。歩行状態ではない、すなわち、静止状態である場合(ステップS104,No)、コントローラ10は、ステップS105に進む。
 コントローラ10は、ステップS105として、気圧データ9Xに基づいて、静止時の気圧の第1変化量を算出する。そして、コントローラ10は、ステップS106として、タイムスタンプを付加して、第1変化量をストレージ9に記憶する。そして、コントローラ10は、ステップS107として、第1変化量に基づいて高度変化を算出してストレージ9に記憶する。高度変化としては、例えば、高度の変化量、変化した高度の値を含む。その後、コントローラ10は、図8に示す処理手順を終了させる。
 歩行状態である場合(ステップS104,Yes)、コントローラ10は、ステップS108に進む。コントローラ10は、ステップS108として、移動時の気圧の第2変化量を算出する。そして、コントローラ10は、ステップS109として、第1変化量と第2変化量とに基づいて歩行中の利用者の移動環境を判別する。そして、コントローラ10は、ステップS110として、第1変化量に基づいて第2変化量を補正する。具体的には、コントローラ10は、第2変化量から第1変化量を差し引くことで、移動時の気圧の変化量から静止時の気圧変動分を減じる。
 続いて、コントローラ10は、ステップS111として、タイムスタンプを付加した第2変化量に移動環境を紐付けて気圧データ9Xに記憶する。そして、コントローラ10は、ステップS112として、補正した第2変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、図8に示す処理手順を終了させる。
 上記の実施形態では、スマートフォン1は、加速度及び気圧を検出するごとに、単位時間当たりの高度の変化を算出する場合について説明したが、これに限定されない。例えば、スマートフォン1は、利用者の移動が終了した後に、移動中の気圧の変化量に基づいて高度変化を算出するように構成されてもよい。
 本出願の開示する実施形態は、発明の要旨及び範囲を逸脱しない範囲で変更することができる。さらに、本出願の開示する実施形態及びその変形例は、適宜組み合わせることができる。例えば、上記の実施形態は、以下のように変形してもよい。
 例えば、図4に示した各プログラムは、複数のモジュールに分割されていてもよいし、他のプログラムと結合されていてもよい。
 上記の実施形態において、スマートフォン1は、利用者が静止状態と歩行状態では異なる間隔で加速度及び気圧を検出するように変形してもよい。図9を参照しながら、スマートフォン1による制御の処理手順の第1の変形例について説明する。図9は、スマートフォン1による制御の第1の変形例の処理手順を示すフローチャートである。図9に示す処理手順は、コントローラ10が制御プログラム9Aを実行することによって実現される。以下の説明においては、重複する説明は省略することがある。
 図9に示すように、スマートフォン1のコントローラ10は、ステップS201として、加速度センサ15に加速度を検出させ、加速度センサ15によって検出された加速度の値を示す加速度情報にタイムスタンプを付加して加速度データ9Wに記憶する。コントローラ10は、ステップS202として、気圧センサ19に気圧を検出させ、気圧センサ19によって検出された気圧の値を示す気圧情報にタイムスタンプを付加して気圧データ9Xに記憶する。
 コントローラ10は、ステップS203として、取得した加速度情報と判定条件データに基づいて、利用者の移動状態を判別する。歩行状態ではない、すなわち、静止状態である場合(ステップS204,No)、コントローラ10は、ステップS205に進む。
 コントローラ10は、ステップS205として、気圧データ9Xに基づいて、静止時の気圧の第1変化量を算出する。そして、コントローラ10は、ステップS206として、タイムスタンプを付加して、第1変化量をストレージ9に記憶する。そして、コントローラ10は、ステップS207として、加速度センサ15及び気圧センサ19の検出時間に第2間隔を設定する。第2間隔は、利用者が静止状態の場合に気圧変動をモニタリングする時間である。具体的には、コントローラ10は、次に加速度及び気圧を検出する検出時間が第2間隔となるように設定する。そして、コントローラ10は、ステップS208として、第1変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、ステップS215に進む。
 コントローラ10は、ステップS215として、検出時間であるかを判定する。検出時間である場合(ステップS215,Yes)、コントローラ10は、ステップS201に戻る。検出時間ではない場合(ステップS215,No)、コントローラ10は、ステップS216に進む。
 コントローラ10は、ステップS216において、終了するかを判定する。例えば、コントローラ10は、スマートフォン1の電源オフの操作を検出した場合に、終了すると判定する。終了ではない場合(ステップS216,No)、コントローラ10は、ステップS215に戻る。終了である場合(ステップS216,Yes)、コントローラ10は、図9に示す処理手順を終了させる。
 歩行状態である場合(ステップS204,Yes)、コントローラ10は、ステップS209に進む。コントローラ10は、ステップS209として、気圧データ9Xに基づいて、移動時の気圧の第2変化量を算出する。そして、コントローラ10は、ステップS210として、第1変化量と第2変化量とに基づいて歩行中の利用者の移動環境を判別する。そして、コントローラ10は、ステップS211として、第1変化量に基づいて第2変化量を補正する。
 続いて、コントローラ10は、ステップS212として、タイムスタンプを付加した第2変化量に移動環境を紐付けて気圧データ9Xに記憶する。そして、コントローラ10は、ステップS213として、加速度センサ15及び気圧センサ19の検出時間に第1間隔を設定する。第1間隔は、利用者が歩行状態の場合に気圧変動をモニタリングする時間である。第1間隔は、第2間隔よりも長い時間である。そして、コントローラ10は、ステップS214として、補正した第2変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、既に説明したステップS215に進む。
 このように、スマートフォン1は、利用者が歩行(移動)している場合に、第1間隔で気圧センサ19に気圧を検出させ、利用者が静止している場合に、第1間隔よりも短い第2間隔で気圧センサ19に気圧を検出させる。これにより、スマートフォン1は、利用者が歩行している状態になった場合、気圧センサ19を駆動させる回数が静止状態よりも少なくなり、移動中の消費電力を低減させることができる。しかも、スマートフォン1は、静止時における気圧の検出回数を移動時よりも多くすることで、気圧変動を判断する精度を向上することができる。その結果、スマートフォン1は、静止時における気圧の変動量が大気の変化によるものかを判別し、その気圧の変動量を移動時の気圧の変化量から減じることができる。
 上記の実施形態において、スマートフォン1は、歩行状態の気圧の変化量を、移動後の静止状態における気圧の変動に基づいて補正するように変形してもよい。図10を参照しながら、スマートフォン1による制御の処理手順の第2の変形例について説明する。図10は、スマートフォン1による制御の第2の変形例の処理手順を示すフローチャートである。図10に示す処理手順は、コントローラ10が制御プログラム9Aを実行することによって実現される。
 図10に示すように、スマートフォン1のコントローラ10は、ステップS301として、加速度センサ15に加速度を検出させ、加速度センサ15によって検出された加速度の値を示す加速度情報にタイムスタンプを付加して加速度データ9Wに記憶する。コントローラ10は、ステップS302として、気圧センサ19に気圧を検出させ、気圧センサ19によって検出された気圧の値を示す気圧情報にタイムスタンプを付加して気圧データ9Xに記憶する。
 コントローラ10は、ステップS303として、取得した加速度情報と判定条件データに基づいて、利用者の移動状態を判別する。歩行状態ではない、すなわち、静止状態である場合(ステップS304,No)、コントローラ10は、ステップS305に進む。
 コントローラ10は、ステップS305として、気圧データ9Xに基づいて、静止時の気圧の第1変化量を算出する。そして、コントローラ10は、ステップS306として、タイムスタンプを付加して第1変化量をストレージ9に記憶する。そして、コントローラ10は、ステップS307として、第1変化量に基づいて高度変化を算出してストレージ9に記憶する。
 続いて、コントローラ10は、ステップS308として、変更期間であるかを判定する。変更期間は、歩行状態から静止状態へ切り替わってから、気圧を検出するサンプリングレートを一時的に上げるために定められた時間の範囲である。コントローラ10は、歩行状態から静止状態に切り替わってからの時間が範囲内である場合に、変更期間であると判定する。変更期間である場合(ステップS308,Yes)、コントローラ10は、ステップS309に進む。コントローラ10は、ステップS309として、加速度センサ15及び気圧センサ19の検出時間に第3間隔を設定する。第3間隔は、利用者が静止状態の場合に気圧変動をモニタリングする時間を、一時的に第2間隔よりも短くした時間である。その後、コントローラ10は、ステップS320に進む。
 コントローラ10は、ステップS320として、検出時間であるかを判定する。検出時間である場合(ステップS320,Yes)、コントローラ10は、ステップS301に戻る。検出時間ではない場合(ステップS320,No)、コントローラ10は、ステップS321に進む。
 コントローラ10は、ステップS321において、終了するかを判定する。例えば、コントローラ10は、スマートフォン1の電源オフの操作を検出した場合に、終了すると判定する。終了ではない場合(ステップS321,No)、コントローラ10は、ステップS320に戻る。終了である場合(ステップS321,Yes)、コントローラ10は、図10に示す処理手順を終了させる。
 変更期間ではない場合(ステップS308,No)、コントローラ10は、ステップS310に進む。コントローラ10は、ステップS310として、加速度センサ15及び気圧センサ19の検出時間に第2間隔を設定する。
 続いて、コントローラ10は、ステップS311として、補正タイミングであるかを判定する。補正タイミングは、利用者の停止後に検出した気圧変動に基づいて、利用者が移動していたときの気圧変化を補正するタイミングである。本実施形態では、補正タイミングは、利用者が歩行状態から静止状態に移行して、サンプリングレートの変更期間を終了した場合としている。具体的には、コントローラ10は、利用者が静止状態になってからの経過時間が変更期間から逸脱した場合に、補正タイミングであると判定する。補正タイミングではない場合(ステップS311,No)、コントローラ10は、既に説明したステップS320に進む。
 補正タイミングである場合(ステップS311,Yes)、コントローラ10は、ステップS312に進む。コントローラ10は、ステップS312として、移動後の第1変化量に基づいて第2変化量を補正する。例えば、コントローラ10は、移動前と移動後の第1変化量の差が所定条件を満たす場合に補正を行う。さらに、補正を行う第2変化量の対象は、例えば、移動中の全ての第2変化量、移動後の静止状態から所定の件数分だけ遡った第2変化量等を含む。気圧の第2変化量の補正方法としては、例えば、移動前と移動後の第1変化量の差分を第2変化量から差し引いて補正する方法、移動後の第1変化量に基づいて補正前の第2変化量を補正する方法等を含む。そして、コントローラ10は、ステップS313として、補正した第2変化量に基づいてストレージ9に記憶している高度変化を補正する。その後、コントローラ10は、既に説明したステップS320に進む。
 歩行状態である場合(ステップS304,Yes)、コントローラ10は、ステップS314に進む。コントローラ10は、ステップS314として、気圧データ9Xに基づいて、移動時の気圧の第2変化量を算出する。そして、コントローラ10は、ステップS315として、第1変化量と第2変化量とに基づいて歩行中の利用者の移動環境を判別する。そして、コントローラ10は、ステップS316として、移動前の第1変化量に基づいて第2変化量を補正する。
 続いて、コントローラ10は、ステップS317として、タイムスタンプを付加した第2変化量に移動環境を紐付けて気圧データ9Xに記憶する。そして、コントローラ10は、ステップS318として、加速度センサ15及び気圧センサ19の検出時間に第1間隔を設定する。そして、コントローラ10は、ステップS319として、補正した第2変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、既に説明したステップS320に進む。
 このように、スマートフォン1は、利用者が静止状態になったことを検出した場合に、一時的に第2間隔よりも短い第3間隔で気圧センサ19に気圧を検出させて、静止状態における気圧の第1変化量を算出する。これにより、スマートフォン1は、利用者が歩行状態から静止状態になった直後に、大気の変化による気圧の変化量を把握することができる。
 さらに、スマートフォン1は、移動前の第1変化量に加えて、移動後の第1変化量でも移動中の第2変化量を補正する。これにより、利用者の移動時間が長くなって、移動前と移動後の気圧の第1変化量が大きく変化した場合に、スマートフォン1は、移動中の気圧の変化量を補正することができる。
 上記の第2の変形例では、コントローラ10は、ステップS313として、補正した第2変化量に基づいて高度変化を補正する場合について説明したが、これに限定されない。例えば、コントローラ10は、補正した第2変化量に基づいて高度変化を算出し直すように構成されてもよい。
 上記の実施形態において、スマートフォン1は、利用者による坂道の歩行が継続した場合に、気体の第2変化量を静止状態における気圧の変動に基づいて補正するように変形してもよい。図11を参照しながら、スマートフォン1による制御の処理手順の第3の変形例について説明する。図11は、スマートフォン1による制御の第3の変形例の処理手順を示すフローチャートである。図11に示す処理手順は、コントローラ10が制御プログラム9Aを実行することによって実現される。図11に示す処理手順は、所定の時間ごとに繰り返し実行される。
 図11に示すように、スマートフォン1のコントローラ10は、ステップS401として、加速度センサ15に加速度を検出させ、加速度センサ15によって検出された加速度の値を示す加速度情報にタイムスタンプを付加して加速度データ9Wに記憶する。コントローラ10は、ステップS402として、気圧センサ19に気圧を検出させ、気圧センサ19によって検出された気圧の値を示す気圧情報にタイムスタンプを付加して気圧データ9Xに記憶する。
 コントローラ10は、ステップS403として、取得した加速度情報と判定条件データに基づいて、利用者の移動状態を判別する。歩行状態ではない、すなわち、静止状態である場合(ステップS404,No)、コントローラ10は、ステップS405に進む。コントローラ10は、ステップS405として、気圧データ9Xに基づいて、静止時の気圧の第1変化量を算出する。そして、コントローラ10は、ステップS406として、タイムスタンプを付加して第1変化量をストレージ9に記憶する。そして、コントローラ10は、ステップS407として、第1変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、図11に示す処理手順を終了させる。
 歩行状態である場合(ステップS404,Yes)、コントローラ10は、ステップS408に進む。コントローラ10は、ステップS408として、気圧データ9Xに基づいて、移動時の気圧の第2変化量を算出する。そして、コントローラ10は、ステップS409として、第1変化量と第2変化量とに基づいて歩行中の利用者の移動環境を判別する。そして、コントローラ10は、ステップS410として、タイムスタンプを付加した第2変化量に移動環境を紐付けてストレージ9に記憶する。
 続いて、コントローラ10は、ステップS411として、ステップS409で判別された移動環境が坂道であるかを判定する。坂道ではない場合(ステップS411,No)、コントローラ10は、図11に示す処理手順を終了させる。坂道である場合(ステップS411,Yes)、コントローラ10は、ステップS412に進む。
 コントローラ10は、ステップS412として、状態データ9Yの移動状態に基づいて、坂道を歩行している継続時間を算出する。そして、コントローラ10は、ステップS413として、継続時間は判定閾値を超えたかを判定する。判定閾値は、連続的な移動と判定するために定められた時間である。継続時間は判定閾値を超えていない場合(ステップS413,No)、コントローラ10は、図11に示す処理手順を終了させる。継続時間は判定閾値を超えている場合(ステップS413,Yes)、コントローラ10は、ステップS414に進む。
 コントローラ10は、ステップS414として、第1変化量に基づいて第2変化量を補正する。具体的には、コントローラ10は、第2変化量から第1変化量を差し引くことで、移動時の気圧の変化量から静止時の気圧変動分を減じる。そして、コントローラ10は、ステップS415として、補正した第2変化量に基づいて高度変化を算出してストレージ9に記憶する。その後、コントローラ10は、図11に示す処理手順を終了させる。
 このように、スマートフォン1は、利用者が坂道を長時間歩行した場合に、静止時における気圧の変化量に基づいて、利用者が移動しているときの気圧の変化量を補正し、補正した気圧の変化量に基づいて利用者の高度変化を算出する。これにより、スマートフォン1は、利用者の高度の変化によって気圧が変化する可能性がある場合に、気圧の変化に対する大気の変化の影響を低減することができる。その結果、スマートフォン1は、大きな誤差になり得る部分についてのみ効率的に補正処理を行って、コントローラ10の負荷を低減することができる。
 上記の実施形態では、スマートフォン1は、加速度センサ15及び気圧センサ19を同じタイミングで検出させる場合について説明したが、これに限定されない。例えば、スマートフォン1は、加速度センサ15及び気圧センサ19を異なるタイミングで検出させてもよい。
 上記の実施形態では、スマートフォン1は、利用者が歩行で移動している場合について説明したが、利用者の移動方法はこれに限定されない。例えば、スマートフォン1は、利用者が走って移動している場合の気圧の変化量を、移動前後の気圧の変化量に基づいて補正するように構成してもよい。
 上記の実施形態において、スマートフォン1は、例えば、一日、時間帯等における天気に基づいて、移動状態の第2変化量を静止状態の第1変化量で補正するか否かを判断してもよい。例えば、天気予報が晴れである場合、天候は、変わらない可能性がある。これにより、スマートフォン1は、通信ユニット6による通信を介して天気予報データを取得し、取得した天気予報データに基づいて天候の変化がない場合に、気圧変動がないとみなす判断をし、第2変化量の補正を行わないように構成してもよい。
 上記の実施形態では、気圧センサを備える携帯電子機器の例として、スマートフォンについて説明したが、添付の請求項に係る携帯電子機器は、スマートフォンに限定されない。添付の請求項に係る携帯電子機器は、スマートフォン以外の携帯電子機器であってもよい。携帯電子機器は、例えば、モバイルフォン、タブレット、携帯型パソコン、スマートウォッチ、デジタルカメラ、メディアプレイヤ、電子書籍リーダ、ナビゲータ、及びゲーム機を含むが、これに限定されない。
 添付の請求項に係る技術を完全かつ明瞭に開示するために特徴的な実施形態に関し記載してきた。しかし、添付の請求項は、上記実施形態に限定されるべきものでなく、本明細書に示した基礎的事項の範囲内で当該技術分野の当業者が創作しうるすべての変形例及び代替可能な構成を具現化するように構成されるべきである。
 

Claims (8)

  1.  気圧を検出する気圧センサと、
     加速度を検出する加速度センサと、
     前記加速度に基づいて自機の移動を検出するコントローラと
     を備え、
     前記コントローラは、前記自機が移動していない場合の気圧変動に基づいて前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出する携帯電子機器。
  2.  前記コントローラは、前記自機が移動していないときに検出した気圧の第1変化量と、前記自機が移動しているときに検出した気圧の第2変化量とを比較し、比較結果に基づいて前記自機を所持する対象物の移動環境を判別する請求項1に記載の携帯電子機器。
  3.  前記第1変化量は、前記自機の移動前および移動後の少なくとも一方の前記自機が移動していないときに検出した気圧の変化量である請求項2に記載の携帯電子機器。
  4.  前記コントローラは、前記自機が移動している場合に、第1間隔で前記気圧センサに気圧を検出させ、前記自機が移動していない場合に、前記第1間隔よりも短い第2間隔で前記気圧センサに気圧を検出させる請求項1に記載の携帯電子機器。
  5.  前記コントローラは、前記自機が移動している時間が所定条件を満たす場合に、前記自機が移動している場合の気圧変化量を補正する請求項1に記載の携帯電子機器。
  6.  前記コントローラは、移動していた前記自機が静止したことを検出した場合に、一時的に前記気圧センサに気圧を検出させる間隔を短くして前記気圧変動を検出し、検出した前記気圧変動に基づいて前記自機が移動していたときの前記気圧変化を補正する請求項1に記載の携帯電子機器。
  7.  気圧センサと、加速度センサとを備える携帯電子機器の制御方法であって、
     前記気圧センサによって前記携帯電子機器に作用する気圧を検出するステップと、
     前記加速度センサによって前記携帯電子機器に作用する加速度を検出するステップと、
     前記加速度に基づいて前記携帯電子機器の移動を検出するステップと、
     自機が移動していない場合の気圧変動に基づいて、前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出するステップと
     を含む制御方法。
  8.  気圧センサと、加速度センサとを備える携帯電子機器に、
     前記気圧センサによって前記携帯電子機器に作用する気圧を検出するステップと、
     前記加速度センサによって前記携帯電子機器に作用する加速度を検出するステップと、
     前記加速度に基づいて前記携帯電子機器の移動を検出するステップと、
     自機が移動していない場合の気圧変動に基づいて、前記自機が移動している場合の気圧変化を補正して、前記自機の高度変化を算出するステップと
     を実行させる制御プログラム。
PCT/JP2014/083605 2013-12-24 2014-12-18 携帯電子機器、制御方法、及び制御プログラム WO2015098706A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/105,614 US10228244B2 (en) 2013-12-24 2014-12-18 Mobile electronic device, controlling method, and control program for computer

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013-265689 2013-12-24
JP2013265689A JP6114175B2 (ja) 2013-12-24 2013-12-24 携帯電子機器、制御方法、及び制御プログラム

Publications (1)

Publication Number Publication Date
WO2015098706A1 true WO2015098706A1 (ja) 2015-07-02

Family

ID=53478565

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/083605 WO2015098706A1 (ja) 2013-12-24 2014-12-18 携帯電子機器、制御方法、及び制御プログラム

Country Status (3)

Country Link
US (1) US10228244B2 (ja)
JP (1) JP6114175B2 (ja)
WO (1) WO2015098706A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3147628A1 (en) * 2015-09-28 2017-03-29 Kyocera Corporation Mobile device, control method, and non-transitory storage medium
JP2017195623A (ja) * 2017-06-12 2017-10-26 京セラ株式会社 携帯機器、制御方法及び制御プログラム
US10254188B2 (en) 2016-09-09 2019-04-09 Qualcomm Incorporated Adaptive pressure sensor sampling rate

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6261546B2 (ja) * 2015-08-31 2018-01-17 京セラ株式会社 携帯機器、制御方法及び制御プログラム
JP6171046B1 (ja) * 2016-04-26 2017-07-26 京セラ株式会社 電子機器、制御方法、及び制御プログラム
WO2018043239A1 (ja) 2016-08-29 2018-03-08 京セラ株式会社 携帯電子機器、路側機、携帯電子機器制御プログラム及び路側機制御プログラム
CN106441218A (zh) * 2016-09-05 2017-02-22 广东欧珀移动通信有限公司 一种海拔高度的处理方法和装置
JP6152232B1 (ja) 2017-02-23 2017-06-21 京セラ株式会社 電子機器
WO2018216378A1 (ja) * 2017-05-26 2018-11-29 シャープ株式会社 携帯情報端末、携帯情報端末の駆動方法、駆動プログラムおよびコンピュータ読み取り可能な記録媒体
KR102350497B1 (ko) 2017-06-20 2022-01-14 삼성전자주식회사 모션 센서로부터 획득된 데이터를 이용하여 기압 센서의 데이터를 결정하는 방법 및 이를 구현한 전자 장치
US10921462B2 (en) * 2017-09-22 2021-02-16 Apple Inc. Inertial navigation stabilization via barometer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08261755A (ja) * 1995-03-20 1996-10-11 Cat I:Kk 高度計測装置
JPH08285582A (ja) * 1995-04-11 1996-11-01 Yupiteru Ind Co Ltd 高度計及びそれを用いた高度補正方法
JP2000131061A (ja) * 1998-10-20 2000-05-12 Hermatech Hermann Technol Ag 高度検出方法、天候検出方法および高度計システム
JP2001289632A (ja) * 2000-01-31 2001-10-19 Seiko Instruments Inc 携帯型高度計および高度演算方法
JP2002267443A (ja) * 2001-03-12 2002-09-18 Empex Instruments Inc 気圧高度計
WO2009104254A1 (ja) * 2008-02-20 2009-08-27 パイオニア株式会社 位置認識装置、補正方法、及び補正プログラム
JP2012237719A (ja) * 2011-05-13 2012-12-06 Kddi Corp 気圧センサを用いて昇降移動状態を推定する携帯装置、プログラム及び方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63268945A (ja) * 1987-04-25 1988-11-07 Mazda Motor Corp エンジンのスロツトル弁制御装置
GB2252405B (en) * 1991-02-01 1994-06-22 Smiths Industries Plc Liquid quantity gauging
JP3810669B2 (ja) * 2001-11-19 2006-08-16 セイコーインスツル株式会社 移動検出型高度計
JP2005230340A (ja) 2004-02-20 2005-09-02 Intelligent Cosmos Research Institute エネルギー消費量推定装置、エネルギー消費量推定システムおよびデータベース
JP2008249771A (ja) * 2007-03-29 2008-10-16 Yamaha Corp 演奏処理システム、演奏処理装置及び演奏処理プログラム
CN203524681U (zh) * 2013-09-29 2014-04-09 无锡科之乾科技有限公司 一种基于户外运动的人体健康监测系统
WO2015107627A1 (ja) * 2014-01-15 2015-07-23 日立マクセル株式会社 端末装置および標高値取得方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08261755A (ja) * 1995-03-20 1996-10-11 Cat I:Kk 高度計測装置
JPH08285582A (ja) * 1995-04-11 1996-11-01 Yupiteru Ind Co Ltd 高度計及びそれを用いた高度補正方法
JP2000131061A (ja) * 1998-10-20 2000-05-12 Hermatech Hermann Technol Ag 高度検出方法、天候検出方法および高度計システム
JP2001289632A (ja) * 2000-01-31 2001-10-19 Seiko Instruments Inc 携帯型高度計および高度演算方法
JP2002267443A (ja) * 2001-03-12 2002-09-18 Empex Instruments Inc 気圧高度計
WO2009104254A1 (ja) * 2008-02-20 2009-08-27 パイオニア株式会社 位置認識装置、補正方法、及び補正プログラム
JP2012237719A (ja) * 2011-05-13 2012-12-06 Kddi Corp 気圧センサを用いて昇降移動状態を推定する携帯装置、プログラム及び方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3147628A1 (en) * 2015-09-28 2017-03-29 Kyocera Corporation Mobile device, control method, and non-transitory storage medium
JP2017067507A (ja) * 2015-09-28 2017-04-06 京セラ株式会社 携帯機器、制御方法及び制御プログラム
US10184854B2 (en) 2015-09-28 2019-01-22 Kyocera Corporation Mobile device and control method for position correlation utilizing time-based atmospheric pressure measurements
US10254188B2 (en) 2016-09-09 2019-04-09 Qualcomm Incorporated Adaptive pressure sensor sampling rate
JP2017195623A (ja) * 2017-06-12 2017-10-26 京セラ株式会社 携帯機器、制御方法及び制御プログラム

Also Published As

Publication number Publication date
JP6114175B2 (ja) 2017-04-12
JP2015121481A (ja) 2015-07-02
US10228244B2 (en) 2019-03-12
US20160320186A1 (en) 2016-11-03

Similar Documents

Publication Publication Date Title
JP6114175B2 (ja) 携帯電子機器、制御方法、及び制御プログラム
US9448691B2 (en) Device, method, and storage medium storing program
JP5715042B2 (ja) 装置、方法、及びプログラム
JP6266833B1 (ja) 電子機器、プログラムおよび制御方法
US10116787B2 (en) Electronic device, control method, and non-transitory storage medium
US10228804B2 (en) Mobile device with periodic estimation of underwater state based on detected acceleration
US10121456B2 (en) Electronic device, image display method, and non-transitory storage medium
JP2019030000A (ja) 電子機器、プログラムおよび制御方法
JP6182563B2 (ja) 携帯装置、制御方法、及び制御プログラム
US10575130B2 (en) Mobile electronic device, control method, and recording medium
JP6153464B2 (ja) 携帯電子機器及び制御プログラム
JP6169815B2 (ja) 装置、方法、及びプログラム
JP6223383B2 (ja) 携帯装置、制御方法、及び制御プログラム
JP6391768B2 (ja) 携帯機器、制御方法及び制御プログラム
JP6170830B2 (ja) 携帯電子機器及び防水性判定方法
US20170094615A1 (en) Electronic device, control method, and non-transitory storage medium thereof
US20170354371A1 (en) Mobile electronic device, control method and non-transitory storage medium
JP6182571B2 (ja) 携帯機器、制御方法、及び制御プログラム
JP6073986B2 (ja) 携帯機器、制御方法、及び制御プログラム
JP2019028973A (ja) 電子機器、プログラムおよび制御方法
JP2017060899A (ja) 携帯機器、活動量算出システム
WO2014175454A1 (ja) 携帯機器、活動量算出システム、ならびに、携帯機器の制御方法および制御プログラム

Legal Events

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

Ref document number: 14875863

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15105614

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14875863

Country of ref document: EP

Kind code of ref document: A1