Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET Geolocation GPS
Hello,
 
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 3:40am
c_muzo429

1 solution

Rate this: bad
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 520
1 Maciej Los 290
2 Richard MacCutchan 265
3 BillWoodruff 265
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411028.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2014
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