Bluetooth GPS PSY Overview

This describes the Bluetooth GPS PSY, which connects the Location Server (eposserver.exe) to external Bluetooth GPS devices. The audience is device creators and developers who want to integrate the Bluetooth GPS PSY into their products.

Purpose

The Bluetooth GPS PSY is used by the Location Server (eposserver.exe) to obtain position fixes from external Bluetooth GPS devices. The PSY uses the Bluetooth APIs to pair with an external Bluetooth GPS device. The PSY obtains position fixes from the Bluetooth GPS device. If the Bluetooth GPS PSY is installed, a mobile device without an internal GPS chipset can obtain GPS position fixes from external Bluetooth GPS hardware.

Required background

A knowledge of the material covered in the following is useful to understanding how this component fits into the LBS architecture:

Key concepts and terms

Bluetooth

A wireless protocol for data exchange over small distances.

PSY

A Positioning Plug-in. The Bluetooth GPS PSY implements the Positioning Plug-in API to interface with the Location Server. It uses the Positioning Plug-in Information API to register itself with the Location Server.

NMEA

In this context, an abbreviation of the NMEA (National Maritime Electronics Association) 0183 standard. This defines an electrical and data exchange protocol for marine electronic devices (including GPS receivers). The Bluetooth GPS PSY supports devices that use the NMEA 0183 standard and also devices that support PNOK NMEA extensions.

PNOK

Nokia proprietary extension to the NMEA 0183 standard. It defines additional messages that give extra information about the status of a Bluetooth GPS device that supports PNOK. The Bluetooth GPS PSY supports PNOK.

RFCOMM

A Bluetooth protocol that provides simulated serial communications over a wireless connection. It is used by the Bluetooth stack to support data exchange with the Bluetooth GPS device on behalf of the Bluetooth GPS PSY.

Architecture

Figure 1 shows the Bluetooth GPS PSY component with associated LBS components.

Figure 1. Figure 1. Bluetooth GPS PSY and related components.

The Bluetooth GPS PSY implements the Positioning Plug-in API. It also uses the Positioning Plug-in Information API to register itself with the LBS subsystem. The PSY provides three APIs (described in more detail later in this document).

The PSY uses the Bluetooth APIs to pair with a Bluetooth GPS device. Bluetooth uses the RFCOMM protocols to connect with the Bluetooth GPS device.

Supported features

The Bluetooth GPS PSY provides the following features:

  • Support for devices that use the NMEA 0183 protocol.

    A Bluetooth device must support NMEA 0183 to be compatible with the Bluetooth GPS PSY.

  • Support for devices that implement the PNOK NMEA 0183 extensions.

    These proprietary extensions support additional information about the paired Bluetooth GPS device.

  • Support for multiple simultaneous client requests for position fixes.

    The PSY uses the target time specified as part of the client request to decide if multiple client requests can be bundled into a single request to the Bluetooth subsystem. Bundling requests improves efficiency and reduces the power requirements of using an external Bluetooth GPS device.

  • Support for tracking.

    Tracking is the process of returning periodic position updates with a constant time interval between them. This feature is typically used by navigation applications.

  • Support for multiple Bluetooth GPS devices.

    The Bluetooth protocols can discover more than one Bluetooth GPS device (for example a mobile phone may be able to connect with both a standalone Bluetooth GPS device and an in-car device).

    It is useful to be able to try to connect to more than one Bluetooth GPS device. One example use-case is when the mobile device is used for in-car navigation. GPS reception may be limited inside a vehicle, but there may be access to an in-car Bluetooth GPS device with an external aerial. The Bluetooth protocols can discover all available Bluetooth GPS devices and ask the user which one to pair with their mobile. The PSY then connects to the chosen Bluetooth GPS device.

    It is not necessary for a user to follow this manual pairing procedure each time LBS decides it needs to use a Bluetooth GPS device. The PSY maintains its own ordered list of Bluetooth GPS devices. It tries to connect to each of the devices in succession and pairs with the first device to which it can successfully connect. The details of this device are stored by the PSY and are automatically used the next time the mobile must be paired with Bluetooth GPS hardware. Note that the PSY can only be paired with one Bluetooth GPS device at any time.

PSY libraries and installation

Most of the Bluetooth GPS PSY is packaged in nlabtgpspsy.dll. The Bluetooth GPS PSY Configuration API (see below) is packaged as a separate library lbsbtgpsconfig.dll.

The PSY can be installed in one of two ways:

  • By a device creator at ROM build time by using a ROM build macro.

  • In a SIS file, which can be installed by the mobile device user.

See Bluetooth GPS PSY Tutorial for more information about these installation options.

APIs

The Bluetooth GPS PSY provides three APIs:

  • Bluetooth GPS PSY Settings Storage API

    A client can use this API to get the properties of the Bluetooth GPS device paired with the Bluetooth GPS PSY. If the device supports PNOK, some properties can also be set.

    A client is typically a Bluetooth GPS settings application developed by a device creator.

  • Bluetooth GPS PSY Events API

    A client can use this API to get information about the paired Bluetooth GPS device. If the device supports PNOK, the client can subscribe for notification of some Bluetooth device events (such as device status changes).

    A client is typically a UI component, such as a notifier, that informs a user of Bluetooth GPS device events.

  • Bluetooth GPS PSY Configuration API

    This API allows a user to manage an ordered list of Bluetooth GPS device details. The PSY tries to connect with each of the devices in the list in succession and stops when it is successful.

Typical uses

The PSY can be used to obtain a location fix one of two ways:

  • A Location Acquisition API client can select the PSY by default by opening a session with the Default PSY. The Default PSY always tries to use the Bluetooth GPS PSY first to obtain a location fix, and then tries to use other PSYs if the Bluetooth GPS PSY cannot provide a position fix.

  • A Location Acquisition API client can select the PSY explicitly by opening a session with the Location Server. The client application must specify the implementation UID of the Bluetooth GPS PSY (0x101FE999).

The PSY can also report the status of a Bluetooth GPS device through the Bluetooth GPS PSY Events API.