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.
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.
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.b4x.com/forum/additional...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.
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'
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.
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.
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.