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
庄健 奈須
Original Assignee
Kddi株式会社
Kddi Corp
Kddi株式会社
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株式会社, Kddi Corp, Kddi株式会社 filed Critical Kddi株式会社
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
Application status is Active legal-status Critical
Anticipated expiration legal-status Critical

Links

Images

Abstract

A position information acquisition control unit that controls acquisition of position information corresponding to a plurality of applications is appropriately selected from the plurality. A terminal device includes a location information acquisition unit that acquires location information by being activated in response to an activation request, and a library corresponding to a plurality of applications. It is determined whether to function as a position information acquisition control unit that makes a start request to the position information acquisition unit. Further, for example, in the terminal device, only one of the plurality of libraries determines that the own library functions as the position information acquisition control unit. [Selection] Figure 2

Description

  The present invention relates to a terminal device, a position acquisition method, and a program.

  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.

  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.

JP 2011-209298 A

  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) 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) 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) 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) 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) 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) 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) 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) 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.

  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.

  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).

  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.

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. .

  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.

  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.

  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.

  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.

  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.

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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

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.

  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.

  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.

  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.

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.

  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.

  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.

  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).

  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.

  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”.

  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.

  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.

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.

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.

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.

  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.

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.

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.

  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.

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.

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.

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.

  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.

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.

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.

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.

  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.

  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.

  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.

  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.

[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.

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.

[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.

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.

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.

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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

  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.

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.

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.

  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.

  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.

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.

  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.

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.

[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.

  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.

  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.

  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.

  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.

  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.

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.

  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.

  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). .

  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.

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.

  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.

  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.

  In the next step S104, the master notifies the slave that the position information has been acquired in step S102.

  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.

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.

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).

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”.

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.

  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.

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.

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.

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)

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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
  6. 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:
  7. 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.
  8. 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

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)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
EP2687055B1 (en) Improved device location detection
US6505049B1 (en) Method and apparatus in a communication network for facilitating a use of location-based applications
JP5739327B2 (en) Positioning
US20140364148A1 (en) Location-Based Ticket Books
US9198155B2 (en) Task management based on travel distance
KR101430300B1 (en) Space and time based device customization
EP2335443B1 (en) Using wireless characteristic to trigger generation of position fix
US9936333B2 (en) Location and contextual-based mobile application promotion and delivery
US8660541B1 (en) Provision of location-based venue information
JP3984922B2 (en) Mobile device, server device, and information providing method
CN103597804B (en) Baseband board carries position monitoring
JP5985780B2 (en) Method for secure delivery of indoor positioning data and applications
JP5768185B2 (en) Method and apparatus for automatically displaying application components on a desktop
US9267805B2 (en) Modeling significant locations
US9332381B2 (en) Location-based application recommendation
US9584968B2 (en) Systems and methods for deploying dynamic geo-fences based on content consumption levels in a geographic location
WO2010086036A2 (en) Mobile device and method for providing location based content
CN1475092A (en) Distributed location based service system
RU2642348C2 (en) Unification of geozone events
CN102090121B (en) Apparatus and methods for associating a location fix having a quality of service with an event occuring on a wireless device
KR20150132212A (en) Image-based application launcher
US9749794B2 (en) Scalability and reliability of hardware geo-fencing with failover support
US20160057572A1 (en) Geo-fencing notifications subscriptions
US20140324856A1 (en) Application discoverability
US7889071B2 (en) Methods, device and system for sending and providing environmental data

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160930

A521 Written amendment

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 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170426

A521 Written amendment

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