GPS.DLL and WM6

Discussion in 'Questions (Windows Mobile)' started by alfcen, Mar 23, 2008.

  1. alfcen

    alfcen Well-Known Member Licensed User

    Hi Erel
    On an iPAQ 210 running WM6 the parse results of the gps.dll
    randomly include the "$GPGGA" instring in altitude and NoOfSats,
    resulting in a lost connection after a minute or so. No such
    encounter with PPC2003.

    It could be a hardware mismatch, but just for safety, could you please
    be so kind as to look into this?

    Thanks & Cheers
    Robert
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Do you mean that GPS.Altitude sometimes return "$GPGGA" ?
     
  3. alfcen

    alfcen Well-Known Member Licensed User

    Yes, Erel, mostly proceeded by further data, including comma separators.
    Looks like a decode error. Thanks!
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Can you log the GPS data?
    You will need a code similar to:
    You should first open the file.
    Code:
    Sub Timer1_Tick
        
    If Serial1.InBufferCount > 0 Then
            s = serial1.InputString
            FileWrite(c,s)
            GPS1.GPSStream(s)
        
    End If
    End Sub

    Sub GPS1_GPSDecoded
        
    If gps1.Altitude <> "" AND Not(IsNumber(gps1.Altitude)) Then
            timer1.Enabled = 
    false
            
    Msgbox("error found")
            FileClose(c)
        
    End If
    End Sub
     
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