eHow launches Android app: Get the best of eHow on the go.

How To

How to connect to Bluetooth GPS from mobile phone

Member
By vgps01
User-Submitted Article
(2 Ratings)

In this how to, I explain how to connect bluetooth GPS receiver from mobile phone. Bluetooth GPS receiver is a device that continuously sends its position (latitude, longtitude and velocity) through bluetooth protocol. If your phone is bluetooth enabled phone, you can connect to bluetooth GPS receiver to track its movement. To detect, connect to bluetooth GPS from mobile phone and retrieve NMEA sentences for location tracking, you can write a java program (j2me) for your phone. Your program needs to do the following tasks:

Difficulty: Moderate
Instructions

Things You'll Need:

  • a mobile phone that support JSR82 bluetooth API
  • a bluetooth GPS receiver
  • J2ME development flatform - Wireless Tool Kit download from Sun website.
  • willing to learn J2ME language. J2ME is java programing language special designed for mobile phone. It is a bit different with java for PC.
  • a sample source code. You can download from website in resources box
  1. Step 1

    Inquiry bluetooth device in range. each time when a bluetooth device is discovered, DiscoveryListener will trigger procedure deviceDiscovered. When inquiry completed, DiscoveryListener will trigger procedure inquiryCompleted

  2. Step 2

    Get bluetooth friendly name. We need a ChoiceGroup to store a list of bluetooth friendly name of detected devices. We also need a vector to store detected devices.

  3. Step 3

    Select bluetooth GPS receiver from the list of detected devices.

  4. Step 4

    Search for service provided by GPS device. Bluetooth GPS receiver provides L2CAP service, so your program needs to search for this service in order to get GPS's connection string url.

  5. Step 5

    Get connection string from GPS device. The Connection string URL will have this format Url = "btspp://bluetoothAddress:" + L2CAP_UUID + ";authorize=false;encrypt=false";

  6. Step 6

    Connect to and receive sentences from GPS device. After you get the url connection from step 5, you can open connection and retrieve NMEA sentences from that connection string.

Tips & Warnings
  • Visit http://www.digitalmobilemap.com/connect_bt_gps.htm for complete how to write a mobile program that can connect to bluetooth GPS receiver.
  • It is quite fun to play with bluetooth GPS receiver from your mobile phone. After you have basic program, you can start to enhance it by adding following features: track you log, upload your waypoint to OpenStreetMap to map your city street map. etc...

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow's Computers Expert.

Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics