New GPSDriver library

Discussion in 'Official Updates' started by Erel, Nov 4, 2008.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Sorry, I meant GetGPSData.
     
  2. 2220

    2220 Member Licensed User

    It fails when execute

    Sub Timer1_Tick
    gps.GetDeviceData ' It fails
    If gps.GetGpsData(6000) = True Then Displaygps
    End Sub

    With the GPS Settings.exe
    Program port: none
    Hardware port: COM4
    Port Baud Rate:9600
    Manage automatically: checked
     
    Last edited: Nov 27, 2008
  3. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  4. 2220

    2220 Member Licensed User

    I removed the line 'gps.GetDeviceData and returns an erro like ' _main_timer1_tick'

    Error getting position
    Error number : 87
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    There is a problem with the GPS Intermediate driver. Maybe it is not configured correctly.
     
  6. 2220

    2220 Member Licensed User

    :(:(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.:(

    Joan
     
    Last edited: Nov 27, 2008
  7. agraham

    agraham Expert Licensed User

    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
     
  8. 2220

    2220 Member Licensed User

    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.

    Joan
     
  9. agraham

    agraham Expert Licensed User

    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.
     
  10. 2220

    2220 Member Licensed User

    That's right, but other HTC users tested and was ok.

    Anyway, thank you for all.
     
  11. Saj

    Saj Active Member Licensed User

    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:
     

    Attached Files:

  12. Erel

    Erel Administrator Staff Member Licensed User

    Try to comment this line and see if it works.
    Which device are you using?
    This library was tested with several HTC devices.
     
  13. Saj

    Saj Active Member Licensed User

    I've got the hTC TyTN II. I commented out line 28 and it then fails in line 29. Error msg attached.
     

    Attached Files:

  14. Erel

    Erel Administrator Staff Member Licensed User

    There is some problem with the GPS Intermediate driver on your device.
    Maybe it is not configured properly.
     
  15. 2220

    2220 Member Licensed User

    Hi Erel,

    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'

    Any ideas?

    Thanks in advance.
    Joan
     
  16. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  17. 2220

    2220 Member Licensed User

    I have the same problem. Whatever change I make, when starts again it remains the old configuration.
     
  18. Erel

    Erel Administrator Staff Member Licensed User

  19. Saj

    Saj Active Member Licensed User

    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.
     
  20. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice