JP2016065793A - Terminal device, position acquisition method, and program - Google Patents

Terminal device, position acquisition method, and program Download PDF

Info

Publication number
JP2016065793A
JP2016065793A JP2014194641A JP2014194641A JP2016065793A JP 2016065793 A JP2016065793 A JP 2016065793A JP 2014194641 A JP2014194641 A JP 2014194641A JP 2014194641 A JP2014194641 A JP 2014194641A JP 2016065793 A JP2016065793 A JP 2016065793A
Authority
JP
Japan
Prior art keywords
position information
library
information
terminal device
application
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.)
Granted
Application number
JP2014194641A
Other languages
Japanese (ja)
Other versions
JP6215164B2 (en
Inventor
中島 純
Jun Nakajima
純 中島
庄健 奈須
Shoken Nasu
庄健 奈須
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.)
KDDI Corp
Original Assignee
KDDI Corp
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 KDDI Corp filed Critical KDDI Corp
Priority to JP2014194641A priority Critical patent/JP6215164B2/en
Publication of JP2016065793A publication Critical patent/JP2016065793A/en
Application granted granted Critical
Publication of JP6215164B2 publication Critical patent/JP6215164B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Navigation (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a terminal device capable of appropriately selecting a position information acquisition control unit, from a plurality of position information acquisition control units, that is compatible with multiple applications in controlling acquisition of position information.SOLUTION: A terminal device includes a position information acquisition unit that acquires position information by starting itself up in response to a start-up request, and a plurality of libraries compatible with multiple applications, each of the plurality of libraries being configured to determine whether or not to allow itself to act as a position information acquisition control unit for sending a start-up request to the position information acquisition unit. Also, for example, the terminal device may be configured to allow just one of the plurality of libraries to determine whether to allow itself to act as a position information acquisition controller.SELECTED DRAWING: Figure 2

Description

本発明は、端末装置、位置取得方法、およびプログラムに関する。   The present invention relates to a terminal device, a position acquisition method, and a program.

Webサービスとしては、サービスの利用者に関する利用者情報を利用者端末から取得し、利用者情報を利用してサービスを提供するものがある。このサービスのうち、利用者端末が自装置の位置情報をWebサーバに送信し、Webサーバが位置情報に関連した情報を送信するものがある。   Some Web services obtain user information about a user of the service from a user terminal and provide the service using the user information. Among these services, there is a service in which a user terminal transmits position information of its own device to a Web server, and the Web server transmits information related to the position information.

利用者端末が自装置の位置情報を得る技術としては、下記の特許文献1に記載された端末装置が知られている。この端末装置における1またはそれ以上のアプリケーションは、測位方法選択装置に測位データを要求する。測位方法選択装置は、1またはそれ以上の測位方法を使用する。このとき、測位方法選択装置は、ある測位方法によって提供される測位データの質と、アプリケーションが要求する測位の質とを比較して、1またはそれ以上のアプリケーションに測位データを提供する。   As a technique for a user terminal to obtain position information of its own device, a terminal device described in Patent Document 1 below is known. One or more applications in the terminal device request positioning data from the positioning method selection device. The positioning method selection device uses one or more positioning methods. At this time, the positioning method selection device compares the quality of positioning data provided by a certain positioning method with the quality of positioning required by the application, and provides positioning data to one or more applications.

特開2011−209298号公報JP 2011-209298 A

しかしながら、測位方法選択装置は、複数のアプリケーションから送信された測位要求を受け取る度に測位データを生成しているので、測位データを得る度に電力を消費してしまう。特に、GPS電波を受信して測位演算を行う場合には、他の測位方法と比較して大きな電力を必要とする。そこで、複数のアプリケーションに対応する一つの位置情報取得制御部により測位データの取得を制御させることにより測位データの取得回数を低減させ、電力の消費を抑制することが考えられる。ところがこの場合、上述の一つの位置情報取得制御部が機能しなくなると、測位データの取得を制御できなくなるおそれがあった。   However, since the positioning method selection device generates positioning data every time it receives a positioning request transmitted from a plurality of applications, it consumes power every time it obtains positioning data. In particular, when a GPS radio wave is received and a positioning calculation is performed, a large amount of electric power is required as compared with other positioning methods. Therefore, it is conceivable to reduce the number of times positioning data is acquired by controlling the acquisition of positioning data by one position information acquisition control unit corresponding to a plurality of applications, thereby suppressing power consumption. However, in this case, if the above-described one position information acquisition control unit does not function, there is a possibility that the acquisition of positioning data cannot be controlled.

本発明は、このような事情を考慮してなされたもので、複数のアプリケーションに対応して位置情報の取得を制御する位置情報取得制御部を複数の中から選択することができる端末装置、位置取得方法、およびプログラムを提供することを課題とする。   The present invention has been made in consideration of such circumstances, and a terminal device and a position where a position information acquisition control unit that controls acquisition of position information corresponding to a plurality of applications can be selected from a plurality It is an object to provide an acquisition method and a program.

(1)上記の課題を解決するために、本発明の一態様に係る端末装置は、起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、複数のアプリケーションに対応したライブラリと、を含み、複数の前記ライブラリは、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定する。   (1) In order to solve the above-described problem, a terminal device according to an aspect of the present invention includes a position information acquisition unit that acquires position information by being activated in response to an activation request, and a library corresponding to a plurality of applications. The plurality of libraries determine whether or not to allow the own library to function as a position information acquisition control unit that makes an activation request to the position information acquisition unit.

(2)本発明の一態様は、上記した(1)に記載の端末装置において、複数の前記ライブラリのいずれか一つのみが、自ライブラリを前記位置情報取得制御部として機能させると判定する、構成が用いられてもよい。   (2) According to one aspect of the present invention, in the terminal device according to (1) described above, it is determined that only one of the plurality of libraries causes the own library to function as the position information acquisition control unit. A configuration may be used.

(3)本発明の一態様は、上記した(1)または(2)に記載の端末装置において、前記ライブラリは、前記位置情報取得制御部として機能していたライブラリが前記位置情報取得制御部として機能していない場合、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、構成が用いられてもよい。   (3) One aspect of the present invention is the terminal device according to (1) or (2), wherein the library functions as the position information acquisition control unit as the position information acquisition control unit. When it does not function, the structure which determines whether a self library is functioned as the said positional information acquisition control part may be used.

(4)本発明の一態様は、上記した(1)から(3)のいずれかに記載の端末装置において、前記位置情報取得制御部は、自ライブラリの機能を停止させる操作が行われる場合に、他の前記ライブラリに自ライブラリが前記位置情報取得制御部として機能しなくなることを通知する、構成が用いられてもよい。   (4) According to one aspect of the present invention, in the terminal device according to any one of (1) to (3), the position information acquisition control unit is configured to perform an operation to stop the function of the own library. A configuration may be used in which the other library is notified that the own library will not function as the position information acquisition control unit.

(5)本発明の一態様は、上記した(1)から(4)のいずれかに記載の端末装置において、前記位置情報取得制御部として機能していない前記ライブラリは、前記位置情報取得制御部として機能していたライブラリに対して応答を要求し、応答がない場合に、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、構成が用いられてもよい。   (5) According to one aspect of the present invention, in the terminal device according to any one of (1) to (4), the library that does not function as the location information acquisition control unit is the location information acquisition control unit. A configuration may be used in which a response is requested to the library functioning as a library, and when there is no response, it is determined whether or not the own library functions as the position information acquisition control unit.

(6)本発明の一態様は、上記した(1)から(5)のいずれかに記載の端末装置において、前記ライブラリは、記憶部に記憶されている前記ライブラリの優先順位に基づいて、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、構成が用いられてもよい。   (6) According to one aspect of the present invention, in the terminal device according to any one of (1) to (5) described above, the library is configured based on the priority order of the library stored in the storage unit. A configuration for determining whether or not a library functions as the position information acquisition control unit may be used.

(7)上記の課題を解決するために、本発明の一態様に係る位置取得方法は、起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、複数のアプリケーションに対応したライブラリと、を含む端末装置における位置取得方法であって、複数の前記ライブラリが、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定する第1ステップと、前記第1ステップにおいて、自ライブラリを前記位置情報取得制御部として機能させると判定した前記ライブラリが、前記位置情報取得制御部として機能する第2ステップと、を含む。   (7) In order to solve the above-described problem, a position acquisition method according to an aspect of the present invention corresponds to a position information acquisition unit that acquires position information by being activated in response to an activation request, and a plurality of applications. Wherein the plurality of libraries determine whether or not to allow the plurality of libraries to function as a position information acquisition control unit that makes an activation request to the position information acquisition unit. And a second step in which, in the first step, the library that has been determined to function its own library as the position information acquisition control unit includes a second step in which the library functions as the position information acquisition control unit.

(8)上記の課題を解決するために、本発明の一態様に係るプログラムは、起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、複数のアプリケーションに対応したライブラリと、を含む端末装置のコンピュータに、複数の前記ライブラリに、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定させる第1ステップ、前記第1ステップにおいて、自ライブラリを前記位置情報取得制御部として機能させると判定した前記ライブラリに、前記位置情報取得制御部として機能させる第2ステップ、を実行させるためのプログラムである。   (8) In order to solve the above problem, a program according to an aspect of the present invention includes a position information acquisition unit that acquires position information by being activated in response to an activation request, and a library corresponding to a plurality of applications. A first step that causes a computer of a terminal device including: to determine whether or not a plurality of the libraries function as a position information acquisition control unit that makes an activation request to the position information acquisition unit. The second step of causing the library that has been determined to function as its position information acquisition control unit to function as the position information acquisition control unit.

本発明によれば、複数のアプリケーションに対応して測位データの取得を制御する位置情報取得制御部を複数の中から適切に選択することができる。   ADVANTAGE OF THE INVENTION According to this invention, the positional infomation acquisition control part which controls acquisition of positioning data corresponding to several applications can be selected appropriately from several.

本発明の一実施形態における位置提供システムの構成を示すブロック図である。It is a block diagram which shows the structure of the position provision system in one Embodiment of this invention. 本発明の一実施形態に係る端末装置の構成を示すブロック図である。It is a block diagram which shows the structure of the terminal device which concerns on one Embodiment of this invention. 本発明の一実施形態に係るライブラリ管理情報の一例を示す図である。It is a figure which shows an example of the library management information which concerns on one Embodiment of this invention. 本発明の一実施形態に係る端末装置の他の構成を示すブロック図である。It is a block diagram which shows the other structure of the terminal device which concerns on one Embodiment of this invention. 本発明の一実施形態に係る端末装置の他の構成を示すブロック図である。It is a block diagram which shows the other structure of the terminal device which concerns on one Embodiment of this invention. 本発明の一実施形態に係る端末装置において行われる位置情報の取得および送信処理の手順の一例を示すフローチャートである。It is a flowchart which shows an example of the procedure of an acquisition and transmission process of the positional information performed in the terminal device which concerns on one Embodiment of this invention. 本発明の一実施形態に係る端末装置において行われるマスタとスレーブとの切替処理の手順の一例を示すシーケンスチャートである。It is a sequence chart which shows an example of the procedure of the switching process of the master and slave performed in the terminal device which concerns on one Embodiment of this invention.

以下、実施形態の位置提供システム1、端末装置、位置取得方法、および、位置取得用プログラムを、図面を参照して説明する。   Hereinafter, a position providing system 1, a terminal device, a position acquisition method, and a position acquisition program according to an embodiment will be described with reference to the drawings.

図1は、実施形態に係る位置提供システム1の構成を示すブロック図である。この位置提供システム1は、複数の端末装置10A、10B、・・・、10N(以下、総称する場合には単に「端末装置10」と呼ぶ)、位置情報サーバ30、認証サーバ40、POI(Point Of Interest)サーバ42、およびアプリケーションサーバ50A、50B、・・・、50N(以下、総称する場合には単に「アプリケーションサーバ50」と呼ぶ)を有する。   FIG. 1 is a block diagram illustrating a configuration of a position providing system 1 according to the embodiment. The location providing system 1 includes a plurality of terminal devices 10A, 10B,..., 10N (hereinafter simply referred to as “terminal device 10” when collectively referred to), a location information server 30, an authentication server 40, a POI (Point Of Interest) server 42 and application servers 50A, 50B,..., 50N (hereinafter simply referred to as “application server 50” when collectively referred to).

位置提供システム1は、端末装置10から位置情報サーバ30に、端末装置10の位置情報を送信し、この位置情報を位置情報サーバ30からアプリケーションサーバ50に提供するものである。端末装置10は、任意の送信タイミングまたは所定期間ごとに位置情報を送信する。本実施形態においては、予め端末装置10内で決定された送信タイミングによって位置情報を送信する例について説明する。しかし、端末装置10の位置情報の送信タイミングは、位置情報サーバ30によって設定されてもよい。   The location providing system 1 transmits the location information of the terminal device 10 from the terminal device 10 to the location information server 30, and provides this location information from the location information server 30 to the application server 50. The terminal device 10 transmits position information at an arbitrary transmission timing or every predetermined period. In the present embodiment, an example in which position information is transmitted at a transmission timing determined in advance in the terminal device 10 will be described. However, the position information transmission timing of the terminal device 10 may be set by the position information server 30.

位置情報サーバ30は、端末装置10から送信された位置情報を受信して蓄積する。この具体例においては、位置情報サーバ30は、端末装置10毎に時系列に位置情報を蓄積する。また、位置情報サーバ30は、端末装置10において利用が許可されているアプリケーションの識別情報(ID)も蓄積してもよい。位置情報サーバ30は、蓄積した位置情報をPOIサーバ42およびアプリケーションサーバ50に送信する。
また、位置情報サーバ30は、後述するライブラリ管理情報(図3)をその記憶部に記憶する。位置情報サーバ30は、ライブラリ管理情報を定期的に端末装置10に送信する。また、端末装置10において、複数の位置情報ライブラリのうち、特定の位置情報ライブラリが端末装置10における位置情報の取得を制御する。ここで、位置情報サーバ30は、端末装置10の複数の位置情報ライブラリのうち、いずれの位置情報ライブラリを、特定の位置情報ライブラリにするかということを、端末装置10に対して指定可能である。
The location information server 30 receives and accumulates location information transmitted from the terminal device 10. In this specific example, the location information server 30 accumulates location information in time series for each terminal device 10. The location information server 30 may also store identification information (ID) of applications that are permitted to be used in the terminal device 10. The location information server 30 transmits the accumulated location information to the POI server 42 and the application server 50.
Further, the location information server 30 stores library management information (FIG. 3) to be described later in the storage unit. The location information server 30 periodically transmits library management information to the terminal device 10. Further, in the terminal device 10, a specific position information library among a plurality of position information libraries controls acquisition of position information in the terminal device 10. Here, the location information server 30 can specify to the terminal device 10 which location information library of the plurality of location information libraries of the terminal device 10 is to be a specific location information library. .

アプリケーションサーバ50は、端末装置10にインストールされた複数のアプリケーションプログラムのそれぞれに対応したサーバ装置である。ここで、端末装置10には、アプリケーションプログラムA〜Nから選択される、複数のアプリケーションプログラムをインストールすることができる。本実施形態においては、端末装置10にアプリケーションプログラムA〜Cがインストールされている場合を一例にして説明する。この具体例においては、アプリケーションサーバ50Aは、端末装置10にインストールされた複数のアプリケーションプログラムのうち、アプリケーションプログラムAに対応したサーバ装置である。また、アプリケーションサーバ50Bは、端末装置10にインストールされた複数のアプリケーションプログラムのうち、アプリケーションプログラムBに対応したサーバ装置である。また、アプリケーションサーバ50Cは、端末装置10にインストールされた複数のアプリケーションプログラムのうち、アプリケーションプログラムCに対応したサーバ装置である。このアプリケーションサーバ50は、位置情報サーバ30を介して端末装置10の位置情報を受信する。   The application server 50 is a server device corresponding to each of a plurality of application programs installed in the terminal device 10. Here, a plurality of application programs selected from the application programs A to N can be installed in the terminal device 10. In the present embodiment, a case where application programs A to C are installed in the terminal device 10 will be described as an example. In this specific example, the application server 50 </ b> A is a server device corresponding to the application program A among a plurality of application programs installed in the terminal device 10. The application server 50B is a server device corresponding to the application program B among a plurality of application programs installed in the terminal device 10. The application server 50 </ b> C is a server device corresponding to the application program C among a plurality of application programs installed in the terminal device 10. The application server 50 receives the position information of the terminal device 10 via the position information server 30.

アプリケーションサーバ50は、トラッキングされた端末装置10の位置情報を用いて所定のアプリケーション処理を行う。トラッキングされた位置情報には、任意または所定の期間ごとに繰り返して更新された端末装置10の最新位置または過去の位置が含まれる。このアプリケーション処理には、端末装置10の位置の変化を解析して、端末装置10に適した広告情報等のアプリケーション情報を判定する処理などが含まれていてもよい。アプリケーション情報は、アプリケーションサーバ50から端末装置10に送信されてもよい。これによりアプリケーションサーバ50は、端末装置10に、端末装置10の位置に適した広告等を表示させることができる。この一例の場合、アプリケーション情報は、端末装置10の位置情報取得部で取得された位置情報に基づく情報に相当する。   The application server 50 performs predetermined application processing using the tracked location information of the terminal device 10. The tracked position information includes the latest position or past position of the terminal device 10 that is updated arbitrarily or arbitrarily and every predetermined period. This application process may include a process of analyzing a change in the position of the terminal device 10 and determining application information such as advertisement information suitable for the terminal device 10. The application information may be transmitted from the application server 50 to the terminal device 10. Thereby, the application server 50 can display an advertisement or the like suitable for the position of the terminal device 10 on the terminal device 10. In this example, the application information corresponds to information based on the position information acquired by the position information acquisition unit of the terminal device 10.

認証サーバ40は、端末装置10が位置情報サーバ30と通信を開始する際に、各種の認証処理を行う。この認証サーバ40が行う認証処理には、一例として、端末認証処理、ユーザ認証処理、またはアプリケーション認証処理が含まれている。これら認証処理の具体例について説明すると、端末認証処理において認証サーバ40は、端末装置10から送信された端末IDと予め記憶しておいた端末IDとが合致した場合に認証を成功させる。ここで、端末IDとは、端末装置10を識別するための固有の記号や番号などの情報である。ユーザ認証処理における認証サーバ40は、端末装置10から送信されたユーザIDと予め記憶しておいたユーザIDとが合致した場合に認証を成功させる。ここで、ユーザIDとは、端末装置10を利用するユーザを識別するための固有の記号や番号などの情報である。アプリケーション認証処理における認証サーバ40は、端末装置10から送信されたアプリケーションIDと予め記憶しておいたアプリケーションIDとが合致した場合に認証を成功させる。ここで、アプリケーションIDとは、端末装置10において利用可能なアプリケーションプログラムを識別するための固有の記号や番号などの情報である。   The authentication server 40 performs various authentication processes when the terminal device 10 starts communication with the location information server 30. The authentication process performed by the authentication server 40 includes, for example, a terminal authentication process, a user authentication process, or an application authentication process. Specific examples of these authentication processes will be described. In the terminal authentication process, the authentication server 40 makes the authentication successful when the terminal ID transmitted from the terminal device 10 matches the terminal ID stored in advance. Here, the terminal ID is information such as a unique symbol or number for identifying the terminal device 10. The authentication server 40 in the user authentication process makes the authentication successful when the user ID transmitted from the terminal device 10 matches the user ID stored in advance. Here, the user ID is information such as a unique symbol or number for identifying a user who uses the terminal device 10. The authentication server 40 in the application authentication process makes the authentication successful when the application ID transmitted from the terminal device 10 matches the application ID stored in advance. Here, the application ID is information such as a unique symbol or number for identifying an application program that can be used in the terminal device 10.

認証サーバ40による認証が成功した場合、認証サーバ40は、端末装置10にトークンを生成して、端末装置10に送信する。認証サーバ40から送信されたトークンは、端末装置10に記憶される。これにより端末装置10は、位置情報サーバ30およびアプリケーションサーバ50とセキュアな通信が可能となる。なお、トークンは任意のタイミングで更新されてもよい。これにより、端末装置10は、さらにセキュアな通信が可能となる。   When the authentication by the authentication server 40 is successful, the authentication server 40 generates a token in the terminal device 10 and transmits it to the terminal device 10. The token transmitted from the authentication server 40 is stored in the terminal device 10. Thereby, the terminal device 10 can perform secure communication with the position information server 30 and the application server 50. Note that the token may be updated at an arbitrary timing. Thereby, the terminal device 10 can perform more secure communication.

また、認証サーバ40は、端末装置10が携帯電話である場合、端末認証処理においてIP(Internet Protocol)アドレスおよび電話番号を用いてもよい。認証サーバ40は、位置情報サーバ30を介して、端末装置10から送信されたIPアドレスおよび電話番号を受信する。認証サーバ40は、受信したIPアドレスおよび電話番号と、正当なIPアドレスおよび電話番号とを照合する。認証サーバ40は、受信したIPアドレスおよび電話番号が正当なIPアドレスおよび電話番号と照合できた場合には、通信を許可する認証結果を位置情報サーバ30に送信する。   Further, when the terminal device 10 is a mobile phone, the authentication server 40 may use an IP (Internet Protocol) address and a telephone number in the terminal authentication process. The authentication server 40 receives the IP address and telephone number transmitted from the terminal device 10 via the location information server 30. The authentication server 40 collates the received IP address and telephone number with a valid IP address and telephone number. If the received IP address and telephone number can be verified with a valid IP address and telephone number, the authentication server 40 transmits an authentication result permitting communication to the location information server 30.

POIサーバ42は、POI情報を蓄積している。POI情報は、少なくとも店舗等の緯度、経度を示す情報を含んでいる。POIサーバ42は、端末装置10、位置情報サーバ30またはアプリケーションサーバ50から出力される、端末装置10の位置情報を含む要求を受け付けると、この要求の受け付けに応じて当該位置情報に対応したPOI情報を検索し、当該位置情報付近のPOI情報を返信する。なお、POI情報には、店舗等のロケーションID、ロケーション名、およびカテゴリ等を含んでいてもよい。これによりPOIサーバ42は、位置情報に対応したロケーションID、ロケーション名、およびカテゴリ等を検索結果として返信できる。
また、POIサーバ42は、POI情報をキーとして端末装置10を検索してもよい。これによりPOIサーバ42は、POI情報に該当する端末装置10を抽出して、検索結果として返信することができる。例えば、POIサーバ42は、ある店舗内に存在する端末装置10を検索して、端末装置10のユーザIDを返信することができる。
The POI server 42 stores POI information. The POI information includes at least information indicating the latitude and longitude of a store or the like. When the POI server 42 receives a request including the position information of the terminal device 10 output from the terminal device 10, the position information server 30 or the application server 50, the POI information corresponding to the position information in response to the reception of the request. And POI information near the position information is returned. The POI information may include a location ID such as a store, a location name, and a category. As a result, the POI server 42 can return the location ID, location name, category, etc. corresponding to the position information as a search result.
The POI server 42 may search the terminal device 10 using the POI information as a key. As a result, the POI server 42 can extract the terminal device 10 corresponding to the POI information and send it back as a search result. For example, the POI server 42 can search for the terminal device 10 present in a certain store and send back the user ID of the terminal device 10.

図2は、実施形態に係る端末装置10の構成を示すブロック図である。端末装置10は、処理部12、通信部14、GPS(Global Positioning System)測位部16、および記憶部18を含む。端末装置10は、ユーザに保有されて移動する機器である。端末装置10は、例えば携帯電話またはスマートフォンであってもよい。   FIG. 2 is a block diagram illustrating a configuration of the terminal device 10 according to the embodiment. The terminal device 10 includes a processing unit 12, a communication unit 14, a GPS (Global Positioning System) positioning unit 16, and a storage unit 18. The terminal device 10 is a device that is owned and moved by a user. The terminal device 10 may be a mobile phone or a smartphone, for example.

通信部14は、位置情報サーバ30との間で通信を行う。通信部14は、例えば通信ICチップにより構成されている。通信部14は、処理部12から供給された位置情報を所定の通信データに変換して位置情報サーバ30に送信する。この位置情報には、測位時刻、緯度および経度が含まれている。認証サーバ40がアプリケーション認証をする場合には、位置情報には、端末装置10において許可されているアプリケーションのアプリケーションIDが含まれていてもよい。位置情報サーバ30またはアプリケーションサーバ50から通信データを受信した場合、通信部14は、受信した通信データに所定の処理を施して処理部12に出力する。   The communication unit 14 communicates with the position information server 30. The communication unit 14 is configured by a communication IC chip, for example. The communication unit 14 converts the position information supplied from the processing unit 12 into predetermined communication data and transmits it to the position information server 30. This position information includes positioning time, latitude, and longitude. When the authentication server 40 performs application authentication, the position information may include an application ID of an application permitted in the terminal device 10. When communication data is received from the position information server 30 or the application server 50, the communication unit 14 performs a predetermined process on the received communication data and outputs it to the processing unit 12.

位置情報には、ユーザID、端末ID、端末機種名、およびOS(Operating System)の種別等の端末装置10に関する情報が含まれていてもよい。さらに、位置情報には、位置情報の測位方式、および当該測位方式で測位された位置情報の測位誤差を含んでいてもよい。測位方式としては、例えばGPS測位方式、セルID方式、Wi−Fi方式、またはネットワーク測位方式が挙げられる。さらに、端末装置10がWi−Fiネットワークに存在する場合には、位置情報には、Wi−FiネットワークのアクセスポイントのIDが含まれていてもよい。さらに、端末装置10がBluetooth(登録商標)機能を起動して通信している場合、位置情報には、Bluetooth(登録商標)端末としてのIDが含まれていてもよい。   The position information may include information related to the terminal device 10 such as a user ID, a terminal ID, a terminal model name, and an OS (Operating System) type. Further, the position information may include a positioning method of the position information and a positioning error of the position information measured by the positioning method. Examples of the positioning method include a GPS positioning method, a cell ID method, a Wi-Fi method, and a network positioning method. Furthermore, when the terminal device 10 exists in the Wi-Fi network, the location information may include the ID of the access point of the Wi-Fi network. Further, when the terminal device 10 is communicating by activating the Bluetooth (registered trademark) function, the position information may include an ID as a Bluetooth (registered trademark) terminal.

さらに、位置情報には、位置情報が示す位置において端末装置10が実行したプログラムに関するプログラム実行履歴情報が含まれていてもよい。プログラム実行履歴情報には、端末装置10がプログラムを実行した時刻と実行したプログラムの名称や種類が含まれる。なお、プログラム実行履歴情報には、プログラムの起動された時刻と、スリープ状態からのプログラムが再起動された時刻とが含まれる。端末装置10が実行するプログラムには、例えば、カメラプログラム、メールプログラム、電話プログラム、音楽再生プログラム(再生した楽曲名などを含んでもよい)、電卓プログラム等が含まれる。   Furthermore, the position information may include program execution history information related to a program executed by the terminal device 10 at the position indicated by the position information. The program execution history information includes the time when the terminal device 10 executes the program and the name and type of the executed program. The program execution history information includes the time when the program is started and the time when the program is restarted from the sleep state. The programs executed by the terminal device 10 include, for example, a camera program, a mail program, a telephone program, a music playback program (which may include a played music name, etc.), a calculator program, and the like.

さらに、位置情報には、位置情報が示す位置において端末装置10がアクセスしたウェブページへのアクセス履歴や起動したウェブブラウザの操作履歴に関するウェブ履歴情報が含まれていてもよい。ウェブ履歴情報には、端末装置10が企業の広告、又は、ホームページ等のWebページにアクセスした時刻とアクセスしたWebページのアドレスとが含まれる。   Further, the position information may include web history information related to an access history to the web page accessed by the terminal device 10 at the position indicated by the position information and an operation history of the activated web browser. The web history information includes the time when the terminal device 10 accessed a corporate advertisement or a web page such as a home page and the address of the accessed web page.

さらに、位置情報には、位置情報が示す位置において端末装置10が受け付けたユーザからの操作に関する操作履歴情報が含まれていてもよい。操作履歴情報には、端末装置10が操作を受け付けた時刻と受け付けた操作の名称や種類が含まれる。端末装置10が受け付ける操作には、例えば、電源をONする操作、電源をOFFする操作、スピーカ音量の調節操作、省電力モードへの切替操作等が含まれる。   Further, the position information may include operation history information related to an operation from the user received by the terminal device 10 at the position indicated by the position information. The operation history information includes the time when the terminal device 10 receives an operation and the name and type of the received operation. The operations received by the terminal device 10 include, for example, an operation to turn on the power, an operation to turn off the power, an operation to adjust the speaker volume, and an operation to switch to the power saving mode.

さらに、位置情報には、位置情報が示す位置における端末装置10の姿勢の変化を示す姿勢変化情報が含まれていてもよい。姿勢変化情報には、端末装置10の姿勢が変化した時刻が含まれる。なお、端末装置10の姿勢の変化は、後述する加速度センサ等により検出される。   Furthermore, the position information may include posture change information indicating a change in the posture of the terminal device 10 at the position indicated by the position information. The posture change information includes the time when the posture of the terminal device 10 is changed. Note that the change in the attitude of the terminal device 10 is detected by an acceleration sensor or the like to be described later.

さらに、位置情報には、位置情報が示す位置において端末装置10が取得した環境情報が含まれていてもよい。環境情報には、端末装置10が収集した音情報や、近距離通信の通信履歴等が含まれる。端末装置10が収集した音情報は、例えば店舗で流される可聴音や不可聴音に関する情報である。近距離通信の通信履歴は、例えばBluetooth(登録商標)及び赤外線等の通信を行った時刻等が含まれる。
ウェブ履歴情報、プログラム実行履歴情報、操作履歴情報、充電履歴情報、姿勢変化情報、及び環境情報は、処理部12により生成される。
Further, the position information may include environment information acquired by the terminal device 10 at the position indicated by the position information. The environmental information includes sound information collected by the terminal device 10, a communication history of near field communication, and the like. The sound information collected by the terminal device 10 is information on audible sounds and inaudible sounds that are circulated in stores, for example. The communication history of near field communication includes, for example, Bluetooth (registered trademark), the time when infrared communication or the like was performed, and the like.
Web history information, program execution history information, operation history information, charging history information, posture change information, and environment information are generated by the processing unit 12.

GPS測位部16は、位置情報を取得する位置情報取得部として機能する。GPS測位部16は、自装置の位置を特定して位置情報を生成し、処理部12に出力する。このときGPS測位部16は、複数のGPS衛星からGPS衛星の位置および時刻を含むGPS信号を受信する。GPS測位部16は、複数のGPS衛星と端末装置10の距離を演算し、三角測量演算により自装置の位置を特定する。特定された位置および時刻は、位置情報としてGPS測位部16から処理部12に供給される。   The GPS positioning unit 16 functions as a position information acquisition unit that acquires position information. The GPS positioning unit 16 specifies the position of the device itself, generates position information, and outputs the position information to the processing unit 12. At this time, the GPS positioning unit 16 receives a GPS signal including the position and time of the GPS satellite from a plurality of GPS satellites. The GPS positioning unit 16 calculates the distance between the plurality of GPS satellites and the terminal device 10, and specifies the position of the own device by triangulation calculation. The specified position and time are supplied from the GPS positioning unit 16 to the processing unit 12 as position information.

GPS測位部16は、スリープ状態と、通常動作状態との少なくとも2つの状態によって動作する。このうち、スリープ状態とは、測位を実施せずに待機している状態であって、通常動作状態よりも消費電力が少ない状態である。また、通常動作状態とは、測位を実施する状態であって、スリープ状態よりも消費電力が多い状態である。GPS測位部16は、処理部12による起動要求によって、状態を遷移させる。具体的には、GPS測位部16は、処理部12による起動要求をトリガにして、スリープ状態から通常動作状態に状態を遷移させる。また、GPS測位部16は、測位演算が終了したことをトリガにして、通常動作状態からスリープ状態に状態を遷移させる。ここで、起動要求とは、処理部12がGPS測位部16に対して出力する要求であって、自装置の位置を特定して位置情報を生成する処理の実行の要求である。   The GPS positioning unit 16 operates in at least two states, a sleep state and a normal operation state. Among these, the sleep state is a state in which standby is performed without performing positioning, and is a state in which power consumption is less than that in the normal operation state. The normal operation state is a state in which positioning is performed, and is a state in which power consumption is higher than that in the sleep state. The GPS positioning unit 16 changes the state according to the activation request from the processing unit 12. Specifically, the GPS positioning unit 16 makes a transition from the sleep state to the normal operation state using the activation request from the processing unit 12 as a trigger. In addition, the GPS positioning unit 16 makes a transition from the normal operation state to the sleep state by using the end of the positioning calculation as a trigger. Here, the activation request is a request that the processing unit 12 outputs to the GPS positioning unit 16, and is a request for execution of processing for specifying the position of the own device and generating position information.

換言すれば、GPS測位部16は、処理部12から出力される起動要求の入力を待機している期間においてスリープ状態となっている。スリープ状態とは、省電力で動作している状態であり、起動要求により解除される。GPS測位部16は、処理部12から起動要求を入力することに応じて起動する。これによりGPS測位部16は、スリープ状態から通常動作状態に切り替わる。起動要求は、自装置の位置情報を取得する命令である。GPS測位部16は、起動要求に応じて位置情報を取得して処理部12に出力すると、所定時間後にスリープ状態となる。   In other words, the GPS positioning unit 16 is in a sleep state during a period of waiting for an input of an activation request output from the processing unit 12. The sleep state is a state of operating with power saving and is canceled by a start request. The GPS positioning unit 16 is activated in response to an activation request input from the processing unit 12. As a result, the GPS positioning unit 16 switches from the sleep state to the normal operation state. The activation request is a command for acquiring position information of the own device. When the GPS positioning unit 16 acquires position information in response to the activation request and outputs it to the processing unit 12, the GPS positioning unit 16 enters a sleep state after a predetermined time.

なお、位置情報を取得する位置情報取得部は、他の方式により位置情報を取得してもよい。
この位置情報取得部は、セルID(携帯電話基地局)方式によって位置情報を取得してもよい。このセルID方式は、端末装置10が携帯電話端末の場合、携帯電話端末としての通信機能を応用して、3つ以上の携帯電話基地局の電波情報に基づいて端末装置10の現在地を算出する。
位置情報取得部は、Wi−Fi方式によって位置情報を取得してもよい。Wi−Fi方式は、端末装置10周辺の無線LANのアクセスポイントから送信される電波を検出し、アクセスポイントの位置情報に基づいてアクセスポイントまたは所定のサーバ等から端末装置10の位置情報を取得する。
さらに、位置情報取得部は、ネットワーク測位方式によって位置情報を取得してもよい。ネットワーク測位方式は、セルID方式とWi−Fi方式による測位で位置情報を取得する。
このように、位置情報取得部は、GPS測位方式のみならず、セルID方式またはWi−Fi方式を用いる構成であっても、処理部12からの起動要求に応じてスリープ状態から起動して、位置情報を取得できる。
本実施形態において、端末装置10は、位置情報の取得方式として、Wi−Fi方式およびセルID方式よりも、GPS測位部16による測位方式を優先する。端末装置10は、例えば自装置が屋内にいる等のGPS測位部16に測位ができない状況において、GPS測位部16による測位に代えて、セルID方式またはWi−Fi方式による測位に切り替える。
Note that the position information acquisition unit that acquires the position information may acquire the position information by another method.
The location information acquisition unit may acquire location information by a cell ID (mobile phone base station) method. In the cell ID method, when the terminal device 10 is a mobile phone terminal, the current location of the terminal device 10 is calculated based on radio wave information of three or more mobile phone base stations by applying a communication function as a mobile phone terminal. .
The position information acquisition unit may acquire position information by a Wi-Fi method. In the Wi-Fi scheme, radio waves transmitted from wireless LAN access points around the terminal device 10 are detected, and the location information of the terminal device 10 is acquired from the access point or a predetermined server based on the location information of the access point. .
Furthermore, the position information acquisition unit may acquire position information by a network positioning method. In the network positioning method, position information is acquired by positioning using the cell ID method and the Wi-Fi method.
As described above, the position information acquisition unit is activated from the sleep state in response to the activation request from the processing unit 12 even in a configuration using not only the GPS positioning method but also the cell ID method or the Wi-Fi method. Location information can be acquired.
In the present embodiment, the terminal device 10 gives priority to the positioning method by the GPS positioning unit 16 over the Wi-Fi method and the cell ID method as the position information acquisition method. The terminal device 10 switches to the positioning by the cell ID method or the Wi-Fi method instead of the positioning by the GPS positioning unit 16 in a situation where the GPS positioning unit 16 cannot perform positioning, for example, the terminal device 10 is indoors.

記憶部18は、各種の情報を記憶する記録媒体である。記憶部18は、位置情報取得制御部122により取得させた位置情報を蓄積する。記憶部18は、位置情報を時系列で記憶する。記憶部18は、アプリケーション認証を行う場合、位置情報に対応付けて、起動が許可されたアプリケーションプログラムのアプリケーションIDを記憶してもよい。また、記憶部18は、後述するライブラリ管理情報とマスタ選択条件とを記憶する。   The storage unit 18 is a recording medium that stores various types of information. The storage unit 18 accumulates the position information acquired by the position information acquisition control unit 122. The storage unit 18 stores position information in time series. When performing application authentication, the storage unit 18 may store an application ID of an application program permitted to be activated in association with position information. The storage unit 18 also stores library management information and master selection conditions described later.

また、記憶部18には、位置情報取得制御部122が動作するための位置取得制御用プログラムとしての位置情報ライブラリが記憶される。位置取得制御用プログラムは、コンピュータにより読込可能なプログラムである。   Further, the storage unit 18 stores a position information library as a position acquisition control program for operating the position information acquisition control unit 122. The position acquisition control program is a program that can be read by a computer.

処理部12は、例えば、CPU(Central Processing Unit)等のプロセッサが、メモリに記憶されたプログラムを実行することにより機能するソフトウェア機能部である。また、これらの機能部のうち一部または全部は、LSI(Large Scale Integration)やASIC(Application Specific Integrated Circuit)等のハードウェア機能部であってもよい。   The processing unit 12 is a software function unit that functions when a processor such as a CPU (Central Processing Unit) executes a program stored in a memory. Some or all of these functional units may be hardware functional units such as LSI (Large Scale Integration) and ASIC (Application Specific Integrated Circuit).

処理部12は、アプリケーション処理部120A、120B、120C(以下、総称する場合には単に「アプリケーション処理部120」と呼ぶ。)を有する。アプリケーション処理部120A、120B、120Cは、CPUがアプリケーションプログラムA、B、Cを実行することにより機能するソフトウェア機能部である。本実施形態において、複数のアプリケーション処理部120A、120B、120Cは、それぞれ任意のアプリケーション処理を実行する。また、本実施形態では、アプリケーションプログラムA、B、Cの3つを実行するが2以上のアプリケーションプログラムを同時に実行するものであればよい。   The processing unit 12 includes application processing units 120A, 120B, and 120C (hereinafter simply referred to as “application processing unit 120” when collectively referred to). The application processing units 120A, 120B, and 120C are software function units that function when the CPU executes the application programs A, B, and C. In the present embodiment, each of the plurality of application processing units 120A, 120B, and 120C executes arbitrary application processing. In this embodiment, three application programs A, B, and C are executed, but any application program that executes two or more application programs at the same time may be used.

端末装置10は、アプリケーションプログラムA、B、Cの起動時にアプリケーション認証のための動作を行ってもよい。この場合、端末装置10は、アプリケーションプログラムが起動する際に、アプリケーションプログラムごとに予め定められているアプリケーションIDを認証サーバ40に送信する。より具体的には、端末装置10は、アプリケーションプログラムAが起動する際に、アプリケーションプログラムAを示すアプリケーションIDを認証サーバ40に送信する。端末装置10は、認証サーバ40からアプリケーション認証が許可されたか否かの認証結果を受信する。端末装置10は、認証結果が「許可」の場合のみアプリケーションプログラムの起動を許可する。   The terminal device 10 may perform an operation for application authentication when the application programs A, B, and C are activated. In this case, when the application program is activated, the terminal device 10 transmits an application ID predetermined for each application program to the authentication server 40. More specifically, the terminal device 10 transmits an application ID indicating the application program A to the authentication server 40 when the application program A is activated. The terminal device 10 receives an authentication result indicating whether application authentication is permitted from the authentication server 40. The terminal device 10 permits the application program to be activated only when the authentication result is “permitted”.

処理部12は、同時に複数のアプリケーションプログラムA、B、Cが実行可能である。処理部12は、複数のアプリケーションプログラムA、B、Cのうち優先度の低いアプリケーションプログラムをバックグラウンドで実行する。なお、アプリケーションプログラムA、B、Cは、所定期間ごとに起動要求を出力することが設定されていてもよい。所定期間は、アプリケーションプログラムA、B、Cごとに設定されていてもよい。   The processing unit 12 can execute a plurality of application programs A, B, and C at the same time. The processing unit 12 executes an application program with a low priority among the plurality of application programs A, B, and C in the background. Note that the application programs A, B, and C may be set to output an activation request every predetermined period. The predetermined period may be set for each of the application programs A, B, and C.

独自の所定期間は、例えばアプリケーションの種類等に基づき、1分、10分、1時間などが挙げられる。また、独自の所定期間は、ユーザの操作を受け付け、ユーザにより指定された期間となるように変更させてもよい。さらに、独自の所定期間は、過去の測位履歴に基づいて自動的に変更させてもよい。例えば、次の所定期間を設定する際に、処理部12は、前回の所定期間の開始前および経過時において測位された2つの位置情報から前回の所定期間内の移動距離を算出し、前回の所定期間において自装置の移動がある、または移動距離が長い場合には、次の所定期間を短く変更してもよい。   The unique predetermined period may be 1 minute, 10 minutes, 1 hour or the like based on the type of application, for example. Further, the unique predetermined period may be changed so as to be a period specified by the user by accepting a user operation. Further, the unique predetermined period may be automatically changed based on the past positioning history. For example, when setting the next predetermined period, the processing unit 12 calculates the moving distance within the previous predetermined period from the two pieces of position information measured before and after the start of the previous predetermined period. If there is a movement of the own device in a predetermined period or the movement distance is long, the next predetermined period may be changed short.

独自のタイミングは、自装置が通信する基地局に対応したセルID、自装置が通信可能なWiFiアクセスポイントのアクセスポイントIDが変化したタイミングが挙げられる。処理部12は、セルIDまたはアクセスポイントIDが変化したことをトリガとして起動要求の出力タイミングの到来を判断できる。さらに、独自のタイミングは、後述する加速度センサ等の自装置の移動を検知し、自装置が所定距離移動したと推定されるタイミングであってもよい。この所定距離は、後述するように、自装置が所定エリアに進入したことに応じて再設定または変更されてもよい。また、所定距離は、ユーザの操作を受け付け、ユーザにより指定された距離となるように変更させてもよい。
本実施形態の端末装置10は、アプリケーションプログラムが起動要求を出力するものであっても、一つの位置情報取得制御部122のみがGPS測位部16に起動要求を出力する。
The unique timing includes a timing at which the cell ID corresponding to the base station with which the device itself communicates and the access point ID of the WiFi access point with which the device can communicate change. The processing unit 12 can determine the arrival of the output timing of the activation request triggered by the change of the cell ID or access point ID. Further, the unique timing may be a timing at which it is estimated that the own device has moved a predetermined distance by detecting the movement of the own device such as an acceleration sensor described later. As will be described later, the predetermined distance may be reset or changed in response to the own device entering a predetermined area. Further, the predetermined distance may be changed so as to be a distance designated by the user upon receiving a user operation.
In the terminal device 10 of this embodiment, even if the application program outputs a start request, only one position information acquisition control unit 122 outputs a start request to the GPS positioning unit 16.

図2の構成において、アプリケーションプログラムA、B、Cには、それぞれに位置情報ライブラリが付属している。すなわち、アプリケーションプログラムAには、位置情報ライブラリAが付属している。また、アプリケーションプログラムBには、位置情報ライブラリBが付属しており、アプリケーションプログラムCには、位置情報ライブラリCが付属している。以下の説明において、これら位置情報ライブラリA、B、Cを総称して、位置情報ライブラリという。また、以下では、一つのアプリケーションに対して、一つの位置情報ライブラリが付属する例について説明する。
この位置情報ライブラリは、GPS測位部16に対して、起動要求を出力する。また、位置情報ライブラリは、この起動要求に応じてGPS測位部16が生成した位置情報を取得し、取得した位置情報をアプリケーションプログラムに出力する。これにより、アプリケーションプログラムは、GPS測位部16が生成した位置情報の利用が可能になる。
また、この位置情報ライブラリとは、端末装置10のCPUによって実行されるソフトウェアである。すなわち、端末装置10において、CPUが位置情報ライブラリを実行する。これにより、端末装置10は、ソフトウェア機能部として位置情報取得制御部122A、122B、122C(以下、総称する場合には単に「位置情報取得制御部122」と呼ぶ。)を構成する。すなわち、処理部12は、これら位置情報取得制御部122をアプリケーションごとに有している。
In the configuration of FIG. 2, each of the application programs A, B, and C has a position information library attached thereto. That is, the application program A is attached with the position information library A. The application program B is attached with a position information library B, and the application program C is attached with a position information library C. In the following description, these position information libraries A, B, and C are collectively referred to as a position information library. In the following, an example in which one location information library is attached to one application will be described.
This position information library outputs an activation request to the GPS positioning unit 16. Further, the position information library acquires the position information generated by the GPS positioning unit 16 in response to the activation request, and outputs the acquired position information to the application program. Thereby, the application program can use the position information generated by the GPS positioning unit 16.
The position information library is software executed by the CPU of the terminal device 10. That is, in the terminal device 10, the CPU executes the position information library. Thereby, the terminal device 10 constitutes position information acquisition control units 122A, 122B, and 122C (hereinafter, simply referred to as “position information acquisition control unit 122” when collectively referred to) as software function units. That is, the processing unit 12 has the position information acquisition control unit 122 for each application.

位置情報取得制御部122を実現するための位置情報ライブラリは、それぞれ、独自の測位タイミングおよび位置情報の送信タイミングが設定される。複数のアプリケーションに付属されるそれぞれの位置情報ライブラリは、付属されるアプリケーションの種類および使用頻度、ダウンロードされた日時、またはソフトウェアバージョン等が異なる。従って、それぞれの位置情報ライブラリの測位タイミングおよび送信タイミングは、それぞれ好ましいタイミングが設定される。
後述するように、自装置が通常モードと省電力モードの切替によって変更され、変更された動作モードに応じてマスタとしての位置情報ライブラリが変更されることに伴い、自装置の測位タイミングおよび送信タイミングを変更させる。
Each position information library for realizing the position information acquisition control unit 122 has its own positioning timing and position information transmission timing. Each location information library attached to a plurality of applications differs in the type and frequency of use of the attached application, the date and time of download, the software version, or the like. Therefore, preferable timings are set for the positioning timing and the transmission timing of each position information library.
As will be described later, when the own device is changed by switching between the normal mode and the power saving mode, and the position information library as the master is changed according to the changed operation mode, the positioning timing and transmission timing of the own device are changed. To change.

ここで、アプリケーションプログラムA、B、Cには、それぞれに位置情報ライブラリが付属しているが、必ずしも、これら全ての位置情報ライブラリがGPS測位部16に対して起動要求を出力しなくてもよい。つまり、処理部12には、複数の位置情報取得制御部122のうち、位置情報を取得させて位置情報をアプリケーション処理部120に利用可能にする一つの位置情報取得制御部122が存在していればよい。「一つの位置情報取得制御部122」は、後述するマスタとされた位置情報ライブラリにより実現される。「一つの位置情報取得制御部122」は、図4を参照して後述するように、複数のアプリケーションに対応した1つの位置情報ライブラリとして付属していてもよい。   Here, each of the application programs A, B, and C has a position information library attached thereto, but not all of these position information libraries need to output a start request to the GPS positioning unit 16. . That is, the processing unit 12 may include one position information acquisition control unit 122 that acquires position information and makes the position information available to the application processing unit 120 among the plurality of position information acquisition control units 122. That's fine. The “one position information acquisition control unit 122” is realized by a position information library which is a master described later. As described later with reference to FIG. 4, “one position information acquisition control unit 122” may be attached as one position information library corresponding to a plurality of applications.

アプリケーション処理部120は、一つの位置情報取得制御部122によってGPS測位部16に取得させる位置情報を利用する。
「位置情報を利用する」とは、端末装置10内で位置情報を使用することを含む。アプリケーション処理部120は、例えば、位置情報を使用することにより、GPS測位部16により取得された位置情報に基づいて自装置の位置を地図上に表示させることができる。
「位置情報を利用する」とは、GPS測位部16により取得した位置情報に基づく情報を使用することを含む。位置情報に基づく情報は、位置情報を用いることによって得られた新たな情報である。位置情報に基づく情報は、端末装置10内で位置情報に基づいて処理をしたことによって得られた情報であってもよく、アプリケーションサーバ50内で位置情報に基づいて処理したことによって得られた情報であってもよい。例えば、アプリケーション処理部120は、自装置の位置に近い店舗の広告情報を抽出して、広告情報をプッシュ広告として表示してもよい。アプリケーション処理部120は、アプリケーションサーバ50によって位置情報に基づいて抽出された広告情報を受信して、広告情報をプッシュ広告として表示してもよい。
The application processing unit 120 uses position information that is acquired by the GPS positioning unit 16 by one position information acquisition control unit 122.
“Use location information” includes using location information within the terminal device 10. For example, the application processing unit 120 can display the position of its own device on the map based on the position information acquired by the GPS positioning unit 16 by using the position information.
“Using position information” includes using information based on position information acquired by the GPS positioning unit 16. Information based on position information is new information obtained by using position information. The information based on the position information may be information obtained by processing based on the position information in the terminal device 10, or information obtained by processing based on the position information in the application server 50. It may be. For example, the application processing unit 120 may extract advertisement information of a store close to the position of the own device and display the advertisement information as a push advertisement. The application processing unit 120 may receive the advertisement information extracted based on the position information by the application server 50 and display the advertisement information as a push advertisement.

アプリケーション処理部120は、一つの位置情報取得制御部122が取得する位置情報を利用可能にする。「位置情報を利用可能にする」とは、端末装置10以外の装置に位置情報を取得させ、端末装置10以外の装置に位置情報を処理可能にすることを含む。
このために、アプリケーション処理部120は、GPS測位部16により取得された位置情報の利用を許可する。このときアプリケーション処理部120は、位置情報を送信することを許可するかをユーザに問い合わせる。ユーザが位置情報の送信を許可した場合、アプリケーション処理部120は、位置情報の利用を許可する許可情報を生成する。アプリケーション処理部120は、生成した許可情報を位置情報サーバ30に送信する。位置情報サーバ30は、端末装置10から送信された許可情報を受信した後、以降において端末装置10から送信された位置情報を蓄積して、アプリケーションサーバ50等に送信できる。これによりアプリケーション処理部120は、アプリケーションサーバ50によって位置情報を利用して、端末装置10の位置の解析等を行わせることができる。
The application processing unit 120 makes the position information acquired by one position information acquisition control unit 122 available. “Making location information available” includes causing a device other than the terminal device 10 to acquire the position information and enabling a device other than the terminal device 10 to process the position information.
For this purpose, the application processing unit 120 permits the use of the position information acquired by the GPS positioning unit 16. At this time, the application processing unit 120 inquires of the user whether to permit transmission of the position information. When the user permits transmission of the position information, the application processing unit 120 generates permission information that permits the use of the position information. The application processing unit 120 transmits the generated permission information to the location information server 30. After receiving the permission information transmitted from the terminal device 10, the location information server 30 can accumulate the position information transmitted from the terminal device 10 and transmit it to the application server 50 or the like thereafter. Accordingly, the application processing unit 120 can cause the application server 50 to analyze the position of the terminal device 10 by using the position information.

さらに、アプリケーション処理部120は、予め端末装置10にインストールされたものである。アプリケーション処理部120は、位置情報ライブラリが端末装置10に供給されることに伴って、端末装置10にインストールされたものであってもよい。具体的には、位置情報ライブラリが付属したアプリケーションプログラムを同時にダウンロードして端末装置10にインストールする。これにより端末装置10は、アプリケーション処理部120および位置情報取得制御部122を備えることができる。   Furthermore, the application processing unit 120 is installed in the terminal device 10 in advance. The application processing unit 120 may be installed in the terminal device 10 as the position information library is supplied to the terminal device 10. Specifically, an application program with a location information library is downloaded at the same time and installed in the terminal device 10. Accordingly, the terminal device 10 can include the application processing unit 120 and the position information acquisition control unit 122.

位置情報ライブラリは、ユーザの許可に応じてダウンロードされる。アプリケーションプログラムを起動している時に、アプリケーション処理部120は、自装置の位置情報の送信を許可するかを問い合わせる画面を表示させる。ユーザの操作に基づいて位置情報の送信が許可された場合、アプリケーション処理部120は、位置情報ライブラリのダウンロード要求を送信させる。
位置情報サーバ30は、ダウンロード要求を受信したことに応じて位置情報ライブラリを端末装置10に送信する。これにより端末装置10は、位置情報ライブラリのダウンロードを開始する。処理部12は、ダウンロードが完了すると、位置情報ライブラリを各アプリケーションプログラムに付属させる。
The location information library is downloaded according to the user's permission. When the application program is activated, the application processing unit 120 displays a screen for inquiring whether transmission of position information of the own device is permitted. When transmission of location information is permitted based on a user operation, the application processing unit 120 transmits a download request for the location information library.
The location information server 30 transmits a location information library to the terminal device 10 in response to receiving the download request. As a result, the terminal device 10 starts downloading the position information library. When the download is completed, the processing unit 12 attaches the position information library to each application program.

処理部12は、ダウンロードした位置情報ライブラリを他のアプリケーションに付属させてもよい。処理部12は、ダウンロードした位置情報ライブラリを複製し、位置情報ライブラリが付属していないアプリケーションに組み込む。これにより処理部12は、位置情報ライブラリが付属していないアプリケーションに位置情報ライブラリを付属させることができる。
処理部12は、既にアプリケーションに組み入れられている古いバージョンの位置情報ライブラリに代えて最新バージョンの位置情報ライブラリに更新してもよい。これにより処理部12は、アプリケーションの位置情報ライブラリを最新なものに更新することができる。
The processing unit 12 may attach the downloaded position information library to another application. The processing unit 12 duplicates the downloaded location information library and incorporates it into an application not provided with the location information library. As a result, the processing unit 12 can attach the position information library to an application that does not have the position information library.
The processing unit 12 may update to the latest version of the position information library instead of the old version of the position information library already incorporated in the application. Accordingly, the processing unit 12 can update the position information library of the application to the latest one.

次に、位置情報取得制御部122について説明する。位置情報取得制御部122は、GPS測位部16を制御して位置情報を取得し、取得した位置情報を位置情報サーバ30に送信する機能を有する。
まず、位置情報取得制御部122によるGPS測位部16の制御について説明する。位置情報取得制御部122は、GPS測位部16に起動要求を行う。複数のアプリケーション処理部120A、120B、120Cに付属した複数の位置情報取得制御部122A、122B、122Cのうちの一つの位置情報取得制御部122が、GPS測位部16に起動要求を行う。複数の位置情報取得制御部122のうち起動要求を行う一つの位置情報取得制御部122は、予め特定されている。すなわち、複数のアプリケーションプログラムA、B、Cのうちどのアプリケーションプログラムの位置情報取得制御部122からGPS測位部16に起動要求を出力するかは特定されている。
Next, the position information acquisition control unit 122 will be described. The position information acquisition control unit 122 has a function of controlling the GPS positioning unit 16 to acquire position information and transmitting the acquired position information to the position information server 30.
First, the control of the GPS positioning unit 16 by the position information acquisition control unit 122 will be described. The position information acquisition control unit 122 makes an activation request to the GPS positioning unit 16. One position information acquisition control unit 122 among the plurality of position information acquisition control units 122A, 122B, and 122C attached to the plurality of application processing units 120A, 120B, and 120C makes an activation request to the GPS positioning unit 16. One position information acquisition control unit 122 that makes an activation request among the plurality of position information acquisition control units 122 is specified in advance. That is, it is specified which application program among the plurality of application programs A, B, and C outputs the activation request from the position information acquisition control unit 122 to the GPS positioning unit 16.

複数の位置情報取得制御部122のうち、起動要求を出力した位置情報取得制御部122には、GPS測位部16から位置情報が供給される。この位置情報取得制御部122は、GPS測位部16から位置情報が供給されたことを、他の位置情報取得制御部122に通知する。この、他の位置情報取得制御部122は、位置情報が供給されたことを示す通知に応じて、起動要求を出力した位置情報取得制御部122に対して位置情報を要求する。起動要求を出力した位置情報取得制御部122は、他の位置情報取得制御部122からの要求に応じて、他の位置情報取得制御部122に対して位置情報を出力する。ここで、起動要求を出力した位置情報取得制御部122とは、予め特定されたアプリケーションに付属した位置情報取得制御部122である。また、他の位置情報取得制御部122とは、予め特定されたアプリケーション以外のアプリケーションに付属した位置情報取得制御部122である。つまり、予め特定されたアプリケーションに付属した位置情報取得制御部122は、他のアプリケーションに付属した位置情報取得制御部122に位置情報を出力する。これにより、他のアプリケーションに付属した位置情報取得制御部122は、GPS測位部16に起動要求を行うことなく、GPS測位部16が生成した位置情報を取得することができる。   Among the plurality of position information acquisition control units 122, the position information acquisition control unit 122 that has output the activation request is supplied with position information from the GPS positioning unit 16. The position information acquisition control unit 122 notifies the other position information acquisition control unit 122 that the position information is supplied from the GPS positioning unit 16. The other position information acquisition control unit 122 requests position information from the position information acquisition control unit 122 that has output the activation request in response to the notification indicating that the position information has been supplied. The position information acquisition control unit 122 that has output the activation request outputs position information to the other position information acquisition control unit 122 in response to a request from the other position information acquisition control unit 122. Here, the location information acquisition control unit 122 that has output the activation request is the location information acquisition control unit 122 attached to the application specified in advance. The other position information acquisition control unit 122 is a position information acquisition control unit 122 attached to an application other than the application specified in advance. That is, the position information acquisition control unit 122 attached to the application specified in advance outputs the position information to the position information acquisition control unit 122 attached to another application. As a result, the position information acquisition control unit 122 attached to another application can acquire the position information generated by the GPS positioning unit 16 without making an activation request to the GPS positioning unit 16.

予め特定されたアプリケーションに付属した位置情報取得制御部122は、位置情報サーバ30に位置情報を送信する場合に、記憶部18に蓄積した位置情報を読み出して、通信部14に出力する。これにより位置情報取得制御部122は、記憶部18から読み出した位置情報を、通信部14から位置情報サーバ30に送信させる。
なお、位置情報取得制御部122は、位置情報サーバ30を介さずに、アプリケーションサーバ50に直接的に位置情報を送信してもよい。
The position information acquisition control unit 122 attached to the application specified in advance reads the position information accumulated in the storage unit 18 and outputs the position information to the communication unit 14 when transmitting the position information to the position information server 30. Accordingly, the position information acquisition control unit 122 causes the communication unit 14 to transmit the position information read from the storage unit 18 to the position information server 30.
Note that the position information acquisition control unit 122 may transmit the position information directly to the application server 50 without using the position information server 30.

予め特定されたアプリケーションに付属した位置情報取得制御部122は、所定条件を満たす場合に、端末装置10から位置情報サーバ30に位置情報を送信させる。所定条件は、予め端末装置10内で決定された送信タイミングである。
所定条件は、位置情報サーバ30から送信された所定期間であってもよい。これにより端末装置10は、位置情報サーバ30が要求する頻度で位置情報サーバ30に位置情報を送信できる。
所定条件は、アプリケーションによって設定されたタイミングであってもよい。これにより端末装置10は、アプリケーションが要求する頻度で位置情報サーバ30に位置情報を送信できる。
所定条件は、位置情報サーバ30を介さずにアプリケーションサーバ50に直接的に位置情報を送信する場合、アプリケーションサーバ50から送信された所定期間であってもよい。これにより端末装置10は、アプリケーションサーバ50が要求する頻度で、アプリケーションサーバ50に位置情報を送信できる。
The location information acquisition control unit 122 attached to the application specified in advance causes the location information server 30 to transmit location information when the predetermined condition is satisfied. The predetermined condition is a transmission timing determined in advance in the terminal device 10.
The predetermined condition may be a predetermined period transmitted from the location information server 30. Thereby, the terminal device 10 can transmit position information to the position information server 30 at a frequency requested by the position information server 30.
The predetermined condition may be a timing set by an application. Thereby, the terminal device 10 can transmit position information to the position information server 30 at a frequency requested by the application.
The predetermined condition may be a predetermined period transmitted from the application server 50 when the position information is transmitted directly to the application server 50 without going through the position information server 30. Thereby, the terminal device 10 can transmit position information to the application server 50 at a frequency requested by the application server 50.

また、予め特定されたアプリケーションに付属した位置情報取得制御部122は、位置情報とともに、ウェブ履歴情報、プログラム実行履歴情報、操作履歴情報、充電履歴情報、姿勢変化情報及び環境情報の全部又は一部を位置情報サーバ30に送信してもよい。
さらに、位置情報取得制御部122は、位置情報を記憶部18から読み出して通信部14により通信させる度に、位置情報の送信完了または送信不能を送信履歴として記憶してもよい。位置情報取得制御部122は、例えば自装置周辺の電波の影響により位置情報の送信ができない場合には、位置情報の送信を中止し、当該位置情報に対応付けて送信不能であるという送信履歴を記憶部18に記憶させる。位置情報取得制御部122は、送信タイミングにおいて送信履歴を参照し、前回の送信タイミング以降にGPS測位部16により取得された位置情報、および送信不能の位置情報を記憶部18から読み出し、通信部14により通信させる。これにより、位置情報取得制御部122は、位置情報の送信ができない状況が生じても、位置情報を漏れなく送信できる。
Further, the position information acquisition control unit 122 attached to the application specified in advance includes all or part of the web history information, program execution history information, operation history information, charging history information, posture change information, and environment information together with the position information. May be transmitted to the location information server 30.
Further, each time the position information is read from the storage unit 18 and communicated by the communication unit 14, the position information acquisition control unit 122 may store the completion of transmission of the position information or the transmission failure as the transmission history. For example, if the position information cannot be transmitted due to the influence of radio waves around the device itself, the position information acquisition control unit 122 stops transmitting the position information and displays a transmission history indicating that the position information cannot be transmitted in association with the position information. The data is stored in the storage unit 18. The position information acquisition control unit 122 refers to the transmission history at the transmission timing, reads out the position information acquired by the GPS positioning unit 16 after the previous transmission timing and the position information that cannot be transmitted from the storage unit 18, and communicates with the communication unit 14. To communicate. Thereby, the position information acquisition control unit 122 can transmit the position information without omission even when a situation where the position information cannot be transmitted occurs.

ここで、予め特定されたアプリケーションに付属した位置情報取得制御部122を、マスタ権限を有する位置情報取得制御部122(位置情報ライブラリ)、または、単にマスタとも称する。また、予め特定されたアプリケーション以外のアプリケーションに付属した位置情報取得制御部122を、マスタの権限を有しない位置情報取得制御部122(位置情報ライブラリ)、または、スレーブとも称する。   Here, the position information acquisition control unit 122 attached to the application specified in advance is also referred to as a position information acquisition control unit 122 (position information library) having master authority, or simply as a master. Further, the position information acquisition control unit 122 attached to an application other than the application specified in advance is also referred to as a position information acquisition control unit 122 (position information library) or a slave that does not have the authority of the master.

この位置情報ライブラリの状態には、動作不可状態と動作状態とがある。ここで、動作不可状態とは、位置情報ライブラリが機能していない状態である。この動作不可状態になる条件には、位置情報ライブラリが付属されるアプリケーションのアンインストール、ユーザの操作によるアプリケーションの動作停止、ユーザの操作による測位機能の停止などが含まれる。また、動作状態とは、上述したマスタまたはスレーブのいずれかとして位置情報ライブラリが機能している状態である。すなわち、この動作状態には、位置情報ライブラリが、マスタとして動作している状態と、スレーブとして動作している状態とが含まれる。動作可能状態になる条件には、位置情報ライブラリが付属されるアプリケーションのインストール、ユーザの操作によるアプリケーションの動作開始、ユーザの操作による測位機能の開始などが含まれる。ここで、位置情報ライブラリが、動作不可状態から動作可能状態に遷移する場合に、マスタとして動作する場合と、スレーブとして動作する場合とがある。以下では、一例として、アプリケーションがインストールされるなどして、位置情報ライブラリが新たに端末装置10に追加された場合に、この位置情報ライブラリが、先ずはスレーブとして動作する場合について説明する。   The position information library includes an inoperable state and an operational state. Here, the inoperable state is a state in which the position information library is not functioning. The conditions for the operation disabled state include uninstallation of an application to which the position information library is attached, application operation stop by user operation, positioning function stop by user operation, and the like. The operation state is a state in which the position information library functions as either the above-described master or slave. That is, this operation state includes a state in which the position information library is operating as a master and a state in which the position information library is operating as a slave. The conditions for enabling the operation include installation of an application to which the position information library is attached, application operation start by a user operation, positioning function start by a user operation, and the like. Here, when the position information library transitions from the inoperable state to the operable state, there are cases where the position information library operates as a master and operates as a slave. Hereinafter, as an example, when a location information library is newly added to the terminal device 10 due to an application being installed or the like, a case where this location information library first operates as a slave will be described.

スレーブとして動作する位置情報ライブラリ(以下、単にスレーブとも記載する。)は、GPS測位部16に対して起動要求を送信しない。スレーブが位置情報の取得を欲する場合には、GPS測位部16から直接的に位置情報を取得するのではなく、位置情報を取得しているマスタとして動作する位置情報ライブラリ(以下、単にマスタとも記載する。)を介して位置情報を取得する。ここで、マスタは、GPS測位部16から直接的に位置情報を取得する。また、マスタは、GPS測位部16から直接的に位置情報を取得したことを、スレーブに対して通知する。スレーブは、マスタから通知を受けた場合に、マスタに位置情報を要求して、位置情報を取得する。これにより、スレーブは、GPS測位部16から直接的に位置情報を取得することなく、位置情報を取得することができる。すなわち、スレーブは、GPS測位部16に対して起動要求をすることなく、位置情報を取得することができる。   A position information library that operates as a slave (hereinafter also simply referred to as a slave) does not transmit an activation request to the GPS positioning unit 16. When the slave wants to acquire position information, the position information library that operates as a master that acquires position information is not directly acquired from the GPS positioning unit 16 (hereinafter, also simply referred to as a master). To obtain position information via Here, the master acquires position information directly from the GPS positioning unit 16. In addition, the master notifies the slave that the position information has been acquired directly from the GPS positioning unit 16. When receiving the notification from the master, the slave requests the master for position information and acquires the position information. As a result, the slave can acquire the position information without directly acquiring the position information from the GPS positioning unit 16. That is, the slave can acquire the position information without making an activation request to the GPS positioning unit 16.

なお、端末装置10は、アプリケーションに対して位置情報の利用を禁止する操作を植え付けてもよい。換言すると、端末装置10は、位置情報ライブラリによる位置情報の取得を禁止するユーザの操作を受け付けてもよい。位置情報の取得が禁止された位置情報ライブラリは、マスタの権限を得ることがない。また、マスタは、位置情報の取得が禁止された位置情報ライブラリに対しては、GPS測位部16から位置情報を取得したことを通知しない。そして、マスタは、位置情報の取得が禁止された位置情報ライブラリから位置情報の要求があった場合にも、当該位置情報ライブラリに対しては位置情報を提供しない。   Note that the terminal device 10 may plant an operation for prohibiting the use of position information for an application. In other words, the terminal device 10 may accept a user operation that prohibits acquisition of position information from the position information library. A position information library for which acquisition of position information is prohibited does not obtain the authority of the master. In addition, the master does not notify the position information library from which position information is prohibited to be acquired from the GPS positioning unit 16. Then, even when there is a request for position information from a position information library for which acquisition of position information is prohibited, the master does not provide position information to the position information library.

次に、マスタとスレーブとの切替について説明する。何らかの要因により、マスタが動作できなくなると、すべての位置情報ライブラリが位置情報を取得することができなくなる。このため、何らかの要因によりマスタが動作できなくなった場合、あるスレーブをマスタにする、すなわち、マスタとスレーブとを切替えることにより、位置情報を取得する。ここで、マスタとスレーブとを切替するためには、切替が行われる条件を検出する制御が必要になる。また、スレーブが複数ある場合には、いずれのスレーブをマスタに切替するのか、すなわちスレーブの選択の制御が必要になる。以下、まずマスタとスレーブとの切替が行われる条件について説明し、次に、スレーブが複数ある場合の、マスタとなるべきスレーブの選択について説明する。   Next, switching between the master and the slave will be described. If the master cannot operate due to some cause, all the position information libraries cannot acquire the position information. For this reason, when a master becomes unable to operate for some reason, position information is acquired by making a certain slave a master, that is, by switching between the master and the slave. Here, in order to switch between the master and the slave, it is necessary to perform control for detecting a condition for switching. Further, when there are a plurality of slaves, it is necessary to control which slave is switched to the master, that is, the selection of the slave. Hereinafter, conditions for switching between the master and the slave will be described first, and then selection of the slave to be the master when there are a plurality of slaves will be described.

[マスタとスレーブとの切替が行われる条件]
処理部12による、位置情報ライブラリのマスタとスレーブとの切替が行われる条件について説明する。マスタとスレーブとの切替は、例えば、以下の3つの条件により発生する。
第1の切替条件は、ユーザからマスタの機能停止を指示する操作を受け付けることである。機能停止を指示する操作とは、例えば、位置情報ライブラリが付属するアプリケーション、すなわち位置情報ライブラリに対して行われる、アンインストール、実行の停止、実行に必要な情報の削除、位置情報の利用の不承諾などの操作をいう。つまり、第1の切替条件によりマスタとスレーブの切替が行われる場合、それまでにマスタとして機能していた位置情報ライブラリの機能の一部または全てが制限されるとともに、それまでスレーブとして機能していた位置情報ライブラリのいずれかが新たにマスタとして機能する。
[Conditions for switching between master and slave]
The conditions under which the processing unit 12 switches between the master and slave of the position information library will be described. Switching between the master and the slave occurs, for example, under the following three conditions.
The first switching condition is to accept an operation for instructing the master to stop functioning from the user. The operation for instructing to stop the function includes, for example, uninstallation, suspension of execution, deletion of information necessary for execution, and inability to use location information, which are performed on the application with the location information library, that is, the location information library. An operation such as consent. In other words, when the master and slave are switched according to the first switching condition, some or all of the functions of the location information library that have been functioning as a master until then are restricted, and functioning as a slave until then. One of the location information libraries newly functions as a master.

また、第2の切替条件は、現在のマスタよりもマスタとしての優先性が高い位置情報ライブラリが発生することである。現在のマスタよりもマスタとしての優先性が高い位置情報ライブラリは、例えば、端末装置10に新たな位置情報ライブラリがインストールされること、マスタ選択条件が変更されることなどにより発生する。
また、第3の切替条件は、位置情報サーバ30からマスタの変更を指示されることである。つまり、第2、第3の切替条件によりマスタとスレーブの切替が行われる場合、それまでマスタとして機能していた位置情報ライブラリはスレーブとして機能を始め、それまでスレーブとして機能していた位置情報ライブラリのいずれかが新たにマスタとして機能する。
The second switching condition is that a position information library having a higher priority as a master than the current master is generated. A location information library having a higher priority as a master than the current master is generated, for example, when a new location information library is installed in the terminal device 10 or a master selection condition is changed.
The third switching condition is that the position information server 30 is instructed to change the master. In other words, when the master and slave are switched according to the second and third switching conditions, the position information library that has functioned as a master until then starts functioning as a slave, and the position information library that has functioned as a slave until then. One of these newly functions as a master.

[マスタとなるべきスレーブの選択条件(マスタ選択条件)]
本実施形態において、マスタとスレーブとの切替は、位置情報サーバ30から取得されるライブラリ管理情報に基づいて行われる。ライブラリ管理情報は、ライブラリ属性情報と優先順位情報とを含む。ライブラリ属性情報は、端末装置10に含まれる位置情報ライブラリの属性を表す情報である。ライブラリ属性情報は、マスタ選択における位置情報ライブラリの優先順位の決定のために参照される情報である。つまり、ライブラリ属性情報は、マスタ選択における位置情報ライブラリの評価指標である。優先順位情報は、端末装置10に含まれる位置情報ライブラリ各々についてのマスタ選択における優先順位を表す情報である。
[Selection conditions for slaves to become masters (master selection conditions)]
In the present embodiment, switching between the master and the slave is performed based on library management information acquired from the location information server 30. Library management information includes library attribute information and priority information. The library attribute information is information representing the attribute of the position information library included in the terminal device 10. The library attribute information is information referred to for determining the priority order of the position information library in the master selection. That is, the library attribute information is an evaluation index of the position information library in the master selection. The priority order information is information representing the priority order in the master selection for each position information library included in the terminal device 10.

図3は、ライブラリ管理情報の一例を示す図である。
図3に示される例において、ライブラリ管理情報は、位置情報取得制御部識別情報(位置情報取得制御部ID)、インストール日時情報(インストール日時)、起動日時情報(起動日時)、バージョン情報(バージョン)、認証情報(認証)、起動要求頻度情報(起動要求頻度)、アプリ起動回数情報(アプリ起動回数)、アプリ種別情報(アプリ種別)、発行主体情報(発行主体)および優先順位情報(優先順位)を含み、これらが互いに対応付けられ構成される。これらの各種情報のうち、位置情報取得制御部識別情報、インストール日時情報、起動日時情報、バージョン情報、認証情報、起動要求頻度情報、アプリ起動回数情報、アプリ種別情報、および発行主体情報とは、ライブラリ属性情報の一例である。
FIG. 3 is a diagram illustrating an example of library management information.
In the example shown in FIG. 3, the library management information includes position information acquisition control unit identification information (position information acquisition control unit ID), installation date / time information (installation date / time), start date / time information (start date / time), and version information (version). , Authentication information (authentication), activation request frequency information (activation request frequency), application activation frequency information (application activation frequency), application type information (application type), issuer information (issuer) and priority information (priority) These are configured to correspond to each other. Among these various types of information, position information acquisition control unit identification information, installation date and time information, activation date and time information, version information, authentication information, activation request frequency information, application activation number information, application type information, and issuer information are: It is an example of library attribute information.

位置情報取得制御部識別情報は、端末装置10に含まれる複数の位置情報ライブラリを識別するための識別情報である。位置情報取得制御部識別情報は、例えば、位置情報ライブラリが付属するアプリケーションの識別情報である。図3に示される例では、位置情報取得制御部識別情報の値は、位置情報ライブラリが付属するアプリケーションの名称である。
インストール日時情報は、処理部12により処理情報ライブラリがインストールされた日時を表す情報である。インストールされた日時が古ければ古い程、位置情報ライブラリが付属するアプリケーションは、ユーザにより削除されずに長い期間利用されていると考えられる。従って、インストール日時情報は、ユーザによる位置情報ライブラリへの信頼度を表す情報である。
The position information acquisition control unit identification information is identification information for identifying a plurality of position information libraries included in the terminal device 10. The position information acquisition control unit identification information is, for example, identification information of an application to which a position information library is attached. In the example shown in FIG. 3, the value of the position information acquisition control unit identification information is the name of the application to which the position information library is attached.
The installation date / time information is information representing the date / time when the processing information library is installed by the processing unit 12. The older the installed date and time, the more the application with the location information library is considered to be used for a longer period without being deleted by the user. Therefore, the installation date / time information is information representing the reliability of the user to the location information library.

起動日時情報は、端末装置10において、処理部12により位置情報ライブラリについて、最後の実行が開始された日時を表す情報である。最後の実行が開始された日時が古ければ古い程、位置情報ライブラリが付属するアプリケーションは、ユーザによりその機能が停止されることなく長い期間利用されていると考えられる。従って、起動日時情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。
なお、起動日時情報は、端末装置10おいて、処理部12により位置情報ライブラリが初めて実行された日時を表す情報であってもよい。初めて実行された日時が古ければ古い程、位置情報ライブラリが付属するアプリケーションは、ユーザにより削除されずに長い期間利用されていると考えられる。従って、この場合も、起動日時情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。
The start date and time information is information representing the date and time when the terminal unit 10 last started execution of the position information library by the processing unit 12. The older the date and time when the last execution was started, the longer the application to which the position information library is attached has been used for a longer period of time without being stopped by the user. Therefore, the start date / time information is information indicating the reliability of the user with respect to the application to which the position information library is attached, that is, the reliability of the user with respect to the position information library.
The activation date / time information may be information representing the date / time when the position information library is first executed by the processing unit 12 in the terminal device 10. The older the date and time when it was first executed, the more the application with the location information library is considered to be used for a longer period without being deleted by the user. Accordingly, in this case as well, the activation date / time information is information indicating the reliability of the user with respect to the application to which the position information library is attached, that is, the reliability of the user with respect to the position information library.

バージョン情報は、位置情報ライブラリのバージョンを表す情報である。バージョン情報は、例えば、数値により表される。そして、バージョン情報は、その数値が高い程、新しいバージョンであることを表す。位置情報ライブラリのバージョンは、バグフィックスなどにより更新される。従って、バージョン情報は、位置情報ライブラリの性能を表す情報である。   The version information is information indicating the version of the position information library. The version information is represented by a numerical value, for example. The version information represents a newer version as the numerical value is higher. The version of the location information library is updated by bug fixes or the like. Therefore, the version information is information representing the performance of the position information library.

認証情報は、位置情報ライブラリが付属するアプリケーションに対して、認証サーバ40による認証が成功しているか否かを表す情報である。すなわち、認証情報は、認証サーバ40の管理者による位置情報ライブラリへの信頼度を表す情報である。認証情報は、例えば「TRUE」、「FALSE」、「NULL」の3つの値により表される。そして、「TRUE」、「FALSE」、「NULL」は、それぞれ、認証が成功したこと、認証が失敗したこと、認証処理が行われていないことを表す。   The authentication information is information indicating whether or not the authentication by the authentication server 40 is successful for the application with the location information library. That is, the authentication information is information representing the reliability of the location information library by the administrator of the authentication server 40. The authentication information is represented by, for example, three values “TRUE”, “FALSE”, and “NULL”. “TRUE”, “FALSE”, and “NULL” indicate that authentication has succeeded, authentication has failed, and authentication processing has not been performed, respectively.

起動要求頻度情報は、位置情報ライブラリがマスタの権限を有した時に、位置情報取得部160を起動する頻度を表す情報である。位置情報取得部160の起動頻度が高い程、位置情報の鮮度は向上するが、消費電力が増加して端末装置10の省電力性が損なわれる。これに対し、位置情報取得部160の起動頻度が低い程、消費電力が減少して端末装置10の省電力性が向上するが、位置情報の鮮度が損なわれる。つまり、起動要求頻度情報は、端末装置10の省電力性と位置情報の鮮度とを表す情報である。起動要求頻度情報の値は、例えば、位置情報ライブラリが付属するアプリケーションによる位置情報の要求頻度である。図3に示される例において、起動要求頻度情報は、位置情報ライブラリが位置情報取得部160に起動要求を行う時間間隔を表している。   The activation request frequency information is information representing the frequency with which the position information acquisition unit 160 is activated when the position information library has master authority. The higher the activation frequency of the position information acquisition unit 160, the better the freshness of the position information, but the power consumption increases and the power saving performance of the terminal device 10 is impaired. On the other hand, the lower the activation frequency of the position information acquisition unit 160, the lower the power consumption and the power saving performance of the terminal device 10, but the freshness of the position information is impaired. That is, the activation request frequency information is information representing the power saving performance of the terminal device 10 and the freshness of the position information. The value of the activation request frequency information is, for example, the frequency of requesting position information by an application attached with the position information library. In the example illustrated in FIG. 3, the activation request frequency information represents a time interval at which the position information library makes an activation request to the position information acquisition unit 160.

なお、ライブラリ管理情報として、上述の起動要求頻度情報以外に、位置情報取得部160の起動頻度を表す情報が含まれてもよい。例えば、ライブラリ管理情報は、位置情報ライブラリがマスタである場合に、位置情報取得部160に対して起動要求を出力する規則を定める起動規則情報であってもよい。具体的には、例えば、ライブラリ管理情報は、端末装置10において移動が検知された場合に、位置情報ライブラリが位置情報取得部160の起動要求を出力するか否かを表す起動規則情報を含んでもよい。また、例えば、ライブラリ属性情報は、端末装置10が所定の区域に存在する場合に、位置情報ライブラリが所定の時刻、所定の時間間隔などに応じて起動要求を出力することを定める起動規則情報であってもよい。   The library management information may include information indicating the activation frequency of the position information acquisition unit 160 in addition to the activation request frequency information described above. For example, the library management information may be activation rule information that defines a rule for outputting an activation request to the position information acquisition unit 160 when the position information library is a master. Specifically, for example, the library management information may include activation rule information indicating whether or not the position information library outputs an activation request for the position information acquisition unit 160 when movement is detected in the terminal device 10. Good. Further, for example, the library attribute information is activation rule information that determines that the location information library outputs an activation request according to a predetermined time, a predetermined time interval, etc., when the terminal device 10 exists in a predetermined area. There may be.

なお、起動頻度を表す情報は、各位置情報ライブラリについて、複数定められてもよい。具体的には、例えば、端末装置10が通常の動作を行う通常モードと、自装置の電力消費を抑制する省電力モードを有する場合、起動頻度を表す情報は、モードごとに定められてもよい。この場合、省電力モードにおいて、通常モードよりも低い起動頻度を定める。これにより、端末装置10は、省電力モードにおいて、GPS測位部16を起動する頻度を低減し、端末装置10の電力消費を抑制することができる。   A plurality of pieces of information representing the activation frequency may be determined for each position information library. Specifically, for example, when the terminal device 10 has a normal mode in which a normal operation is performed and a power saving mode in which the power consumption of the own device is suppressed, information indicating the activation frequency may be determined for each mode. . In this case, in the power saving mode, a lower activation frequency than that in the normal mode is determined. Thereby, the terminal device 10 can reduce the frequency which starts the GPS positioning part 16 in a power saving mode, and can suppress the power consumption of the terminal device 10. FIG.

アプリ種別情報は、位置情報ライブラリが付属するアプリケーションの種別を示す情報である。アプリケーションの種別には、例えば、常駐型、定期起動型、および手動起動型がある。常駐型のアプリケーションは、例えば、端末装置10の電源投入に応じて起動するアプリケーションである。定期起動型のアプリケーションは、所定日時の到来または所定期間の経過に応じて起動するアプリケーションである。手動起動型のアプリケーションは、ユーザによる起動操作に応じて起動するアプリケーションである。常駐型および定期起動型のアプリケーションは、ユーザの意図により実行されているとは限らない。これに対し、手動起動型のアプリケーションは、ユーザの意図により実行される。従って、アプリ種別情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。   The application type information is information indicating the type of application to which the position information library is attached. Application types include, for example, a resident type, a periodic activation type, and a manual activation type. The resident application is, for example, an application that is activated when the terminal device 10 is turned on. The periodic activation type application is an application that is activated when a predetermined date and time arrives or when a predetermined period elapses. The manually activated application is an application that is activated in response to an activation operation by the user. The resident type and periodic activation type applications are not always executed according to the user's intention. On the other hand, the manually activated application is executed according to the user's intention. Therefore, the application type information is information representing the user's reliability with respect to the application to which the position information library is attached, that is, the user's reliability with respect to the position information library.

また、アプリ種別情報は、位置情報ライブラリの可用性を表す情報でもある。この観点から、アプリケーションの種別について具体的に説明する。常駐型のアプリケーションは、その起動がユーザにより意識されにくいため、ユーザにより削除される可能性が低い。また、定期起動型のアプリケーションも、手動起動型のアプリケーションに比して、その起動がユーザにより意識されにくく、ユーザに削除される可能性が低い。これに対し、手動起動型のアプリケーションの起動は、ユーザにより意識的に行われる。そのため、手動起動型のアプリケーションは、インストールされてから間もない期間において、ユーザにより頻繁に起動されるが、時間が経過して使われなくなると直ぐに削除されてしまう傾向がある。このように、端末装置10において、位置情報ライブラリが安定的に存在しうるか否か、あるいは、位置情報ライブラリが安定的に利用可能か否かは、アプリケーションの種別により異なっている。つまり、アプリ種別情報は、位置情報ライブラリに対するユーザの信頼度と、位置情報ライブラリの可用性とを表す情報である。   The application type information is also information indicating the availability of the location information library. From this point of view, the types of applications will be specifically described. Since the activation of the resident application is not easily noticed by the user, the possibility of being deleted by the user is low. Also, the periodically activated application is less likely to be noticed by the user than the manually activated application, and is less likely to be deleted by the user. On the other hand, activation of a manually activated application is consciously performed by the user. For this reason, manually activated applications are frequently activated by the user in a short period of time after being installed, but tend to be deleted as soon as they are not used over time. As described above, whether or not the position information library can stably exist in the terminal device 10 or whether or not the position information library can be stably used differs depending on the type of application. That is, the application type information is information representing the reliability of the user with respect to the position information library and the availability of the position information library.

アプリ起動回数情報は、位置情報ライブラリが付属するアプリケーションが処理部12により起動された回数(頻度)を表す情報である。アプリ起動回数情報は、例えば、アプリケーションが初めて起動されてから、これまでに起動された回数を数値により表す。アプリケーションが起動された回数が多い程、そのアプリケーションは、ユーザにより頻用されていると考えられる。従って、アプリ起動回数情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。   The application activation number information is information indicating the number of times (frequency) that the application with the position information library is activated by the processing unit 12. The application activation number information represents, for example, the number of times the application has been activated since the application was activated for the first time as a numerical value. It is considered that the more frequently the application is activated, the more frequently the application is used by the user. Therefore, the application activation number information is information representing the reliability of the user with respect to the application to which the position information library is attached, that is, the reliability of the user with respect to the position information library.

なお、アプリ起動回数情報の数値は、他のライブラリ属性情報に応じて重み付けされてもよい。具体的には、例えば、ユーザによる信頼度が高い手動起動型のアプリケーションが起動された場合、アプリ起動回数情報が表す回数は、アプリケーションの起動回数に一定の割合を加算した、重み付けのされた回数で更新される。これに対して、ユーザによる信頼度が低い常駐型のアプリケーションが起動された場合、アプリ起動回数情報が表す回数は、アプリケーションの起動回数そのままの回数で更新されてもよい。このように各種ライブラリ管理情報は、他のライブラリ管理情報の値に応じて重み付けされてもよい。これにより、端末装置10は、マスタ選択における位置情報ライブラリの優先順位の決定において、複数の異なる評価指標を統合することができる。   Note that the numerical value of the application activation number information may be weighted according to other library attribute information. Specifically, for example, when a manually activated application with high reliability by the user is activated, the number represented by the application activation number information is a weighted number obtained by adding a certain percentage to the application activation number. It is updated with. On the other hand, when a resident application with low reliability by the user is activated, the number of times indicated by the application activation number information may be updated with the number of application activations as it is. Thus, various library management information may be weighted according to the value of other library management information. Thereby, the terminal device 10 can integrate a plurality of different evaluation indexes in determining the priority order of the position information library in the master selection.

発行主体情報は、位置情報ライブラリが付属するアプリケーションの発行主体(発行元)を表す情報である。発行主体が、例えば、端末装置10の製造元の関連企業、ユーザが端末装置10に関して通信契約を結んだ通信事業者などである場合、当該企業はユーザによる信頼性が高いと考えられる。そして、信頼性が高い発行主体から提供されるアプリケーションもまた、信頼性が高いと考えられる。従って、発行主体情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。   The issuer information is information representing the issuer (issuer) of the application to which the position information library is attached. If the issuing entity is, for example, an affiliated company of the manufacturer of the terminal device 10 or a telecommunications carrier in which the user has a communication contract regarding the terminal device 10, the company is considered highly reliable by the user. An application provided from a highly reliable issuer is also considered highly reliable. Accordingly, the issue subject information is information representing the user's reliability with respect to the application to which the position information library is attached, that is, the user's reliability with respect to the position information library.

優先順位情報は、位置情報ライブラリの複数のスレーブのうち、いずれのスレーブをマスタとして選択するのかという場合の、マスタ選択順位を表す情報である。すなわち、優先順位情報は、位置情報ライブラリのマスタとしての優先度(ふさわしさ)を表す情報である。図3に示される例において、優先順位情報の値は、数字または「NULL」で表される。優先順位情報の値が数字の場合、マスタに選択される優先順位が高い程、小さい値である。特に、優先順位情報の値が「1」の場合、この位置情報ライブラリはマスタである。これに対して、優先順位情報の値が「2」以上など「1」以外の数値の場合、この位置情報ライブラリはスレーブである。優先順位情報の値が「NULL」の場合、この位置情報ライブラリはマスタの候補ではないことを表す。具体的には、位置情報ライブラリが動作不可状態の場合、優先順位情報の値は「NULL」で表される。位置情報ライブラリが動作状態の場合、優先順位情報の値は数字で表される。また、例えば、端末装置10に新たに追加された位置情報ライブラリの優先順位情報には、複数の位置情報ライブラリにそれぞれ与えられている値のうち、最も大きな値が、先ずは割り当てられる。   The priority order information is information indicating a master selection order in the case where which slave is selected as a master among a plurality of slaves in the position information library. That is, the priority order information is information indicating the priority (appropriateness) as the master of the position information library. In the example shown in FIG. 3, the value of the priority order information is represented by a number or “NULL”. When the priority information value is a number, the higher the priority selected by the master, the smaller the value. In particular, when the value of the priority order information is “1”, this position information library is a master. On the other hand, when the value of the priority order information is a numerical value other than “1” such as “2” or more, this position information library is a slave. When the value of the priority order information is “NULL”, this indicates that the position information library is not a master candidate. Specifically, when the position information library is in an inoperable state, the value of the priority order information is represented by “NULL”. When the position information library is in an operating state, the value of the priority order information is represented by a number. Further, for example, the priority value information of the position information library newly added to the terminal device 10 is first assigned the largest value among the values given to the plurality of position information libraries.

図3に示される例において、第2段目に登録されているライブラリ管理情報は、位置情報取得制御部識別情報「アプリA」、インストール日情報「2014/7/10 20:03:40」、起動日時情報「2014/08/10 15:16:20」、バージョン情報「02」、認証情報「TRUE」、起動要求頻度情報「30 sec」、アプリ起動回数情報「50」、アプリ種別情報「常駐型」、発行主体情報「A社」、および優先順位情報「2」を対応付けている。すなわち、このライブラリ管理情報は、「アプリA」が、「2014年7月10日 20時03分40秒」にインストールされ、「2014年08月10日 15時16分20秒」に起動されたことを表す。また、このライブラリ管理情報は、「アプリA」に付属する位置情報ライブラリがマスタの権限を有した場合には、「30秒」間隔で、位置情報取得部160に起動要求を出力することを表す。また、このライブラリ管理情報は、「アプリA」に付属する位置情報ライブラリが、そのバージョンが「02」であり、認証サーバ40による認証に成功していることを表す。また、このライブラリ管理情報は、「アプリA」が、「A社」により提供される「常駐型」のアプリケーションであり、初めて起動されてからこれまでに「50」回起動されたことを表す。また、このライブラリ管理情報は、「アプリA」に付属する位置情報ライブラリの優先順位が「2」位であり、マスタの位置情報ライブラリがマスタの権限を有しなくなった場合に、「アプリA」に付属する位置情報ライブラリがマスタとして機能するスレーブであることを表す。   In the example shown in FIG. 3, the library management information registered in the second row includes location information acquisition control unit identification information “application A”, installation date information “2014/7/10 20:03:40”, Start date / time information “2014/08/10 15:16:20”, version information “02”, authentication information “TRUE”, start request frequency information “30 sec”, application start count information “50”, application type information “resident” “Type”, issue entity information “Company A”, and priority information “2” are associated with each other. That is, in this library management information, “App A” was installed on “July 10, 2014, 20:03:40” and started on “August 10, 2014, 15:16:20”. Represents that. Further, this library management information indicates that when the position information library attached to “application A” has the authority of the master, an activation request is output to the position information acquisition unit 160 at intervals of “30 seconds”. . This library management information indicates that the location information library attached to “application A” has a version “02” and has been successfully authenticated by the authentication server 40. This library management information indicates that “application A” is a “resident type” application provided by “Company A” and has been started “50” times since it was first started. Further, the library management information indicates that the position information library attached to “application A” has a priority “2”, and the “location information library” of the master does not have master authority. This means that the position information library attached to is a slave that functions as a master.

図3に示される例において、第3段目に登録されているライブラリ管理情報は、位置情報取得制御部識別情報「アプリB」、インストール日時情報「2014/6/12 21:33:03」、起動日時情報「2014/08/12 10:11:03」、バージョン情報「02」、認証情報「TRUE」、起動要求頻度情報「15 sec」、アプリ起動回数情報「100」、アプリ種別情報「手動起動型」、発行主体情報「B社」、および優先順位情報「1」を対応付けている。すなわち、このライブラリ管理情報は、「アプリB」が、「2014年6月12日 21時33分03秒」にインストールされ、「2014年08月12日 10時11分03秒」に起動されたことを表す。また、このライブラリ管理情報は、「アプリB」に付属する位置情報ライブラリがマスタの権限を有した場合には、「15秒」間隔で、位置情報取得部160に起動要求を出力することを表す。また、このライブラリ管理情報は、「アプリB」に付属する位置情報ライブラリが、そのバージョンが「02」であり、認証サーバ40による認証に成功していることを表す。また、このライブラリ管理情報は、「アプリB」が、「B社」により提供される「手動起動型」のアプリケーションであり、初めて起動されてからこれまでに「100」回起動されたことを表す。また、このライブラリ管理情報は、「アプリB」が示す位置情報ライブラリの優先順位が「1」位であり、現在マスタとして機能していることを表す。   In the example shown in FIG. 3, the library management information registered in the third row includes location information acquisition control unit identification information “application B”, installation date information “2014/6/12 21:33:03”, Startup date information “2014/08/12 10:11:03”, version information “02”, authentication information “TRUE”, startup request frequency information “15 sec”, application startup count information “100”, application type information “manual” “Activation type”, issue entity information “Company B”, and priority information “1” are associated with each other. That is, in this library management information, “App B” was installed at “June 12, 2014 21:33:03” and started at “2014/08/12 10:11:03”. Represents that. In addition, this library management information indicates that when the location information library attached to “application B” has the authority of the master, an activation request is output to the location information acquisition unit 160 at intervals of “15 seconds”. . Further, this library management information indicates that the location information library attached to “application B” has the version “02” and has been successfully authenticated by the authentication server 40. This library management information indicates that “application B” is a “manual activation type” application provided by “Company B” and has been activated “100” times since it was first activated. . Also, this library management information indicates that the position information library indicated by “application B” has a priority of “1” and currently functions as a master.

なお、ライブラリ属性情報は、上述した各種情報のうち、任意の情報を含まなくてもよい。また、ライブラリ管理情報は、上述した各種ライブラリ属性情報以外にも、マスタを選択するための任意の情報を含んでよい。具体的には、例えば、ライブラリ管理情報は、アプリケーションの実行がユーザの操作により禁止された回数を示す情報、アプリケーションの測位機能がユーザの操作により停止された回数を示す情報などを含んでもよい。ユーザによるアプリケーションの実行禁止の操作は、当該アプリケーションに対してユーザが悪感情を抱いた場合に行われることが考えられる。従って、これらの情報は、位置情報ライブラリが付属するアプリケーションに対するユーザの信頼度、つまり、位置情報ライブラリに対するユーザの信頼度を表す情報である。
なお、本実施形態において、ライブラリ管理情報は、位置情報サーバ30により管理されている。マスタは、例えば定期的に、位置情報サーバ30から送信されるライブラリ管理情報を取得する。マスタは、取得したライブラリ管理情報を記憶部18に記憶させる。
The library attribute information may not include arbitrary information among the various types of information described above. The library management information may include arbitrary information for selecting a master in addition to the various library attribute information described above. Specifically, for example, the library management information may include information indicating the number of times that execution of the application is prohibited by the user's operation, information indicating the number of times that the positioning function of the application has been stopped by the user's operation, and the like. It is conceivable that an operation for prohibiting execution of an application by the user is performed when the user has a bad feeling for the application. Therefore, these pieces of information are information representing the reliability of the user with respect to the application to which the position information library is attached, that is, the reliability of the user with respect to the position information library.
In the present embodiment, the library management information is managed by the location information server 30. For example, the master periodically acquires the library management information transmitted from the position information server 30. The master stores the acquired library management information in the storage unit 18.

なお、位置情報サーバ30がライブラリ管理情報を更新するための情報は、例えば、端末装置10から位置情報サーバ30に送信される。具体的には、例えば、端末装置10は、位置情報ライブラリを新規にインストールした場合、そのインストール日時を示すインストール日時情報を位置情報サーバ30に送信する。そして、位置情報サーバ30は、受信したインストール日時情報により、自装置が管理するライブラリ管理情報のインストール日時情報を更新する。また、例えば、端末装置10は、アプリケーションが起動された場合、その起動日時を示す起動日時情報を位置情報サーバ30に送信する。そして、位置情報サーバ30は、受信した起動日時情報により、自装置が管理するライブラリ管理情報の起動日時情報を更新するとともに、アプリ起動回数情報の値に「1」を加算して更新する。このように、端末装置10は、ライブラリ属性情報の更新が必要となるタイミングで、逐次その旨を位置情報サーバ30に通知してよい。また、端末装置10は、位置情報サーバ30へのライブラリ属性情報の前回の送信からの差分を記憶しておき、当該差分を位置情報サーバ30に送信してもよい。この場合、端末装置10は、位置情報とともに、ライブラリ属性情報を位置情報サーバ30に送信してもよい。
また、位置情報サーバ30は、例えば、端末装置10から送信されたアプリケーションの認証要求に対する認証結果を認証サーバ40から取得し、認証情報を更新する。
Information for the location information server 30 to update the library management information is transmitted from the terminal device 10 to the location information server 30, for example. Specifically, for example, when the location information library is newly installed, the terminal device 10 transmits installation date information indicating the installation date to the location information server 30. Then, the location information server 30 updates the installation date / time information of the library management information managed by the own device with the received installation date / time information. For example, when the application is activated, the terminal device 10 transmits activation date / time information indicating the activation date / time to the position information server 30. Then, the location information server 30 updates the startup date / time information of the library management information managed by the own device with the received startup date / time information, and updates the value of the application startup count information by adding “1”. As described above, the terminal device 10 may sequentially notify the position information server 30 at the timing when the library attribute information needs to be updated. The terminal device 10 may store a difference from the previous transmission of the library attribute information to the position information server 30 and transmit the difference to the position information server 30. In this case, the terminal device 10 may transmit the library attribute information to the position information server 30 together with the position information.
Further, the location information server 30 acquires, for example, an authentication result for the application authentication request transmitted from the terminal device 10 from the authentication server 40 and updates the authentication information.

また、位置情報サーバ30は、ライブラリ属性情報のうち、アプリケーションの属性情報を他の装置から取得してもよい。位置情報サーバ30は、例えば、バージョン情報、起動要求頻度情報、アプリ種別情報、発行主体情報などのアプリケーションの属性情報を、アプリケーションの属性情報の管理装置などから取得する。当該管理装置は、例えば、これらのアプリケーションの属性情報をアプリケーションの識別情報と対応付けて管理し、位置情報サーバ30から送信されるアプリケーションの識別情報(位置情報取得制御部識別情報)に応じてライブラリ属性情報を送信する。   Further, the location information server 30 may acquire the attribute information of the application from other devices among the library attribute information. The location information server 30 acquires application attribute information such as version information, activation request frequency information, application type information, and issuer information from an application attribute information management device, for example. The management apparatus manages, for example, the attribute information of these applications in association with the application identification information, and the library according to the application identification information (position information acquisition control unit identification information) transmitted from the position information server 30 Send attribute information.

次に、マスタ選択条件について説明する。マスタ選択条件は、複数の位置情報ライブラリからマスタを選択するための条件を定める。マスタ選択条件は、目的に応じて任意に定められてよい。具体的には、マスタ選択条件は、例えば、位置情報ライブラリに対するユーザの信頼度、位置情報ライブラリに対する位置情報サーバ30の管理者の信頼度、端末装置10の省電力性、位置情報の鮮度などを担保する目的に応じて定められる。   Next, master selection conditions will be described. The master selection condition defines a condition for selecting a master from a plurality of position information libraries. The master selection condition may be arbitrarily determined according to the purpose. Specifically, the master selection condition includes, for example, the reliability of the user with respect to the location information library, the reliability of the administrator of the location information server 30 with respect to the location information library, the power saving property of the terminal device 10, the freshness of the location information, and the like. It is determined according to the purpose to be secured.

例えば、位置情報ライブラリに対するユーザの信頼度を担保することを目的とする場合、インストール日時情報が表す日時が古いこと、起動日時情報が表す日時が古いこと、アプリ起動回数情報が示すアプリケーションの起動回数が多いこと、発行主体情報が信頼性の高い特定の発行主体を表していること、アプリケーションの実行が禁止された回数が少ないこと、アプリケーションの測位機能が停止された回数が少ないこと、およびこれらの組み合わせなどをマスタ選択条件とする。   For example, when it is intended to ensure the reliability of the user with respect to the position information library, the date and time indicated by the installation date and time information is old, the date and time indicated by the start date and time information is old, and the number of application activations indicated by the application activation number information , The issuer information represents a specific issuer with high reliability, the number of times the application execution is prohibited, the number of times the application positioning function is stopped, and A combination or the like is used as a master selection condition.

また、例えば、位置情報ライブラリに対する認証サーバ40の管理者の信頼度を担保することを目的とする場合、認証情報が認証の成功を表していることなどをマスタ選択条件とする。
また、例えば、位置情報ライブラリの性能を担保することを目的とする場合、バージョン情報が表す位置情報ライブラリのバージョンが新しいことなどをマスタ選択条件とする。
Further, for example, when the purpose is to ensure the reliability of the administrator of the authentication server 40 with respect to the position information library, the master selection condition is that the authentication information represents a successful authentication.
For example, when the purpose is to guarantee the performance of the position information library, the master selection condition is that the position information library version indicated by the version information is new.

また、例えば、端末装置10の省電力性を担保することを目的とする場合、起動要求頻度情報が表す位置情報取得部160に対する位置情報ライブラリからの起動要求の出力頻度が低いこと、位置情報取得部160への起動要求を位置情報ライブラリが出力可能にするための規則が少ないこと、位置情報ライブラリが付属するアプリケーションの消費電力が低いこと、バージョン情報が表す位置情報ライブラリのバージョンが新しいこと、およびこれらの組み合わせなどをマスタ選択条件とする。アプリケーションの消費電力が低いとは、例えば、アプリケーションの測位の要求頻度が低いこと、アプリケーションが外部装置に要求する情報量が少ないこと、アプリケーションが端末装置10のCPUに要求する処理量が少ないことなどである。   Further, for example, when the purpose is to ensure the power saving performance of the terminal device 10, the output frequency of the activation request from the position information library to the position information acquisition unit 160 represented by the activation request frequency information is low, and the position information acquisition There are few rules for enabling the location information library to output the activation request to the unit 160, the power consumption of the application to which the location information library is attached, the version of the location information library represented by the version information, and These combinations are used as master selection conditions. The low power consumption of the application means, for example, that the request frequency of the positioning of the application is low, the amount of information that the application requests from the external device is small, the processing amount that the application requests from the CPU of the terminal device 10 is small, etc. It is.

また、例えば、位置情報の鮮度を担保することを目的とする場合、起動要求頻度情報が表す位置情報取得部160に対する位置情報ライブラリからの起動要求の出力頻度が高いこと、位置情報取得部160への起動要求を位置情報ライブラリが出力可能にするための規則が多いこと、およびこれらの組み合わせなどをマスタ選択条件とする。
これら異なる目的に応じて定められるマスタ選択条件は、それぞれに優先順位を付し、互いに組み合わされてもよい。
In addition, for example, when it is intended to ensure the freshness of the position information, the output frequency of the activation request from the position information library to the position information acquisition unit 160 represented by the activation request frequency information is high, and the position information acquisition unit 160 The master selection condition is that there are many rules for enabling the position information library to output the activation request, and combinations thereof.
The master selection conditions determined according to these different purposes may be combined with each other by giving priority to each.

[マスタとスレーブとの切替手順]
次に、処理部12によるマスタとスレーブとの切替手順について説明する。以下では、マスタとスレーブの切替処理の前におけるマスタを「現マスタ」と称する。また、マスタとスレーブの切替処理の後におけるマスタを「次期マスタ」と称する。
マスタとスレーブとの切替処理において、先ず、現マスタは、第1の切替条件、第2の切替条件、または第3の切替条件が満たされたか否かを判定する。具体的には、例えば、現マスタは、自位置情報ライブラリまたは自位置情報ライブラリが付属するアプリケーションに対するアンインストール、実行の停止、実行に必要な情報の削除、位置情報の利用の不承諾などの操作を端末装置10が受け付けた場合に、第1の切替条件が満たされたと判定する。
[Switching procedure between master and slave]
Next, a switching procedure between the master and the slave by the processing unit 12 will be described. Hereinafter, the master before the master / slave switching process is referred to as a “current master”. The master after the master / slave switching process is referred to as a “next master”.
In the switching process between the master and the slave, first, the current master determines whether the first switching condition, the second switching condition, or the third switching condition is satisfied. Specifically, for example, the current master performs operations such as uninstalling its own location information library or an application attached with its own location information library, stopping execution, deleting information necessary for execution, and disapproving the use of location information. Is received by the terminal device 10, it is determined that the first switching condition is satisfied.

また、例えば、現マスタは、端末装置10に新たな位置情報ライブラリがインストールされた場合やマスタ選択条件の変更が行われた場合などに、記憶部18に記憶されているライブラリ管理情報を参照し、自位置情報ライブラリに比してマスタ選択条件を好適に満たすスレーブが存在するか否かを判定する。自位置情報ライブラリに比してマスタ選択条件を好適に満たすスレーブが存在する場合、現マスタは、第2の切替条件が満たされたと判定する。また、例えば、現マスタは、端末装置10が位置情報サーバ30からスレーブの位置情報ライブラリのいずれかをマスタとして指定する通知を受信した場合、第3の切替条件が満たされたと判定する。   For example, the current master refers to the library management information stored in the storage unit 18 when a new location information library is installed in the terminal device 10 or when a master selection condition is changed. Then, it is determined whether or not there is a slave that preferably satisfies the master selection condition as compared with the self-location information library. If there is a slave that preferably satisfies the master selection condition as compared with the self-location information library, the current master determines that the second switching condition is satisfied. Further, for example, when the terminal device 10 receives from the location information server 30 a notification that designates one of the slave location information libraries as the master, the current master determines that the third switching condition is satisfied.

第1の切替条件、第2の切替条件、または第3の切替条件が満たされた場合、現マスタは、記憶部18に記憶されているライブラリ属性情報とマスタ選択条件とを参照し、各位置情報ライブラリの優先順位を決定する。次に、現マスタは、決定した優先順位を示す優先順位情報を位置情報サーバ30に通信部14を介して送信する。つまり、現マスタは、位置情報サーバ30に次期マスタを通知する。次に、現マスタは、次期マスタの位置情報ライブラリに、当該位置情報ライブラリが次期マスタとして選択されたことを通知する。そして、次期マスタは、端末装置10に含まれる各スレーブに、自位置情報ライブラリがマスタであることを通知する。   When the first switching condition, the second switching condition, or the third switching condition is satisfied, the current master refers to the library attribute information and the master selection condition stored in the storage unit 18, and each position Determine the priority of the information library. Next, the current master transmits priority order information indicating the determined priority order to the position information server 30 via the communication unit 14. That is, the current master notifies the position information server 30 of the next master. Next, the current master notifies the position information library of the next master that the position information library has been selected as the next master. Then, the next master notifies each slave included in the terminal device 10 that the own location information library is the master.

これにより、通知を受けた位置情報ライブラリは、自位置情報ライブラリがマスタであるかスレーブであるかを判定するとともに次期マスタを識別する。なお、次期マスタは、各スレーブに対してマスタの変更があった旨を通知してもよい。この場合、通知を受けた各スレーブは、優先順位情報を参照して、自位置情報ライブラリがマスタであるかスレーブであるかを判定するとともに、次期マスタを識別する。これにより、マスタが機能しなくなった場合にも、端末装置10は、新たなマスタを、スレーブの中から選択することができる。そして、端末装置10は、位置情報を継続して取得することができる。   Thus, the location information library that has received the notification determines whether the location information library is a master or a slave and identifies the next master. The next master may notify each slave that the master has been changed. In this case, each of the slaves that received the notification refers to the priority order information, determines whether the own position information library is a master or a slave, and identifies the next master. Thereby, even when the master ceases to function, the terminal device 10 can select a new master from among the slaves. And the terminal device 10 can acquire position information continuously.

なお、スレーブが上述した第1〜第3の切替条件が満たされたか否かを判定してもよい。この場合、各スレーブは、例えば、記憶部18に記憶されている優先順位情報を定期的に参照する。そして、例えば、自位置情報ライブラリの優先順位が「2」位の場合、当該位置情報ライブラリは第1の切替条件が満たされたか否かを判定する。このように、特定のスレーブ(監視スレーブ)が切替条件が満たされたか否かの判定を行ってもよい。また、この場合、第1の条件が満たされたか否かの判定を、上述の方法とは別の方法で行ってもよい。具体的には、例えば、監視スレーブが現マスタに応答を要求する。この応答要求は、マスタが機能しているか否かを確認する目的で行われる。つまり、監視スレーブは、マスタから応答があれば、マスタは機能しており、第1の条件は満たされていないと判定する。これに対し、監視スレーブは、マスタから応答がなければマスタは機能しておらず、第1の条件が満たされていると判定する。そして、マスタとスレーブとの切替処理において現マスタが行う処理を、監視スレーブが実行する。これにより端末装置10は、プログラムエラーなど、何らかの理由によりマスタがマスタの変更を通知できずに機能を停止した場合であっても、新たなマスタを、スレーブの中から選択することができる。   Note that the slave may determine whether the first to third switching conditions described above are satisfied. In this case, for example, each slave periodically refers to the priority order information stored in the storage unit 18. For example, when the priority order of the own position information library is “2”, the position information library determines whether or not the first switching condition is satisfied. In this way, it may be determined whether or not a specific slave (monitoring slave) satisfies the switching condition. In this case, the determination as to whether or not the first condition is satisfied may be performed by a method different from the method described above. Specifically, for example, the monitoring slave requests a response from the current master. This response request is made for the purpose of confirming whether or not the master is functioning. That is, if there is a response from the master, the monitoring slave determines that the master is functioning and the first condition is not satisfied. On the other hand, if there is no response from the master, the monitoring slave determines that the master is not functioning and the first condition is satisfied. Then, the monitoring slave executes the process performed by the current master in the switching process between the master and the slave. As a result, the terminal device 10 can select a new master from among the slaves even when the master stops functioning for some reason, such as a program error, and the master stops.

図4に端末装置10の他の構成例を示す。端末装置10は、図2に示した構成に限らず、図4に示すように構成されていてもよい。図4の端末装置10は、複数のアプリケーション処理部120A、120B、120Cに対して1つの位置情報取得制御部122を有している。位置情報取得制御部122は、複数のアプリケーションに対応した1つの位置情報ライブラリとして実装される。   FIG. 4 shows another configuration example of the terminal device 10. The terminal device 10 is not limited to the configuration shown in FIG. 2, but may be configured as shown in FIG. The terminal device 10 of FIG. 4 has one position information acquisition control unit 122 for a plurality of application processing units 120A, 120B, and 120C. The position information acquisition control unit 122 is implemented as one position information library corresponding to a plurality of applications.

図5に端末装置10のさらに他の構成例を示す。この端末装置10において、位置情報取得部160は、上述したGPS測位部16に加えて、加速度センサ161を含んでいる。加速度センサ161は、自装置である端末装置10に加わる加速度の変化に応じて物理量が変化する。この加速度センサ161は、半導体静電容量センサであってもよい。
なお、端末装置10は、自装置の挙動を検出するため、重力センサ、ジャイロセンサ、または地磁気センサを含んでいてもよい。本実施形態においては、加速度センサ161のみを備えることを説明するが、これらの重力センサ、ジャイロセンサ、または地磁気センサは、加速度センサ161とともに、または、加速度センサ161に代えて備えていてもよい。
FIG. 5 shows still another configuration example of the terminal device 10. In the terminal device 10, the position information acquisition unit 160 includes an acceleration sensor 161 in addition to the GPS positioning unit 16 described above. The acceleration sensor 161 changes its physical quantity in accordance with a change in acceleration applied to the terminal device 10 that is its own device. The acceleration sensor 161 may be a semiconductor capacitance sensor.
The terminal device 10 may include a gravity sensor, a gyro sensor, or a geomagnetic sensor in order to detect the behavior of the device itself. In the present embodiment, it is described that only the acceleration sensor 161 is provided, but these gravity sensor, gyro sensor, or geomagnetic sensor may be provided together with the acceleration sensor 161 or instead of the acceleration sensor 161.

加速度センサ161により検出された加速度は、端末装置10の挙動に相当する。位置情報取得部160は、加速度センサ161により検出された挙動に基づいて自装置の移動を検出する。位置情報取得部160は、自装置の移動を検出したことに応じて移動量を更新する。この移動量は、実際の端末装置10の移動量とは異なり、端末装置10の挙動から推定される移動量である。この移動量は位置情報取得部160から処理部12に出力される。これにより、処理部12は、移動量に応じて変化する自装置の位置情報を記憶部18に蓄積することができる。   The acceleration detected by the acceleration sensor 161 corresponds to the behavior of the terminal device 10. The position information acquisition unit 160 detects the movement of the own device based on the behavior detected by the acceleration sensor 161. The position information acquisition unit 160 updates the movement amount in response to detecting the movement of the own device. Unlike the actual movement amount of the terminal device 10, this movement amount is a movement amount estimated from the behavior of the terminal device 10. This movement amount is output from the position information acquisition unit 160 to the processing unit 12. Thereby, the processing unit 12 can accumulate in the storage unit 18 the position information of the own device that changes according to the movement amount.

なお、位置情報取得部160は、加速度センサ161における物理量の変化に基づいて自装置が移動したことを検知してもよい。位置情報取得部160は、自装置が移動したことを検知したことに応じて、位置情報取得制御部122により測位タイミングを判定させることができる。例えば、位置情報取得制御部122は、自装置が移動状態である場合に、測位タイミングであることを判定することができる。また、位置情報取得制御部122は、単位時間当たりの移動距離または所定位置からの移動距離が所定距離(例えば100メートル)を超えている場合には、測位タイミングであることを判定することができる。   Note that the position information acquisition unit 160 may detect that the device itself has moved based on a change in physical quantity in the acceleration sensor 161. The position information acquisition unit 160 can cause the position information acquisition control unit 122 to determine the positioning timing in response to detecting that the own apparatus has moved. For example, the position information acquisition control unit 122 can determine that it is the positioning timing when the own apparatus is in a moving state. Further, the position information acquisition control unit 122 can determine that it is the positioning timing when the movement distance per unit time or the movement distance from the predetermined position exceeds a predetermined distance (for example, 100 meters). .

さらに位置情報取得制御部122は、通信部14が通信可能な通信エリアの識別子に基づいて測位タイミングを判定してもよい。この通信エリアの識別子としては、基地局のセルIDまたはWi−FiネットワークにおけるアクセスポイントIDが挙げられる。位置情報取得制御部122は、通信部14により検出された通信エリアの識別子が変更したことを判定したタイミングを、測位タイミングであると判定できる。   Further, the position information acquisition control unit 122 may determine the positioning timing based on an identifier of a communication area in which the communication unit 14 can communicate. Examples of the identifier of the communication area include a cell ID of a base station or an access point ID in a Wi-Fi network. The position information acquisition control unit 122 can determine that the timing at which it is determined that the identifier of the communication area detected by the communication unit 14 has changed is the positioning timing.

次に、端末装置10の動作を説明する。
図6は、端末装置10において、マスタによって位置情報を取得させ、取得された位置情報を位置情報サーバ30に送信する処理手順を示すフローチャートである。
Next, the operation of the terminal device 10 will be described.
FIG. 6 is a flowchart showing a processing procedure in the terminal device 10 for acquiring position information by the master and transmitting the acquired position information to the position information server 30.

先ずステップS100において、マスタは、測位タイミングとなったか否かを判定する。測位タイミングは、自装置の位置情報を取得するタイミングである。測位タイミングは、予め自装置内に設定された時間間隔である。なお、測位タイミングは、位置情報サーバ30により指定された時間間隔であってもよい。   First, in step S100, the master determines whether or not the positioning timing has come. The positioning timing is a timing for acquiring the position information of the own device. The positioning timing is a time interval set in advance in the own apparatus. The positioning timing may be a time interval specified by the position information server 30.

次のステップS102において、マスタは、GPS測位部16に起動要求を出力する。これによりGPS測位部16は、GPS信号を受信して三角測量演算を行って自装置の位置を特定する。GPS測位部16は、特定した位置を位置情報として取得する。マスタには、GPS測位部16により取得された位置情報が供給される。マスタは、供給された位置情報を測位時刻と共に記憶部18に蓄積する。   In the next step S <b> 102, the master outputs an activation request to the GPS positioning unit 16. Thereby, the GPS positioning part 16 receives a GPS signal, performs a triangulation calculation, and pinpoints the position of an own apparatus. The GPS positioning unit 16 acquires the specified position as position information. The position information acquired by the GPS positioning unit 16 is supplied to the master. The master accumulates the supplied position information in the storage unit 18 together with the positioning time.

次のステップS104において、マスタは、ステップS102にて位置情報を取得したことをスレーブに通知する。   In the next step S104, the master notifies the slave that the position information has been acquired in step S102.

次のステップS106において、マスタは、スレーブから位置情報の取得要求を受信したか否かを判定する。位置情報の取得要求を受信した場合(ステップS106:YES)、マスタは、位置情報の取得要求を送信したスレーブに、ステップS102にて蓄積した位置情報を出力する(ステップS108)。マスタは、位置情報の取得要求を出力した全てのスレーブに位置情報を出力する。なお、ステップS104の通知後、スレーブから位置情報の取得要求がなくなって所定時間が経過した場合には、タイムアウトしてステップS110に処理を進めてもよい。   In the next step S106, the master determines whether or not a position information acquisition request has been received from the slave. When the position information acquisition request is received (step S106: YES), the master outputs the position information accumulated in step S102 to the slave that has transmitted the position information acquisition request (step S108). The master outputs position information to all the slaves that output the position information acquisition request. Note that, after the notification in step S104, if there is no position information acquisition request from the slave and a predetermined time has elapsed, the process may be timed out and the process may proceed to step S110.

ステップS110において、マスタは、位置情報サーバ30への位置情報の送信タイミングであるか否かを判定する。位置情報の送信タイミングは、前回の送信タイミングから所定時間を経過した時である。所定時間は、予め自装置内で決定された時間である。なお、所定時間は、位置情報サーバ30により要求された時間間隔であってもよい。
位置情報の送信タイミングとなった場合(ステップS110:YES)、マスタは、位置情報サーバ30に未送信の位置情報を記憶部18から読み出して、位置情報サーバ30に送信させる(ステップS112)。送信タイミングではない場合(ステップS110:NO)、マスタは、処理をステップS100に戻す。
In step S <b> 110, the master determines whether it is the transmission timing of the position information to the position information server 30. The transmission timing of the position information is when a predetermined time has elapsed from the previous transmission timing. The predetermined time is a time determined in advance in the own apparatus. The predetermined time may be a time interval requested by the location information server 30.
When the transmission timing of the position information is reached (step S110: YES), the master reads position information that has not been transmitted to the position information server 30 from the storage unit 18 and transmits it to the position information server 30 (step S112). If it is not the transmission timing (step S110: NO), the master returns the process to step S100.

図7は、端末装置10において、マスタとスレーブとの切替処理の流れの一例を示すシーケンスチャートである。
図7では、一例として、端末装置10が3つの位置情報ライブラリ「アプリA」、「アプリB」、「アプリC」を含む場合を示している。また、図7に示される例において、「アプリA」が現マスタであり、「アプリB」が次期マスタであり、「アプリC」がスレーブである。
先ず図7のステップS200において、「アプリA」は、マスタとして機能している。
次のステップS202において、「アプリA」は、第1の切替条件、第2の切替条件、または第3の切替条件が満たされたか否かを判定する。第1〜第3の切替条件のうちのいずれの切替条件も満たされていない場合(ステップS202;NO)、「アプリA」は、マスタとして機能し続ける(ステップS200)。また、第1〜第3の切替条件のうち、少なくともいずれかの切替条件が満たされた場合(ステップS202;YES)、「アプリA」は、記憶部18に記憶されているライブラリ属性情報とマスタ選択条件とを参照し、次期マスタを決定する(ステップS204)。
FIG. 7 is a sequence chart illustrating an example of a flow of switching processing between the master and the slave in the terminal device 10.
FIG. 7 shows a case where the terminal device 10 includes three position information libraries “application A”, “application B”, and “application C” as an example. In the example shown in FIG. 7, “application A” is the current master, “application B” is the next master, and “application C” is the slave.
First, in step S200 of FIG. 7, “application A” functions as a master.
In the next step S202, “App A” determines whether or not the first switching condition, the second switching condition, or the third switching condition is satisfied. If none of the first to third switching conditions is satisfied (step S202; NO), “application A” continues to function as a master (step S200). If at least one of the first to third switching conditions is satisfied (step S202; YES), the “app A” stores the library attribute information stored in the storage unit 18 and the master. The next master is determined with reference to the selection conditions (step S204).

次のステップS206において、「アプリA」は、「アプリB」に「アプリB」が次期マスタであることを通知する。
次のステップS208において、「アプリB」は、マスタとして機能を始める。
次のステップS210において、「アプリB」は、自位置情報ライブラリがマスタであることをスレーブの「アプリA」および「アプリC」に通知する。
なお、「アプリA」は、「アプリB」がマスタの権限を有したことを認識しているため、「アプリB」は、「アプリA」に対するステップS210の処理を省略してもよい。
次のステップS212において、「アプリA」および「アプリC」は、「アプリB」がマスタであることを識別し、「アプリB」のスレーブとして機能し始める。
In the next step S206, “App A” notifies “App B” that “App B” is the next master.
In the next step S208, “APPLICATION B” starts functioning as a master.
In the next step S210, “application B” notifies slaves “application A” and “application C” that the self-location information library is the master.
Since “application A” recognizes that “application B” has master authority, “application B” may omit the process of step S210 on “application A”.
In the next step S212, “APPLICATION A” and “APPLICATION C” identify that “APPLICATION B” is the master and start to function as slaves of “APPLICATION B”.

なお、上述した実施形態において、ライブラリ管理情報は、位置情報サーバ30により管理されているものとして説明したが、これには限られない。ライブラリ管理情報の全てまたはその一部は、端末装置10などの位置情報サーバ30以外の装置により管理されてもよい。
また、上述した実施形態において、マスタ選択情報は、端末装置10の記憶部18に記憶されているものとして説明したが、これには限られない。マスタ選択情報は、例えば、位置情報サーバ30などの端末装置10以外の装置に記憶されていてもよい。そして、位置情報サーバ30は、端末装置10にマスタ選択条件を送信し、端末装置10は、位置情報サーバ30から受信したマスタ選択条件に基づいてマスタを決定してもよい。
In the above-described embodiment, the library management information is described as being managed by the location information server 30, but the present invention is not limited to this. All or part of the library management information may be managed by a device other than the location information server 30 such as the terminal device 10.
Moreover, in embodiment mentioned above, although master selection information demonstrated as what was memorize | stored in the memory | storage part 18 of the terminal device 10, it is not restricted to this. Master selection information may be memorized by devices other than terminal unit 10, such as position information server 30, for example. Then, the location information server 30 may transmit a master selection condition to the terminal device 10, and the terminal device 10 may determine a master based on the master selection condition received from the location information server 30.

また、上述した実施形態において、マスタの決定処理は、端末装置10が行う者として説明したが、これには限られない。例えば、位置情報サーバ30は、自装置または自装置以外の装置に記憶されているマスタ選択条件およびライブラリ属性情報を参照して、優先順位情報を生成する。次に、位置情報サーバ30は、生成した優先順位情報を端末装置10に送信する。そして、端末装置10に含まれる各位置情報ライブラリは、位置情報サーバ30から受信した優先順位情報に基づいて、それぞれマスタまたはスレーブとして機能する。   Moreover, in embodiment mentioned above, although the determination process of the master demonstrated as the person who the terminal device 10 performs, it is not restricted to this. For example, the location information server 30 refers to a master selection condition and library attribute information stored in the device itself or a device other than the device itself, and generates priority information. Next, the location information server 30 transmits the generated priority order information to the terminal device 10. Each location information library included in the terminal device 10 functions as a master or a slave based on the priority information received from the location information server 30.

以上、本発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。
本発明は、例えば、端末装置、位置取得方法、および位置情報取得制御用プログラムなどとして実施することができる。
As mentioned above, although embodiment of this invention was explained in full detail with reference to drawings, the specific structure is not restricted to this embodiment, The design change etc. of the range which does not deviate from the summary of this invention are included.
The present invention can be implemented as, for example, a terminal device, a position acquisition method, and a position information acquisition control program.

また、上述した端末装置10の機能を実現するためのコンピュータプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行するようにしてもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものであってもよい。
また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、フラッシュメモリ等の書き込み可能な不揮発性メモリ、DVD(Digital Versatile Disk)等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。
Further, a computer program for realizing the functions of the terminal device 10 described above may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read into a computer system and executed. . Here, the “computer system” may include an OS and hardware such as peripheral devices.
“Computer-readable recording medium” refers to a flexible disk, a magneto-optical disk, a ROM, a writable nonvolatile memory such as a flash memory, a portable medium such as a DVD (Digital Versatile Disk), and a built-in computer system. A storage device such as a hard disk.

さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリ(例えばDRAM(Dynamic Random Access Memory))のように、一定時間プログラムを保持しているものも含むものとする。
また、上記プログラムは、このプログラムを記憶装置等に格納したコンピュータシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピュータシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように情報を伝送する機能を有する媒体のことをいう。
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。
さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。
Further, the “computer-readable recording medium” means a volatile memory (for example, DRAM (Dynamic DRAM) in a computer system that becomes a server or a client when a program is transmitted through a network such as the Internet or a communication line such as a telephone line. Random Access Memory)), etc., which hold programs for a certain period of time.
The program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the “transmission medium” for transmitting the program refers to a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line.
The program may be for realizing a part of the functions described above.
Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.

1…位置提供システム、10、10A、10B、・・・、10N…端末装置、12…処理部、14…通信部、16…GPS測位部、160…位置情報取得部、161…加速度センサ、18…記憶部、30…位置情報サーバ、40…認証サーバ、42…POIサーバ、50、50A、50B、・・・、50N…アプリケーションサーバ、120、120A、120B、120C…アプリケーション処理部、122、122A、122B、122C…位置情報取得制御部 DESCRIPTION OF SYMBOLS 1 ... Position provision system 10, 10A, 10B, ..., 10N ... Terminal device, 12 ... Processing part, 14 ... Communication part, 16 ... GPS positioning part, 160 ... Position information acquisition part, 161 ... Acceleration sensor, 18 ... storage unit, 30 ... location information server, 40 ... authentication server, 42 ... POI server, 50, 50A, 50B, ..., 50N ... application server, 120, 120A, 120B, 120C ... application processing unit, 122, 122A , 122B, 122C ... position information acquisition control unit

Claims (8)

起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、
複数のアプリケーションに対応したライブラリと、
を含み、
複数の前記ライブラリは、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定する、
ことを特徴とする端末装置。
A position information acquisition unit that acquires position information by starting in response to the start request;
A library for multiple applications,
Including
The plurality of libraries determine whether or not to allow the library to function as a position information acquisition control unit that makes a start request to the position information acquisition unit.
A terminal device characterized by that.
複数の前記ライブラリのいずれか一つのみが、自ライブラリを前記位置情報取得制御部として機能させると判定する、
ことを特徴とする請求項1に記載の端末装置。
Only one of the plurality of libraries determines that the library functions as the position information acquisition control unit.
The terminal device according to claim 1.
前記ライブラリは、前記位置情報取得制御部として機能していたライブラリが前記位置情報取得制御部として機能していない場合、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、
ことを特徴とする請求項1または請求項2に記載の端末装置。
The library determines whether or not to allow its own library to function as the position information acquisition control unit when the library functioning as the position information acquisition control unit does not function as the position information acquisition control unit.
The terminal device according to claim 1, wherein the terminal device is a terminal device.
前記位置情報取得制御部は、自ライブラリの機能を停止させる操作が行われる場合に、他の前記ライブラリに自ライブラリが前記位置情報取得制御部として機能しなくなることを通知する、
ことを特徴とする請求項1から請求項3のいずれか一項に記載の端末装置。
The position information acquisition control unit, when an operation to stop the function of the own library is performed, notifies the other library that the own library does not function as the position information acquisition control unit;
The terminal device according to claim 1, wherein the terminal device is a device.
前記位置情報取得制御部として機能していない前記ライブラリは、前記位置情報取得制御部として機能していたライブラリに対して応答を要求し、応答がない場合に、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、
ことを特徴とする請求項1から請求項4のいずれか一項に記載の端末装置。
The library not functioning as the position information acquisition control unit requests a response from the library functioning as the position information acquisition control unit, and when there is no response, the library is referred to as the position information acquisition control unit. To determine whether to function as,
The terminal device according to any one of claims 1 to 4, wherein the terminal device is characterized in that
前記ライブラリは、記憶部に記憶されている前記ライブラリの優先順位に基づいて、自ライブラリを前記位置情報取得制御部として機能させるか否かを判定する、
ことを特徴とする請求項1から請求項5のいずれか一項に記載の端末装置。
The library determines whether or not to allow the own library to function as the position information acquisition control unit based on the priority order of the library stored in the storage unit.
The terminal device according to any one of claims 1 to 5, wherein:
起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、複数のアプリケーションに対応したライブラリと、を含む端末装置における位置取得方法であって、
複数の前記ライブラリが、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定する第1ステップと、
前記第1ステップにおいて、自ライブラリを前記位置情報取得制御部として機能させると判定した前記ライブラリが、前記位置情報取得制御部として機能する第2ステップと、
を含むことを特徴とする位置取得方法。
A position acquisition method in a terminal device including a position information acquisition unit that acquires position information by starting in response to an activation request, and a library corresponding to a plurality of applications,
A first step of determining whether or not the plurality of libraries cause the own library to function as a position information acquisition control unit that makes a start request to the position information acquisition unit;
In the first step, the second step in which the library that has been determined to function its own library as the position information acquisition control unit functions as the position information acquisition control unit;
The position acquisition method characterized by including.
起動要求に応じて起動することにより位置情報を取得する位置情報取得部と、複数のアプリケーションに対応したライブラリと、を含む端末装置のコンピュータに、
複数の前記ライブラリに、自ライブラリを前記位置情報取得部へ起動要求を行う位置情報取得制御部として機能させるか否かを判定させる第1ステップ、
前記第1ステップにおいて、自ライブラリを前記位置情報取得制御部として機能させると判定した前記ライブラリに、前記位置情報取得制御部として機能させる第2ステップ、
を実行させるためのプログラム。
In a computer of a terminal device including a position information acquisition unit that acquires position information by starting in response to a start request, and a library corresponding to a plurality of applications,
A first step of causing a plurality of the libraries to determine whether or not the own library functions as a position information acquisition control unit that makes a start request to the position information acquisition unit;
A second step of causing the library that has been determined to function as its position information acquisition control unit in the first step to function as the position information acquisition control unit;
A program for running
JP2014194641A 2014-09-25 2014-09-25 Terminal device, position acquisition method, and program Active JP6215164B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014194641A JP6215164B2 (en) 2014-09-25 2014-09-25 Terminal device, position acquisition method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014194641A JP6215164B2 (en) 2014-09-25 2014-09-25 Terminal device, position acquisition method, and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2017179491A Division JP2018007270A (en) 2017-09-19 2017-09-19 Terminal device, position acquisition method and program

Publications (2)

Publication Number Publication Date
JP2016065793A true JP2016065793A (en) 2016-04-28
JP6215164B2 JP6215164B2 (en) 2017-10-18

Family

ID=55805253

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014194641A Active JP6215164B2 (en) 2014-09-25 2014-09-25 Terminal device, position acquisition method, and program

Country Status (1)

Country Link
JP (1) JP6215164B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708542A (en) * 2023-08-02 2023-09-05 福建福大北斗通信科技有限公司 High-precision position sharing system and method based on Android platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010130375A (en) * 2008-11-28 2010-06-10 Softbank Mobile Corp Mobile information terminal, positioning control method, and positioning control program
US20110309976A1 (en) * 2009-12-10 2011-12-22 Maxlinear, Inc. Intermittent tracking for gnss
JP2012120058A (en) * 2010-12-02 2012-06-21 Zenrin Co Ltd Mobile terminal
JP2014107587A (en) * 2012-11-22 2014-06-09 Iridge Inc Electronic device and control program for the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010130375A (en) * 2008-11-28 2010-06-10 Softbank Mobile Corp Mobile information terminal, positioning control method, and positioning control program
US20110309976A1 (en) * 2009-12-10 2011-12-22 Maxlinear, Inc. Intermittent tracking for gnss
JP2012120058A (en) * 2010-12-02 2012-06-21 Zenrin Co Ltd Mobile terminal
JP2014107587A (en) * 2012-11-22 2014-06-09 Iridge Inc Electronic device and control program for the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708542A (en) * 2023-08-02 2023-09-05 福建福大北斗通信科技有限公司 High-precision position sharing system and method based on Android platform
CN116708542B (en) * 2023-08-02 2023-10-24 福建福大北斗通信科技有限公司 High-precision position sharing system and method based on Android platform

Also Published As

Publication number Publication date
JP6215164B2 (en) 2017-10-18

Similar Documents

Publication Publication Date Title
US9820231B2 (en) Coalescing geo-fence events
JP6397289B2 (en) Communication terminal device, location providing system, location transmission method, and location transmission control program
US9749794B2 (en) Scalability and reliability of hardware geo-fencing with failover support
JP2012216163A (en) Application providing system, application providing method, information processing device and information processing program
JP2013534078A5 (en)
JP6140660B2 (en) Terminal device, position acquisition method, and position acquisition control program
JP2018007270A (en) Terminal device, position acquisition method and program
JP6216702B2 (en) Terminal device, position providing system, and position acquisition control program
JP6262630B2 (en) Location information server
JP6215164B2 (en) Terminal device, position acquisition method, and program
JP6429936B2 (en) POSITION INFORMATION MANAGEMENT DEVICE, POSITION INFORMATION MANAGEMENT METHOD, AND PROGRAM
JP2016072887A (en) Position information management device, position information management method, and program
JP6396534B2 (en) Apparatus, position acquisition method, and program for position acquisition control
JP6573179B2 (en) Server and computer program
JP3628685B1 (en) Service providing system and control method thereof, content server and control program thereof
JP6271386B2 (en) Information providing system and information providing method
JP6522204B2 (en) Location information server, location providing method and computer program
JP6346348B2 (en) POSITION INFORMATION SERVER, POSITION PROVIDING SYSTEM, POSITION PROVIDING METHOD, AND COMPUTER PROGRAM
JP6313059B2 (en) Information processing system
JP2016066964A (en) Position information server
JP6379155B2 (en) EVENT CONTROL PROGRAM, MOBILE TERMINAL HAVING EVENT CONTROL FUNCTION, AND EVENT CONTROL METHOD

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160930

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20161003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170307

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170426

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170427

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170905

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170920

R150 Certificate of patent or registration of utility model

Ref document number: 6215164

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150