Discussion in 'Official Updates' started by Erel, Nov 4, 2008.
Sorry, I meant GetGPSData.
It fails when execute
gps.GetDeviceData ' It fails
If gps.GetGpsData(6000) = True Then Displaygps
With the GPS Settings.exe
Program port: none
Hardware port: COM4
Port Baud Rate:9600
Manage automatically: checked
This line retrieves information about the GPS Intermediate driver.
You can remove this line and see if GetGPSData works and returns a valid position.
Error number 87 is: Wrong parameters.
However the parameters sent are correct and work with other devices.
I removed the line 'gps.GetDeviceData and returns an erro like ' _main_timer1_tick'
Error getting position
Error number : 87
There is a problem with the GPS Intermediate driver. Maybe it is not configured correctly.
How I must configure the GPS Driver?
I used the GPS Settings.
Tell me the configuration.
The HTC GPS port is COM4
I've just downloaded the GPSDriverdemo from Agraham and when opens the connection has the same error, but when I enter NMEA option and I press 'Open', I can see the NMEA sentences in the textbox. So data is sent.
I'm getting crazy with HTC devices, but everybody have HTC devices.
If these really are the settings for your internal GPS they look wrong. On my HTC Diamond they are
Program port: COM4
Hardware port: none
Port Baud Rate:4800
Manage automatically: checked
Andrew you are right, but with this config I have the same error in the GPSDriverDemo you posted.
When I press 'Open', it appears _main_timer1_tick Error getting position, Error number 87
My ppc app. works mainly with Diamond model and I have a lot of problems with internal GPS. I resolved with GPS Plex, but with the new library you developed, I exclude the GPS Plex app. from installation from the customer.
I haven't posted a GPSDriverDemo that works with the official GPSDriver library. If you are using the one at post #36 in this thread http://www.basic4ppc.com/forum/addi...ntermediate-driver-interface-4.html#post18166 then it won't work. I said in that post that it is NOT a beta of the official library, it was only a demonstrator. The official GPSDriver library has different methods and properties to that demonstrator library.
That's right, but other HTC users tested and was ok.
Anyway, thank you for all.
Device State error
Erel, i've tried running GPSDriver example on my hTC (Windows Mobile 6.1). It runs ok except for the following error:
Try to comment this line and see if it works.
Which device are you using?
This library was tested with several HTC devices.
I've got the hTC TyTN II. I commented out line 28 and it then fails in line 29. Error msg attached.
There is some problem with the GPS Intermediate driver on your device.
Maybe it is not configured properly.
Finally I can use the GPSDriver Lib in my P3300 and Diamond. I had to change the WM5 to WM6 ROM (P3300)
But.... If I want to use a BT GPS? How must I do? All my testings were unsucessful.
In my Diamong when I'm going to change parameters in the 'Settings.exe' App, it appears the message 'You have insufficient permissions to map the hardware port'
Thanks in advance.
You should use the built-in settings program not the one from this thread. It is probably named "External GPS" and you can reach it by choosing Menu - Settings.
I have the same problem. Whatever change I make, when starts again it remains the old configuration.
There are device specific forums here: http://forum.xda-developers.com/index.php
Maybe you can find the answer there.
Erel, I've done a hard reset and the demo still falls over on the same lines. I've noticed however that when the hTC TyTN II is powered by an external power supply (i.e hooked upto me PC) it doesn't fall over, but soon as the PDA is powered off the error occurs. Does that shed any light?
Also, how do I get the demo to use a bluetooth receiver? I've looked through this thread but can't get it connected - it always picks up the internal receiver.
It seems to be some problem with your device.
To use this library with an external GPS you need to change the driver settings. You should set the driver to use the bluetooth virtual serial port instead of the internal gps port.