Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900