Click here to Skip to main content
13,195,379 members (60,247 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I am looking for a third party software component (in SDK or DLL) to build in a existing commercial GIS software using Visual studio.

One of the features i am looking for is converting the gps location (bluetooth GPS receiver) to X,Y values based on the GPS map projection.

I looked at different products but still can not find a dll or sdk which can at least:

detect a existing bluetooth GPS receiver for example (Global-Sat BT-368) and read (listening) to the right COM serial port e.g. COM10, BaudRate:4800 and return the current GPS location in X,Y values based on the GPS map projection.

If someone knows a product that can do this or how to code this in .NET let me know. I will be very thankful if
Posted 28-Nov-12 2:40am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Most Bluetooth GPS modules connect using the BT SPP (Serial Port Profile). The fact the device is BT really has no bearing on how you would connect to it from your application. To your program, it would simply look like a COM port. The same as if it were connected via USB or a real serial port. So I don't think you will find a library that specifically supports a BT GPS module.

That being said, you can get a list of the serial ports defined on the system with SerialPort.GetPorts(); Enumerate the returned string array opening each port in order and sending the attention command to the GPS module or listen for properly formatted data if the module just blindly sends the data out. Be sure to set read and write timeouts because a port may be defined (like a physical serial port) but you will get no response to messages sent or received. If you don't set the timeout, the ReadLine and WriteLine functions will hang forever. Once you have identified the proper serial port, reading the data and converting it to GIS data should be pretty simple.

If you insist on munging around in BT, look at the 32feet library. I believe you can enumerate the BT devices and open a direct serial connection via that library.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171019.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100