HomeHardware


Automatic pairing of Bluetooth GPS with Windows 7 64 bit
bejal
Hello all!

I am a new poster to the forums, but have been perusing them for a couple of months now.

I am a software developer for my company and we have a project that is requiring us to capture GPS data for users of our custom software. We are using a Windows 7 x64 tablet PC and a Bluetooth GPS device (Garmin GPS 10) and we have come across an issue that I was hoping that someone here had also come across and had come up with a solution.

We have gotten the GPS connected to the tablet, but the problem we are having is that the tablet is requiring the user to enter the pairing code everytime they start up the device. I have been banging my head against a wall for the past couple of weeks trying to figure out a way to not have to re-enter the pairing code everytime that we turn on the machine.

When the GPS and the tablet are connected, everything works great. It is just trying to figure out how to keep the user from having to re-key the pairing code every time they boot that is causing the issue.

I know that we could probably use a USB GPS, but the owner of the project does not want to have the device connected if possible as the users will be driving around alot and they are afraid of the USB plug in getting damaged.

If anyone has come across a this and knows of a solution (either how to keep from having to re-pair the GPS, or a GPS that doesn't cause this issue), I would be greatful for any help.
tcassidy
The only reason they might have to enter a pairing code every time they start Windows has nothing to do with the operating system. It means they are using a code they picked rather than the one specifically for that GPS. The proper way to pair a GPS is choose the 'Enter the device's pairing code' option and then enter it on the next screen. As you know the pairing code for the Garmin GPS 10x is 1234.

Terry
Attached Images
pairing-gps-10x-1.jpg   pairing-gps-10x-2.jpg  
bejal
Thanks for the reply!

Yes, I do know about setting up the GPS like you showed in the screen shots. However, everytime that the application tries to connect back to the GPS after a reboot, the user gets the notification shown in the image I attached. They then have to key in the pairing code '1234' before the GPS will connect to the computer.

I am trying to find a way to keep from having to do this everytime after a boot.
Attached Images
btconnect.jpg  
tcassidy
Interesting. That was the only circumstance I had ever seen causing a similar behaviour before. I know my Holux BT GPS doesn't do it on Win 7 64 but can't run a test on the 10x right now as I do not wish to restart the computer.

Terry
bejal
What is the model of the Holux that you use?

I am not tied to the Garmin if I can find something else that works
tcassidy
It is a Holux GPSlim 236. However, I realize I had not tested any navigation programs with it after a restart. Right now the only navigation program I have on that computer is S&T 2010 and it won't even find my BT GPS ports. I need to do some more testing obviously. I'll let you know what I find.

Terry
tcassidy
I installed iNav iGuidance 2009 on the Windows 7 64 bit computer. It has the advantage of automatically trying to connect to a GPS when it is started. I pointed it at the Garmin GPS 10x BT COM port and got it set up properly.

I then turned off the computer but left the 10x on. I powered up the computer and started iGuidance. It immediately connected to the 10x with no messages. While iGuidance was running I turned off the 10x and waited for iGuidance to note it was unavailable. I then powered up the 10x again and iGuidance acquired a signal quickly. I did not see any error or reconnect messages during these tests.

I don't think your issues are with Windows 7 64 or the Blutooth GPS. They may be with the Bluetooth stack you are using (these tests were done with the basic Microsoft Bluetooth stack) or your software.

I didn't test the Holux as it is in a different part of the house and this computer has trouble talking to it.

Also, I wouldn't recommend the Garmin GPS 10x unless you are using Garmin mapping products and require PVT data. While an excellent device, I think other more recent ones are less expensive and more sensitive. The qStarz BT818x comes to mind. But if can get the 10x at a good price, there is certainly nothing wrong with it!

Terry
Ken in Regina
Based on the screen shot of the message bejal posted, I would be suspicious of security settings. Something is causing it to ask permission to let the Bluetooth device connect. It never does that on my systems. That can have no good consequences if you want to have the user completely out of the loop.

I would be exploring things like User Account Control or any security related settings in the Bluetooth stack. Sorry, I don't have time at the moment to chase it.

...ken...
tcassidy
BTW, do you have 'Allow Bluetooth devices to connect to this computer' under Bluetooth Devices, options tab, Connections section. I note this computer (and all my others) have that and 'Alert me...etc' checked but not the Discovery one.

Terry
Attached Images
bluetooth-settings.jpg  
tcassidy
Quote:
Originally Posted by Ken in Regina
Based on the screen shot of the message bejal posted, I would be suspicious of security settings. Something is causing it to ask permission to let the Bluetooth device connect. It never does that on my systems. That can have no good consequences if you want to have the user completely out of the loop.

I would be exploring things like User Account Control or any security related settings in the Bluetooth stack. Sorry, I don't have time at the moment to chase it.

...ken...
I agree Ken and have seen such options in the Toshiba Bluetooth stack. I can't find them in the Microsoft or Broadcom stack though.

Terry
Ken in Regina
I have the same settings as Terry shows, except the setting his screen shot shows as "Discovery" is worded "Allow Bluetooth devices to find this computer". Same thing.

I plugged my Bluetooth dongle into my Windows 7 (32-bit) computer and by the time I clicked to show Bluetooth devices, my cell phone (in my shirt pocket) had already paired with the computer. No request for the code. No other indication of any kind that pairing had occured. It just happened. (Of course I have already previously set up this connection in order to use the Outlook syncing with the phone, so it's not like it was a new device connection.)

I believe this is the behaviour bejal is looking for with the GPS10x.

...........

Further testing. I don't have any useful navigation software on this computer but I have Franson's GPSGate on it. So I paired my GPS10x using the 10x's 1234 code, ran GPSGate and had it search for the 10x. Once GPSGate found the 10x and declared it was "Running OK!", I turned the GPS off. The icon in GPSGate turned red when it lost the connection.

I turned the 10x back on and clicked on the "Close" button, then clicked on the "Open" button (same button, just labeled differently when it changes state). In a couple of seconds GPSGate found the 10x, turned the icon light green and declared it was "Running OK!".

Again, no prompting for the code to connect the device.

............

Left the GPS10x on and rebooted the computer. Once all the disk churning was done I clicked the Bluetooth icon in the system tray and clicked to Show Bluetooth devices. Both my phone and the 10x are showing.

I do not have GPSGate set to run at startup so I had to launch it again. As soon as I clicked to show the settings, it came up immediately showing the connection with the 10x as "Running OK!".

I believe this is the behaviour bejal is looking for.

I should repeat that this is a Garmin GPS 10x, Windows 7 32-bit, not 64-bit. I am running one of the most recent versions of the Broadcom stack (freely downloadable) so I can use the PIM interface with my cell phone over Bluetooth.

I hope this helps.

...ken...
tcassidy
The problem is easy to duplicate. Delete your 10x from Bluetooth Devices and then find it again. Only this time, choose to pair without a code. The device will pair but the next time you try to use it, it won't be there and you will get the trying to connect message.

EDIT. However if you do that, the device won't pair unless you enter the right code; you don't get the option to pair without a code again. So the situation would not be repeated. Hmm...guess the problem is elsewhere!

Terry
tcassidy
Is it possible your 10x is faulty and doesn't always answer to the request even with the proper ID? Another problem could be caused by the distance between the GPS and the Bluetooth module. If the distance is too great, it might fail the handshake exchanging the ID.

Terry
bejal
I am pretty sure that it is not an issue with the device, as I have tried a couple different ones (all the same model) and get the same results. The device is sitting next to the machine (within 5 feet) when this happens.
tcassidy
That certainly eliminates the GPS from the equation. Do you have another computer or Bluetooth dongle to test them with?

Terry
laptopgpsworld.com About