JP2016114368A - Electronic apparatus and program - Google Patents

Electronic apparatus and program Download PDF

Info

Publication number
JP2016114368A
JP2016114368A JP2014250663A JP2014250663A JP2016114368A JP 2016114368 A JP2016114368 A JP 2016114368A JP 2014250663 A JP2014250663 A JP 2014250663A JP 2014250663 A JP2014250663 A JP 2014250663A JP 2016114368 A JP2016114368 A JP 2016114368A
Authority
JP
Japan
Prior art keywords
cpu
timing
user
terminal device
mobile terminal
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2014250663A
Other languages
Japanese (ja)
Inventor
笠間 晃一朗
Koichiro Kasama
晃一朗 笠間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2014250663A priority Critical patent/JP2016114368A/en
Publication of JP2016114368A publication Critical patent/JP2016114368A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Navigation (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an electronic apparatus capable of calculating travelling direction of a user of an electronic apparatus while appropriately reducing the power consumption.SOLUTION: The electronic apparatus includes: a calculation section that calculates an intermediate timing when each of feet of a user carrying the electronic apparatus comes into contact with the earth from output values from an acceleration sensor; and a calculation section that calculates travelling direction of the user using the output values from a geomagnetic sensor at the calculated timing.SELECTED DRAWING: Figure 6

Description

本件開示の発明は、電子機器およびプログラム、特に進行方向を算出する電子機器およびプログラムに関する。   The invention disclosed herein relates to an electronic device and a program, and more particularly to an electronic device and a program for calculating a traveling direction.

従来の技術において、電子機器を携帯するユーザーの進行方向を算出する場合、電子機器に搭載されているジャイロセンサから出力される角速度および地磁気センサから出力される地磁気情報を用いて進行方向を算出する処理が行われている(例えば、特許文献1、2)。   In the related art, when calculating the traveling direction of a user carrying an electronic device, the traveling direction is calculated using the angular velocity output from the gyro sensor mounted on the electronic device and the geomagnetic information output from the geomagnetic sensor. Processing is performed (for example, Patent Documents 1 and 2).

特開2006−84312号公報JP 200684312 A 特開2013−255102号公報JP 2013-255102 A

しかしながら、ジャイロセンサの消費電力は地磁気センサの消費電力に比べて大きいため、例えばいわゆるユビキタス機器のように使用可能な電力量に制限がある機器においては、消費電力の観点から上記の技術を機器に組み込むことは現実でない場合がある。   However, since the power consumption of the gyro sensor is larger than the power consumption of the geomagnetic sensor, for example, in a device with a limited amount of power that can be used, such as a so-called ubiquitous device, the above technology is applied to the device from the viewpoint of power consumption. Incorporation may not be real.

本件開示の技術は、上記の事情に鑑み、従来よりも好適に消費電力を抑えつつ進行方向を算出することが可能な電子機器を提供することを目的とする。   In view of the above circumstances, an object of the technology disclosed herein is to provide an electronic device capable of calculating a traveling direction while suppressing power consumption more suitably than before.

本件開示の電子機器は、1つの側面では、加速度センサの出力値から、電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する算出部と、算出されたタイミングにおける地磁気センサの出力値からユーザーの進行方向を算出する算出部とを有する。   In one aspect, the electronic device according to the present disclosure includes, from the output value of the acceleration sensor, a calculation unit that calculates an intermediate timing of landing timing of each foot in walking of the user who carries the electronic device, and at the calculated timing And a calculating unit that calculates the traveling direction of the user from the output value of the geomagnetic sensor.

本件開示の技術によれば、従来よりも好適に消費電力を抑えつつ、電子機器のユーザーの進行方向を算出することが可能な電子機器を提供することができる。   According to the technology disclosed herein, it is possible to provide an electronic device capable of calculating the traveling direction of the user of the electronic device while suppressing power consumption more appropriately than in the past.

図1は、一実施形態における携帯端末装置の構成を示す概略構成図である。FIG. 1 is a schematic configuration diagram illustrating a configuration of a mobile terminal device according to an embodiment. 図2は、一実施形態における携帯端末装置の機能ブロック図である。FIG. 2 is a functional block diagram of the mobile terminal device according to the embodiment. 図3は、一実施形態における携帯端末装置が実行する処理のフローチャートである。FIG. 3 is a flowchart of processing executed by the mobile terminal device according to the embodiment. 図4は、一実施形態における携帯端末装置が実行する処理のフローチャートである。FIG. 4 is a flowchart of processing executed by the mobile terminal device according to the embodiment. 図5は、一実施形態における携帯端末装置が実行する処理のフローチャートである。FIG. 5 is a flowchart of processing executed by the mobile terminal device according to the embodiment. 図6は、一実施形態における携帯端末装置が実行する処理のフローチャートである。FIG. 6 is a flowchart of processing executed by the mobile terminal device according to the embodiment.

まず、一実施形態における電子機器について図面を参照しながら説明する。本実施形態では、電子機器の一例として図1に示す携帯端末装置1を用いて説明する。なお、以下の説明は例示にすぎず、特許請求の範囲を限定するものではない。   First, an electronic apparatus according to an embodiment will be described with reference to the drawings. In the present embodiment, a description is given using a portable terminal device 1 shown in FIG. 1 as an example of an electronic device. In addition, the following description is only an illustration and does not limit a claim.

図1に示すように、本実施形態に係る携帯端末装置1は、通信モジュール12、ROM(Read Only Memory)13、RAM(Random Access Memory)14、スピーカ15、CPU(Central Processing Unit)16、加速度センサ17、地磁気センサ18、タイマ1
19、タイマ2 20、ディスプレイ21、タッチパネル22を備える。本実施形態における加速度センサ17は、携帯端末装置1の3軸方向の加速度を検出することができるセンサである。また、本実施形態における地磁気センサ18は、いわゆる電子コンパスであり、携帯端末装置1において基準方位からの回転角である方位角を算出するセンサである。なお、加速度センサ17および地磁気センサ18は、周知のセンサであるため、ここでは詳細な説明は省略する。
As shown in FIG. 1, the mobile terminal device 1 according to the present embodiment includes a communication module 12, a ROM (Read Only Memory) 13, a RAM (Random Access Memory) 14, a speaker 15, a CPU (Central Processing Unit) 16, an acceleration. Sensor 17, geomagnetic sensor 18, timer 1
19, a timer 220, a display 21, and a touch panel 22. The acceleration sensor 17 in the present embodiment is a sensor that can detect the acceleration in the triaxial direction of the mobile terminal device 1. The geomagnetic sensor 18 in the present embodiment is a so-called electronic compass, and is a sensor that calculates an azimuth angle that is a rotation angle from a reference azimuth in the mobile terminal device 1. In addition, since the acceleration sensor 17 and the geomagnetic sensor 18 are well-known sensors, detailed description is abbreviate | omitted here.

本実施形態では、携帯端末装置1が例えばCPU16を用いてROM13などに記憶された各種プログラムをRAM14に展開して実行することで、図2に示すように、タイミング算出部31および進行方向算出部32として機能する。タイミング算出部31は、加速度センサの出力値から、電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する算出部の一例に相当する。また、進行方向算出部32は、算出されたタイミングにおける地磁気センサの出力値からユーザーの進行方向を算出する算出部の一例に相当する。   In the present embodiment, the mobile terminal device 1 develops various programs stored in the ROM 13 or the like using the CPU 16, for example, on the RAM 14, and executes them, as shown in FIG. 32 functions. The timing calculation unit 31 corresponds to an example of a calculation unit that calculates an intermediate timing between landing timings of each foot in walking of a user carrying an electronic device from an output value of the acceleration sensor. The traveling direction calculation unit 32 corresponds to an example of a calculation unit that calculates the traveling direction of the user from the output value of the geomagnetic sensor at the calculated timing.

次に、本実施形態においてCPU16により実行される処理について、フローチャートを参照しながら説明する。本実施形態では、携帯端末装置1の電源がオンになると、CPU16がROM13に記憶されている起動シーケンス処理に従って、携帯端末装置1の起動処理を実行し、携帯端末装置1内の各機能ブロックを起動する。さらに、本実施形態では、CPU16は、図3〜6に示すフローチャートの処理を開始する。なお、CPU16は、ユーザーからの開始要求があった場合に、フローチャートの処理を開始する。ユーザーからの開始要求として、例えば、ユーザーがタッチパネル22を操作してフローチャートの処理を開始するボタンを押すなどの操作が挙げられる。また、以下の説明において、図4の「1」は図5の「1」に、図5の「2」、「3」は図4の「2」、「3」に、それぞれ接続している。   Next, processing executed by the CPU 16 in the present embodiment will be described with reference to a flowchart. In the present embodiment, when the power of the mobile terminal device 1 is turned on, the CPU 16 executes the startup process of the mobile terminal device 1 according to the startup sequence process stored in the ROM 13, and sets each functional block in the mobile terminal device 1. to start. Further, in the present embodiment, the CPU 16 starts the processing of the flowcharts shown in FIGS. Note that the CPU 16 starts the processing of the flowchart when there is a start request from the user. Examples of the start request from the user include an operation in which the user operates the touch panel 22 and presses a button for starting processing of the flowchart. In the following description, “1” in FIG. 4 is connected to “1” in FIG. 5, “2” and “3” in FIG. 5 are connected to “2” and “3” in FIG. .

OP101において、CPU16は、中間タイミング算出処理を開始する。本実施形態において、中間タイミング算出処理は、携帯端末装置1を携帯して歩行しているユーザーの着地のタイミングを検出し、検出した着地のタイミングから、各足の着地の中間にあたるタイミングを算出する処理である。なお、当該中間のタイミングが、電子機器を携帯するユーザーの歩行の一方の足の着地から他方の足の着地までにおける所定のタイミングの一例に相当する。CPU16は、中間タイミング算出処理を開始すると、処理をOP102に進める。   In OP101, the CPU 16 starts an intermediate timing calculation process. In the present embodiment, the intermediate timing calculation process detects the landing timing of the user who is walking with the mobile terminal device 1 and calculates the timing corresponding to the middle of the landing of each foot from the detected landing timing. It is processing. The intermediate timing corresponds to an example of a predetermined timing from the landing of one foot to the landing of the other foot of the user who carries the electronic device. When starting the intermediate timing calculation process, the CPU 16 advances the process to OP102.

例えば、ユーザーの歩行において、体幹は、左右の足の着地に合わせて、いわゆるヨー軸回りに回転する。左足が着地するとき、体の正面が右足側を向くように体幹がヨー軸回りに回転し、右足が着地するとき、体の正面が左足側を向くように体幹がヨー軸回りに回転する。このことから、左右の足が着地する中間のタイミングでは、体の正面が進行方向を向いている可能性が高い。本実施形態では、左足と右足が着地する中間のタイミングにおいて、携帯端末装置1を携帯して歩行しているユーザーが進行方向を向いているとみなして、以下の処理を実行する。   For example, when the user walks, the trunk rotates around a so-called yaw axis in accordance with the landing of the left and right feet. When the left foot lands, the trunk rotates around the yaw axis so that the front of the body faces the right foot, and when the right foot lands, the trunk rotates around the yaw axis so that the front of the body faces the left foot To do. For this reason, there is a high possibility that the front of the body faces the traveling direction at an intermediate timing when the left and right feet land. In the present embodiment, at the intermediate timing when the left foot and the right foot land, it is assumed that the user walking with the mobile terminal device 1 is facing the traveling direction, and the following processing is executed.

図4および図5に、本実施形態における中間タイミング算出処理のフローチャートを示
す。OP201では、CPU16は、加速度センサ17を起動する。加速度センサ17は、起動されると、互いに垂直な3軸の各軸方向の加速度の値を出力する。次いで、CPU16は、処理をOP202に進める。OP202では、CPU16は、歩数算出処理を開始する。本実施形態において、歩数算出処理は、加速度センサ17の出力値を取得して、取得した出力値に基づいて算出される加速度の3軸合成値から、携帯端末装置1を携帯するユーザーの足が着地したか否かを判定する処理である。さらに、歩数算出処理は、ユーザーの足が着地したと判定したときに、ユーザーの歩行における1歩が発生したとみなして歩数を計上する処理である。
4 and 5 show a flowchart of the intermediate timing calculation process in the present embodiment. In OP201, the CPU 16 activates the acceleration sensor 17. When the acceleration sensor 17 is activated, the acceleration sensor 17 outputs acceleration values in three axial directions perpendicular to each other. Next, the CPU 16 advances the process to OP202. In OP202, the CPU 16 starts a step count calculation process. In the present embodiment, the step count calculation process acquires the output value of the acceleration sensor 17, and the user's foot carrying the mobile terminal device 1 from the three-axis composite value of acceleration calculated based on the acquired output value. This is a process for determining whether or not the vehicle has landed. Further, the step count calculation process is a process of counting the number of steps on the assumption that one step in the user's walk has occurred when it is determined that the user's foot has landed.

ここで、本実施形態における歩数算出処理について説明する。本実施形態では、ユーザーの歩行について、加速度センサ17の出力値に基づいて算出される3軸合成値が、0.9Gよりも低くなりその後1.1Gよりも高くなることに基づいて歩数計算が行われる。本実施形態では、加速度センサ17が出力する各軸の加速度値ではなく3軸の合成値が用いられる。これは、CPU16が各軸の加速度を参照する場合、各軸の加速度の値は、加速度センサ17の傾きによって異なる値を示すので、携帯端末装置1の向きによっては適切にユーザーの歩行判定を行うことができない可能性があるためである。そして、以下に説明するように、CPU16は、加速度センサ17の出力値に基づく加速度の3軸合成値を用いて、ユーザーの歩行の1歩が発生したか否かを判定する。   Here, the step count calculation process in the present embodiment will be described. In the present embodiment, for the user's walk, the number of steps is calculated based on the fact that the three-axis composite value calculated based on the output value of the acceleration sensor 17 is lower than 0.9G and then higher than 1.1G. Done. In the present embodiment, the combined value of three axes is used instead of the acceleration value of each axis output from the acceleration sensor 17. This is because when the CPU 16 refers to the acceleration of each axis, the acceleration value of each axis shows a different value depending on the inclination of the acceleration sensor 17, so that the user's walking determination is appropriately performed depending on the orientation of the mobile terminal device 1. This is because it may not be possible. Then, as will be described below, the CPU 16 determines whether or not one step of the user's walk has occurred by using the three-axis composite value of acceleration based on the output value of the acceleration sensor 17.

CPU16は、加速度センサ17が出力する各軸の加速度の値を一定の時間間隔、例えば20msで取得する。CPU16は、加速度センサ17から取得した各軸の加速度に基づいて3軸合成値を算出する。CPU16は、算出した3軸合成値が0.9Gよりも低くなったことを検出する。また、CPU16は、算出した3軸合成値が1.1Gよりも高くなったことも検出する。そして、CPU16は、算出した3軸合成値が0.9Gよりも低くなったことを検出すると、図示しないタイマの計時を開始する。なお、タイマは、一定時間、例えば1秒間を計時し、1秒が経過するとCPU16にその旨を通知する。   The CPU 16 acquires the acceleration value of each axis output from the acceleration sensor 17 at a constant time interval, for example, 20 ms. The CPU 16 calculates a triaxial composite value based on the acceleration of each axis acquired from the acceleration sensor 17. The CPU 16 detects that the calculated three-axis composite value is lower than 0.9G. The CPU 16 also detects that the calculated triaxial composite value is higher than 1.1G. Then, when the CPU 16 detects that the calculated triaxial composite value is lower than 0.9 G, it starts counting a timer (not shown). The timer measures a certain time, for example, 1 second, and notifies the CPU 16 when 1 second has elapsed.

続いて、CPU16は、算出した3軸合成値が1.1Gよりも高くなったことを検出した場合に、今回検出した3軸合成値と前回検出したときの3軸合成値との差が一定値、例えば0.2G以上であるか否かを判定する。CPU16は、タイマから1秒が経過したことの通知を受ける前に、今回検出した3軸合成値と前回検出したときの3軸合成値との差が0.2G以上であると判定した場合に、携帯端末装置1を携帯するユーザーの歩行の1歩が発生したと判定する。なお、CPU16は、ユーザーの歩行の1歩が発生したと判定した場合は、算出した3軸合成値が0.9Gよりも低くなったことを検出する処理まで戻って上記処理を繰り返し実行する。また、CPU16は、3軸合成値との差が0.2G以上であると判定する前にタイマから1秒が経過したことの通知を受けた場合も、同様に上記処理を繰り返し実行する。   Subsequently, when the CPU 16 detects that the calculated three-axis composite value is higher than 1.1 G, the difference between the three-axis composite value detected this time and the three-axis composite value detected last time is constant. It is determined whether or not the value is, for example, 0.2G or more. When the CPU 16 determines that the difference between the 3-axis composite value detected this time and the 3-axis composite value detected last time is 0.2 G or more before receiving a notification from the timer that 1 second has elapsed. Then, it is determined that one step of walking of the user carrying the mobile terminal device 1 has occurred. If the CPU 16 determines that one step of the user's walk has occurred, the CPU 16 returns to the process of detecting that the calculated three-axis composite value has become lower than 0.9 G and repeats the above process. Further, the CPU 16 repeatedly executes the above process in the same manner even when the CPU 16 receives a notification from the timer that 1 second has elapsed before determining that the difference from the three-axis composite value is 0.2 G or more.

ここで、前回検出したときの3軸合成値とは、CPU16が0.9Gよりも低くなったことを検出したときの3軸合成値または1.1Gよりも高くなったことを検出したときの3軸合成値のいずれかである。そして、本実施形態では、今回検出した3軸合成値と前回検出したときの3軸合成値との差が0.2G以上であることを判定することで、前回検出したときの3軸合成値が、0.9Gよりも低くなったと検出されたときの3軸合成値であるとみなすことができる。これにより、前回の検出時から今回の検出時までに、3軸合成値は0.9Gよりも低くなりその後1.1Gよりも高くなっているとみなすことができる。   Here, the triaxial composite value at the time of the previous detection is the triaxial composite value when the CPU 16 detects that the value is lower than 0.9G, or the value when it is higher than 1.1G. One of the triaxial composite values. In this embodiment, by determining that the difference between the 3-axis composite value detected this time and the 3-axis composite value detected last time is 0.2 G or more, the 3-axis composite value detected last time is determined. Can be regarded as a three-axis composite value when it is detected that the value is lower than 0.9 G. Thereby, it can be considered that the triaxial composite value is lower than 0.9 G and higher than 1.1 G after the previous detection to the current detection.

上記の通り、本実施形態では、加速度センサ17の出力値に基づいて算出される3軸合成値が、0.9Gよりも低くなりその後1.1Gよりも高くなるときに、ユーザーの歩行における1歩が発生したとみなされる。したがって、上記の歩数算出処理が実行されるこ
とで、携帯端末装置1を携帯するユーザーの歩行の1歩が発生したことが検出される。
As described above, in the present embodiment, when the three-axis composite value calculated based on the output value of the acceleration sensor 17 is lower than 0.9 G and then higher than 1.1 G, 1 in walking of the user A walk is considered to have occurred. Therefore, it is detected that one step of the walking of the user carrying the mobile terminal device 1 has occurred by executing the above step count calculation process.

なお、上記では、CPU16は、取得した3軸合成値が0.9Gより低くなったと判定すると、タイマの計時を開始するが、取得した3軸合成値が1.1Gより高くなったと判定したときにタイマの計時を開始する構成としてもよい。この場合は、加速度センサ17の出力値に基づいて算出される3軸合成値が、1.1Gよりも高くなりその後0.9Gよりも低くなったときに、ユーザーの歩行の1歩が発生したと判定される。   In the above description, when the CPU 16 determines that the acquired three-axis composite value is lower than 0.9G, the timer 16 starts timing, but when the CPU 16 determines that the acquired three-axis composite value is higher than 1.1G. Alternatively, the timer may start counting. In this case, when the three-axis composite value calculated based on the output value of the acceleration sensor 17 is higher than 1.1 G and then lower than 0.9 G, one step of the user's walk occurred. It is determined.

そして、CPU16は、タイマから一定時間が経過したことの通知を受ける前に、加速度センサ17から今回取得した3軸合成値が1.1Gより高くかつ前回取得した3軸合成値との差が0.2G以上であると判定すると、1歩をカウントする。すなわち、CPU16は、上記の判定処理によって、携帯端末装置1を携帯するユーザーの歩行における1歩が発生したことを検出する。さらに、CPU16は、上記の処理を繰り返し実行し、携帯端末装置1を携帯するユーザーの歩行における歩数を計算する。なお、CPU16は、加速度センサ17から今回取得した3軸合成値が1.1Gより高くかつ前回取得した3軸合成値との差が0.2G以上であると判定する前にタイマから上記通知を受けた場合も、上記の処理を繰り返し実行する。   Then, before receiving a notification that the fixed time has elapsed from the timer, the CPU 16 has a 3-axis composite value acquired this time from the acceleration sensor 17 that is higher than 1.1 G and the difference from the previously acquired 3-axis composite value is 0. .If it is determined that it is 2G or more, one step is counted. That is, the CPU 16 detects that one step in the walking of the user who carries the mobile terminal device 1 has occurred by the above determination process. Furthermore, the CPU 16 repeatedly executes the above processing to calculate the number of steps in walking of the user who carries the mobile terminal device 1. Note that the CPU 16 notifies the above notification from the timer before determining that the triaxial composite value acquired this time from the acceleration sensor 17 is higher than 1.1 G and that the difference from the previously acquired triaxial composite value is 0.2 G or more. Even if it is received, the above processing is repeated.

また、ユーザーの歩行の1歩が発生したことを検出する上記の方法は一例にすぎず、本実施形態では、周知の技術を用いた他の方法によってユーザーの歩行の1歩が発生したことを検出してもよい。   Further, the above-described method for detecting that one step of the user's walk has occurred is merely an example, and in the present embodiment, the fact that one step of the user's walk has occurred by another method using a well-known technique. It may be detected.

本実施形態では、CPU16は、上記の処理により1歩をカウントしたタイミングを携帯端末装置1を携帯するユーザーの歩行における着地のタイミングとみなして、図4のOP202における歩数算出処理を実行する。なお、一例として、CPU16は、歩数算出処理によりカウントした歩数を、図示しないカウンタに保存する。CPU16は、OP202の歩数算出処理を開始したら、処理をOP203に進める。   In the present embodiment, the CPU 16 regards the timing at which one step is counted by the above processing as the landing timing in walking of the user carrying the mobile terminal device 1, and executes the step count calculation process in OP202 of FIG. As an example, the CPU 16 stores the number of steps counted by the step count calculation process in a counter (not shown). When the CPU 16 starts the step count calculation process of OP202, the process proceeds to OP203.

OP203では、CPU16は、OP202において開始した歩数算出処理において、1歩をカウントしたか否かを判定する。1歩をカウントした場合は(OP203:Yes)、CPU16は、処理をOP204に進める。また、1歩をカウントしない場合は(OP203:No)、CPU16は、OP203の処理を繰り返し実行する。   In OP203, the CPU 16 determines whether or not one step has been counted in the step count calculation process started in OP202. When one step is counted (OP203: Yes), the CPU 16 advances the process to OP204. When one step is not counted (OP203: No), the CPU 16 repeatedly executes the process of OP203.

OP204では、CPU16は、タイマ1 19を起動する。タイマ1 19は、起動されると計時を開始し、停止されると計時を終了して、計時開始から終了までの計測時間を保持する。そして、タイマ1 19による計測時間は、CPU16によって取得される。CPU16は、タイマ1 19を起動すると処理をOP205に進める。   In OP204, the CPU 16 starts the timer 119. When the timer 119 is activated, it starts timekeeping. When the timer 119 is stopped, the timer 119 ends timekeeping, and holds the measurement time from the start to the end of timekeeping. The time measured by the timer 119 is acquired by the CPU 16. When starting the timer 119, the CPU 16 advances the process to OP205.

OP205では、CPU16は、携帯端末装置1のユーザーから図4、5のフローチャートの処理を停止する要求があったか否かを判定する。ユーザーからの停止要求としては、例えば、ユーザーがタッチパネル22に表示されたフローチャートを停止するボタンを押すなどの操作が挙げられる。CPU16は、ユーザーからの停止要求があった場合は(OP205:Yes)、処理をOP206に進める。また、CPU16は、ユーザーからの停止要求がない場合は(OP205:No)、処理をOP209に進める。   In OP205, the CPU 16 determines whether or not there is a request from the user of the mobile terminal device 1 to stop the processing of the flowcharts of FIGS. Examples of the stop request from the user include an operation such as a user pressing a button for stopping the flowchart displayed on the touch panel 22. If there is a stop request from the user (OP205: Yes), the CPU 16 advances the process to OP206. If there is no stop request from the user (OP205: No), the CPU 16 advances the process to OP209.

OP206では、CPU16は、OP201において起動した加速度センサ17の動作を停止する。次いで、CPU16は、処理をOP207に進める。OP207では、CPU16は、OP202において開始した歩数算出処理を停止する。次いで、CPU16は、処理をOP208に進める。OP208では、CPU16は、OP204において起動したタイマ1 19を停止する。そして、CPU16は、図4、5のフローチャートの処
理を終了する。
In OP206, the CPU 16 stops the operation of the acceleration sensor 17 activated in OP201. Next, the CPU 16 advances the process to OP207. In OP207, the CPU 16 stops the step count calculation process started in OP202. Next, the CPU 16 advances the process to OP208. In OP208, the CPU 16 stops the timer 119 started in OP204. And CPU16 complete | finishes the process of the flowchart of FIG.

OP209では、CPU16は、OP202において開始した歩数算出処理によってカウントされた歩数を図示しないカウンタから取得する。次いで、CPU16は、処理をOP210に進める。本実施形態では、CPU16は、取得した歩数をRAM14に記憶し、カウンタから歩数を取得する度にRAM14に記憶した歩数に加算する。なお、CPU16は、図3に示すフローチャートを終了すると、RAM14に記憶した歩数をリセットする。CPU16は、OP210の処理を行ったら、処理をOP211に進める。   In OP209, the CPU 16 acquires the number of steps counted by the step count calculation process started in OP202 from a counter (not shown). Next, the CPU 16 advances the process to OP210. In the present embodiment, the CPU 16 stores the acquired number of steps in the RAM 14 and adds it to the number of steps stored in the RAM 14 every time the number of steps is acquired from the counter. The CPU 16 resets the number of steps stored in the RAM 14 when the flowchart shown in FIG. After performing the process of OP210, the CPU 16 advances the process to OP211.

OP211では、CPU16は、RAM14に記憶された歩数が閾値以上であるか否かを判定する。ここで、OP211において使用される閾値は、2以上の自然数であり適宜設定することができる。本実施形態では、タイマ1 19によって計測された時間をRAM14に記憶された歩数で除算することにより、1歩あたりの歩行時間間隔を算出する。したがって、RAM14に記憶された歩数が2以上であれば、1歩あたりの歩行時間間隔が算出可能である。RAM14に記憶された歩数が閾値以上である場合は(OP211:Yes)、CPU16は処理をOP212に進める。また、RAM14に記憶された歩数が閾値以上でない場合は(OP211:No)、CPU16は処理をOP205に戻す。   In OP211, the CPU 16 determines whether or not the number of steps stored in the RAM 14 is equal to or greater than a threshold value. Here, the threshold value used in OP211 is a natural number of 2 or more, and can be set as appropriate. In the present embodiment, the walking time interval per step is calculated by dividing the time measured by the timer 119 by the number of steps stored in the RAM 14. Therefore, if the number of steps stored in the RAM 14 is 2 or more, the walking time interval per step can be calculated. If the number of steps stored in the RAM 14 is greater than or equal to the threshold (OP211: Yes), the CPU 16 advances the process to OP212. If the number of steps stored in the RAM 14 is not equal to or greater than the threshold (OP211: No), the CPU 16 returns the process to OP205.

OP212では、CPU16は、OP204において起動したタイマ1 19を停止する。これにより、OP204において計時を開始したタイマ1 19による計測時間は、1歩の発生すなわち着地の発生のタイミングから、ユーザーが所定の歩数だけ進んだときの着地の発生のタイミングまでの経過時間を示す。CPU16は、タイマ1 19を停止すると処理をOP213に進める。   In OP212, the CPU 16 stops the timer 119 started in OP204. As a result, the time measured by the timer 119 that has started measuring time in OP204 indicates the elapsed time from the timing of occurrence of one step, that is, the occurrence of landing, to the timing of occurrence of landing when the user has advanced a predetermined number of steps. . When the timer 16 stops, the CPU 16 advances the process to OP213.

OP213では、CPU16は、タイマ1 19から上記の計測時間を取得する。次いで、CPU16は、処理をOP214に進める。OP214では、CPU16は、OP213においてタイマ1 19から取得した計測時間を、OP210においてRAM14に記憶した歩数で除算することにより、1歩あたりの歩行時間の時間間隔を算出する。次いで、CPU16は、処理をOP215に進める。   In OP 213, the CPU 16 acquires the above measurement time from the timer 119. Next, the CPU 16 advances the process to OP214. In OP214, the CPU 16 calculates the walking time interval per step by dividing the measurement time acquired from the timer 119 in OP213 by the number of steps stored in the RAM 14 in OP210. Next, the CPU 16 advances the process to OP215.

OP215では、CPU16は、OP214において算出した1歩あたりの歩行時間の時間間隔を2で除算し、除算した結果の値を起動タイミング時間としてRAM14に保存する。起動タイミング時間とは、携帯端末装置1を携帯するユーザーの歩行において、1歩が発生する各タイミングの中間に当たるタイミングの時間である。本実施形態では、携帯端末装置1のユーザーの各歩の中間のタイミングを、携帯端末装置1のユーザーの進行方向を決定するタイミングとして用いる。CPU16は、上記の起動タイミング時間をRAM14に保存すると、処理をOP216に進める。   In OP215, the CPU 16 divides the time interval of the walking time per step calculated in OP214 by 2, and stores the divided result value in the RAM 14 as the activation timing time. The activation timing time is a timing time corresponding to the middle of each timing at which one step occurs in the walking of the user who carries the mobile terminal device 1. In this embodiment, the intermediate timing of each step of the user of the mobile terminal device 1 is used as the timing for determining the traveling direction of the user of the mobile terminal device 1. When the CPU 16 stores the activation timing time in the RAM 14, the process proceeds to OP216.

OP216では、CPU16は、タイマ1 19の計測時間をリセットし、タイマ1 19を再度起動する。これにより、タイマ1 19は計時処理を再度開始する。次いで、CPU16は、処理をOP205に戻す。   In OP216, the CPU 16 resets the measurement time of the timer 1 19 and starts the timer 1 19 again. As a result, the timer 119 starts the clocking process again. Next, the CPU 16 returns the process to OP205.

次に、本実施形態におけるOP102の進行方向算出処理について図6を参照しながら説明する。本実施形態において、進行方向算出処理は、上記の処理により算出された携帯端末装置1のユーザーの各歩の中間タイミングにおける方位角に基づいてユーザーの進行方向を算出する処理である。   Next, the advancing direction calculation process of OP102 in this embodiment will be described with reference to FIG. In the present embodiment, the traveling direction calculation process is a process of calculating the user's traveling direction based on the azimuth angle at the intermediate timing of each step of the user of the mobile terminal device 1 calculated by the above process.

OP301において、CPU16は、携帯端末装置1のユーザーから図6のフローチャートの処理を停止する要求があったか否かを判定する。CPU16は、ユーザーからの停止要求があった場合は(OP301:Yes)本フローチャートの処理を終了する。また
、CPU16は、ユーザーからの停止要求がない場合は(OP301:No)、処理をOP302に進める。
In OP301, the CPU 16 determines whether there is a request from the user of the mobile terminal device 1 to stop the processing of the flowchart of FIG. If there is a stop request from the user (OP301: Yes), the CPU 16 ends the process of this flowchart. Further, when there is no stop request from the user (OP301: No), the CPU 16 advances the process to OP302.

OP302では、CPU16は、OP215においてRAM14に保存した起動タイミング時間を取得する。次いで、CPU16は、処理をOP303に進める。OP303では、CPU16は、加速度センサ17からの出力を取得し続ける。さらに、CPU16は、上記の通り、加速度センサ17からの出力に基づいて携帯端末装置1を携帯するユーザーの歩行における1歩が発生したタイミングを検出したときに(OP303:Yes)、処理をOP304に進める。また、CPU16は、ユーザーの歩行における1歩が発生したタイミングを検出しない間は(OP303:No)、OP303の処理を繰り返し実行する。   In OP302, the CPU 16 acquires the activation timing time saved in the RAM 14 in OP215. Next, the CPU 16 advances the process to OP303. In OP303, the CPU 16 continues to acquire the output from the acceleration sensor 17. Further, as described above, when the CPU 16 detects the timing at which one step in the walking of the user carrying the mobile terminal device 1 is generated based on the output from the acceleration sensor 17 (OP303: Yes), the process is changed to OP304. Proceed. Further, the CPU 16 repeatedly executes the process of OP303 while not detecting the timing at which one step in the user's walk occurs (OP303: No).

OP304では、CPU16は、OP302において取得した起動タイミング時間をタイマ2 20にセットする。そして、タイマ2 20は、CPU16によりセットされた起動タイミング時間の計測を開始する。なお、タイマ2 20は、セットされた起動タイミング時間の計測が完了すると計時処理を停止する。次いで、処理はOP305に進められる。   In OP304, the CPU 16 sets the start timing time acquired in OP302 in the timer 220. Then, the timer 220 starts measuring the activation timing time set by the CPU 16. Note that the timer 220 stops the timing process when the measurement of the set start timing time is completed. Next, the process proceeds to OP305.

OP305では、CPU16は、タイマ2 20による起動タイミング時間の計測が完了したか否かに基づいて、OP304においてセットした起動タイミング時間が経過したか否かを判定する。起動タイミング時間が経過した場合は(OP305:Yes)、CPU16は、処理をOP306に進める。また、起動タイミング時間が経過していない、すなわちタイマ2 20が計時処理中である場合は(OP305:No)、CPU16は、OP305の処理を繰り返す。本実施形態では、CPU16は、OP303〜OP305の一連の処理を実行することにより、携帯端末装置1を携帯して歩行するユーザーが1歩の動作を開始してから完了するまでの時間の中間にあたるタイミングを特定することができる。   In OP305, the CPU 16 determines whether or not the activation timing time set in OP304 has elapsed based on whether or not the measurement of the activation timing time by the timer 220 has been completed. When the activation timing time has elapsed (OP305: Yes), the CPU 16 advances the process to OP306. On the other hand, when the activation timing time has not elapsed, that is, when the timer 220 is performing the timing process (OP305: No), the CPU 16 repeats the process of OP305. In the present embodiment, the CPU 16 performs a series of processes of OP303 to OP305, and thus is intermediate in the time from the start of the one-step operation of the user who carries the mobile terminal device 1 to the completion thereof. Timing can be specified.

OP306では、CPU16は、地磁気センサ18を起動して方位角のデータを取得する。したがって、本実施形態では、CPU16は、携帯端末装置1を携帯するユーザーの歩行の中間タイミングにおいて、取得した方位角に基づいて携帯端末装置1の向きを特定することができる。上記の通り、ユーザーの歩行の中間タイミングでは、ユーザーの体の正面が進行方向を向いているとみなすことができる。このため、当該中間タイミングにおいて特定される携帯端末装置1の向きは、ユーザーの進行方向とみなすことができる。次いで、CPU16は、処理をOP307に進める。   In OP306, the CPU 16 activates the geomagnetic sensor 18 to acquire azimuth data. Therefore, in this embodiment, CPU16 can pinpoint the direction of the portable terminal device 1 based on the acquired azimuth at the intermediate | middle timing of the walk of the user who carries the portable terminal device 1. FIG. As described above, it can be considered that the front of the user's body is facing the traveling direction at the intermediate timing of the user's walking. For this reason, the direction of the mobile terminal device 1 specified at the intermediate timing can be regarded as the traveling direction of the user. Next, the CPU 16 advances the process to OP307.

OP307では、CPU16は、地磁気センサ18をスタンバイ状態にする。これにより、本実施形態において、地磁気センサ18は、OP306の処理が実行されるタイミングで起動されてOP307においてスタンバイ状態にされ、フローチャートの他の処理を実行するときもスタンバイ状態になっているため、地磁気センサ18に供給される電力を好適に抑えることができる。次いで、CPU16は、処理をOP308に進める。   In OP307, the CPU 16 places the geomagnetic sensor 18 in a standby state. Thereby, in this embodiment, since the geomagnetic sensor 18 is activated at the timing when the process of OP306 is executed and is set in a standby state in OP307, and is also in a standby state when executing other processes in the flowchart, The electric power supplied to the geomagnetic sensor 18 can be suitably suppressed. Next, the CPU 16 advances the process to OP308.

OP308では、CPU16は、OP306において地磁気センサ18から取得した方位角のデータをRAM14に保存する。なお、OP306において取得された方位角のデータは、順次RAM14に保存される。これにより、CPU16は、RAM14に保存されている方位角のデータを時系列で追跡することで、携帯端末装置1のユーザーの進行方向の時間的な変化を算出することができる。次いで、CPU16は、処理をOP301に戻す。   In OP308, the CPU 16 stores the azimuth data acquired from the geomagnetic sensor 18 in OP306 in the RAM. Note that the azimuth angle data acquired in OP 306 is sequentially stored in the RAM 14. Thereby, the CPU 16 can calculate temporal changes in the traveling direction of the user of the mobile terminal device 1 by tracking the azimuth data stored in the RAM 14 in time series. Next, the CPU 16 returns the process to OP301.

以上が本実施形態に関する説明であるが、上記の携帯端末装置1等の構成や処理は、上
記の実施形態に限定されるものではなく、本発明の技術的思想と同一性を失わない範囲内において種々の変更が可能である。例えば、上記の説明では、中間タイミング算出処理を開始した後に進行方向算出処理を開始しているが、これらの処理を並列実行してもよい。また、CPU16は、現在の1歩と直前の1歩との間の時間間隔を用いて起動タイミング時間を算出しているが、過去の連続する2歩の間の時間間隔を用いて起動タイミング時間を算出してもよい。あるいは、CPU16は、過去の連続する2以上の歩数における時間間隔の1歩あたりの平均時間を用いて起動タイミング時間を算出してもよい。
The above is the description of the present embodiment, but the configuration and processing of the mobile terminal device 1 and the like are not limited to the above-described embodiment, and are within the scope that does not lose the same technical idea as the present invention. Various changes can be made. For example, in the above description, the traveling direction calculation process is started after the intermediate timing calculation process is started, but these processes may be executed in parallel. The CPU 16 calculates the activation timing time using the time interval between the current one step and the immediately preceding step, but the activation timing time using the time interval between two consecutive steps in the past. May be calculated. Alternatively, the CPU 16 may calculate the activation timing time using the average time per step of the time interval in the past two or more steps.

<コンピュータが読み取り可能な記録媒体>
コンピュータその他の機械、装置(以下、コンピュータ等)に上記情報処理装置の設定を行うための管理ツール、OSその他を実現させるプログラムをコンピュータ等が読み取り可能な記録媒体に記録することができる。そして、コンピュータ等に、この記録媒体のプログラムを読み込ませて実行させることにより、その機能を提供させることができる。ここで、コンピュータは、例えば、携帯端末装置等である。
<Computer-readable recording medium>
A management tool for setting the information processing apparatus in a computer or other machine or device (hereinafter referred to as a computer or the like), a program for realizing an OS or the like can be recorded on a computer-readable recording medium. Then, the function can be provided by causing the computer or the like to read and execute the program of the recording medium. Here, the computer is, for example, a mobile terminal device.

ここで、コンピュータ等が読み取り可能な記録媒体とは、データやプログラム等の情報を電気的、磁気的、光学的、機械的、または化学的作用によって蓄積し、コンピュータ等から読み取ることができる記録媒体をいう。このような記録媒体のうちコンピュータ等から取り外し可能なものとしては、例えばフレキシブルディスク、光磁気ディスク、CD−ROM、CD−R/W、DVD、ブルーレイディスク、DAT、8mmテープ、フラッシュメモリ等のメモリカード等がある。また、コンピュータ等に固定された記録媒体としてハードディスクやROM等がある。   Here, a computer-readable recording medium is a recording medium that stores information such as data and programs by electrical, magnetic, optical, mechanical, or chemical action and can be read from a computer or the like. Say. Examples of such a recording medium that can be removed from a computer or the like include a flexible disk, a magneto-optical disk, a CD-ROM, a CD-R / W, a DVD, a Blu-ray disk, a DAT, an 8 mm tape, a flash memory, and the like. There are cards. Moreover, there are a hard disk, a ROM, and the like as a recording medium fixed to a computer or the like.

以上の実施形態に関し、さらに以下の付記を開示する。   Regarding the above embodiment, the following additional notes are disclosed.

(付記1)
電子機器であって、
加速度センサの出力値から、前記電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する算出部と、
前記算出されたタイミングにおける地磁気センサの出力値から前記ユーザーの進行方向を算出する算出部と
を有する電子機器。
(Appendix 1)
Electronic equipment,
From the output value of the acceleration sensor, a calculation unit that calculates the intermediate timing of the landing timing of each foot in the walking of the user carrying the electronic device,
An electronic apparatus comprising: a calculation unit that calculates a traveling direction of the user from an output value of a geomagnetic sensor at the calculated timing.

(付記2)
前記算出されたタイミング以外のタイミングでは、前記地磁気センサの動作が停止される、付記1に記載の電子機器。
(Appendix 2)
The electronic device according to appendix 1, wherein the operation of the geomagnetic sensor is stopped at a timing other than the calculated timing.

(付記3)
コンピュータに、
加速度センサの出力値から、電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する処理と、
前記算出されたタイミングにおける地磁気センサの出力値から前記ユーザーの進行方向を算出する処理と
を実行させるプログラム。
(Appendix 3)
On the computer,
From the output value of the acceleration sensor, a process of calculating the intermediate timing of the landing timing of each foot in the walking of the user carrying the electronic device,
The program which performs the process which calculates the said user's advancing direction from the output value of the geomagnetic sensor in the calculated timing.

(付記4)
コンピュータに、
前記算出されたタイミング以外のタイミングでは、前記地磁気センサの動作を停止する処理
をさらに実行させる付記3に記載のプログラム。
(Appendix 4)
On the computer,
The program according to appendix 3, further executing a process of stopping the operation of the geomagnetic sensor at a timing other than the calculated timing.

1 携帯端末装置
13 ROM
14 RAM
16 CPU
17 加速度センサ
18 地磁気センサ
19 タイマ1
20 タイマ2
31 タイミング算出部
32 進行方向算出部
1 Mobile terminal device 13 ROM
14 RAM
16 CPU
17 Acceleration sensor 18 Geomagnetic sensor 19 Timer 1
20 Timer 2
31 Timing Calculation Unit 32 Traveling Direction Calculation Unit

Claims (3)

電子機器であって、
加速度センサの出力値から、前記電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する算出部と、
前記算出されたタイミングにおける地磁気センサの出力値から前記ユーザーの進行方向を算出する算出部と
を有する電子機器。
Electronic equipment,
From the output value of the acceleration sensor, a calculation unit that calculates the intermediate timing of the landing timing of each foot in the walking of the user carrying the electronic device,
An electronic apparatus comprising: a calculation unit that calculates a traveling direction of the user from an output value of a geomagnetic sensor at the calculated timing.
前記算出されたタイミング以外のタイミングでは、前記地磁気センサの動作が停止される、請求項1に記載の電子機器。   The electronic device according to claim 1, wherein the operation of the geomagnetic sensor is stopped at a timing other than the calculated timing. コンピュータに、
加速度センサの出力値から、電子機器を携帯するユーザーの歩行における各足の着地のタイミングの中間のタイミングを算出する処理と、
前記算出されたタイミングにおける地磁気センサの出力値から前記ユーザーの進行方向を算出する処理と
を実行させるプログラム。
On the computer,
From the output value of the acceleration sensor, a process of calculating the intermediate timing of the landing timing of each foot in the walking of the user carrying the electronic device,
The program which performs the process which calculates the said user's advancing direction from the output value of the geomagnetic sensor in the calculated timing.
JP2014250663A 2014-12-11 2014-12-11 Electronic apparatus and program Pending JP2016114368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014250663A JP2016114368A (en) 2014-12-11 2014-12-11 Electronic apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014250663A JP2016114368A (en) 2014-12-11 2014-12-11 Electronic apparatus and program

Publications (1)

Publication Number Publication Date
JP2016114368A true JP2016114368A (en) 2016-06-23

Family

ID=56141442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014250663A Pending JP2016114368A (en) 2014-12-11 2014-12-11 Electronic apparatus and program

Country Status (1)

Country Link
JP (1) JP2016114368A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000097722A (en) * 1998-09-26 2000-04-07 Jatco Corp Portable position detector and position managing system
JP2003302419A (en) * 2002-04-08 2003-10-24 Casio Comput Co Ltd Method and device for detecting walking direction and program therefor
JP2014185955A (en) * 2013-03-25 2014-10-02 Seiko Epson Corp Movement status information calculation method, and movement status information calculation device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000097722A (en) * 1998-09-26 2000-04-07 Jatco Corp Portable position detector and position managing system
JP2003302419A (en) * 2002-04-08 2003-10-24 Casio Comput Co Ltd Method and device for detecting walking direction and program therefor
JP2014185955A (en) * 2013-03-25 2014-10-02 Seiko Epson Corp Movement status information calculation method, and movement status information calculation device

Similar Documents

Publication Publication Date Title
JP6234515B2 (en) Dead reckoning using proximity sensors
US9459698B2 (en) Gesture based power management system and method
CN105675048B (en) Balance the wireless system and method for identification accuracy and power consumption
JP6064431B2 (en) Exercise determination program, portable electronic device, exercise determination method, and information processing apparatus
JP2007226371A (en) Body motion detection device, body motion detection method, and body motion detection program
US10321855B2 (en) Orientation invariant gait matching
EP3671119B1 (en) Attitude matrix calculating method and device
Liang et al. Smartphone-based real-time indoor location tracking with 1-m precision
CN113906371B (en) Electronic device for providing exercise information according to exercise environment and method for operating the same
US11745080B2 (en) System for sensor-based objective determination
JP2016034479A (en) On-running landing position evaluation method, on-running landing position evaluation apparatus, detection method, detection apparatus, running motion evaluation method, and running motion evaluation apparatus
US10267647B2 (en) Information processing device, traveling direction estimation method and storage medium
KR101718392B1 (en) Mobile terminal for computing foot length information using foot-mounted inertia motion unit, and method using the same
US10175777B2 (en) Method and apparatus for detecting a manipulation of a portable device
KR20170098640A (en) Insole and mobile terminal
JP2016114368A (en) Electronic apparatus and program
US20150370310A1 (en) Electronic device
JP2015177848A (en) sensor device and program
US20240049990A1 (en) Foot angle calculation device, gait measurement system, gait measurement method, andprogram recording medium
CN106297193A (en) Human motion state detecting system and control method
JP2010104396A (en) Situational determination device, system, method and program
JP6445232B2 (en) Motion analysis apparatus and motion analysis method
JP2012137853A (en) Electronic device, pedometer and program
CN112629554A (en) Motion trajectory acquisition method and device and electronic equipment
US20200162845A1 (en) Enhanced wearable device operation

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170804

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180424

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180427

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20181106