Page 1 of 4 1234 LastLast
Results 1 to 10 of 31

Thread: Gps COM Component

  1. #1
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276

    Gps COM Component

    Hi,
    I have just finished making a GPS COM component for Car navigation Apps. It only parses GGA,GSA,GSV and RMC sentences. The attachment also has a VB application with source to demonstrate how to use it in VB. This is the second VB program I have written in my life so don't expect it to follow standards. You can use the component in any application as long as you don't intend to sell it.

    You will need MSVCR71.dll. To register the the dll use
    regsvr32 GPS.dll

    Update:
    Removed the reference to VOICES type Library
    Made changes for com port greater than 9 (thanX to rando)
    http://support.microsoft.com/?id=115831)

    © 2004 Satish Kini
    satish_g_kini at yahoo.com

    GPS 1.0

    License:
    I don't care as long as it's not commercial.
    Would be nice to know which application is using it.
    E-mail me if you want to use the component in a commercial application.

    Regards
    Satish
    Attached Files Attached Files
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  2. #2
    Variable Bitrate NoPistonPC's Avatar
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    360
    Nice job.

    How hard would it be to add GLL? It would be nice to have latitude/longitude info.

    So how can we use these sentences? Would we have to use it with some other opensource GPS tools or map data? I thought the destinator and mappoint SDKs talk to the GPS devices directly, but maybe I'm wrong.
    1994 RX-7, EPIA P4-ITX w/ Celeron 2.4 Ghz, Arise PSU, Xenarc 700TSV (new model)

  3. #3
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276
    You can directly add GLL parser or any other parser onNMEASentence Event . It doesnot depend on any other component. You get the data directly from the GPS Receiver

    I also can add an event for GLL in the next release if there is more demand

    It can also simulate if you have a GPS file or log the GPS data to a file for simulation later

    BTW you can get lat/long data from GGA & RMC sentences
    Regards
    satish
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  4. #4
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    I thought GLL was depreciated? Or am I wrong?

    From the RMC data do I need to convert the lat/lon to decimal for mappoint?

    'If ObjGGA.GPSFix = FIX_GPS_OK Or FIX_DGPS_OK Then

    Had to comment this out to make the test app work, would I need to register these as constants in an app, if so what do I register them as?
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  5. #5
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276
    The RMC data can directly be used in mappoint.
    No once you register the DLL everthing is registered. What was the error you get when you try to compile.
    If you did not get Compile time error. Can you check the log file if the Receiver gives GGA sentence? If yes is the the 7th field 0
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  6. #6
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by SilentAdmirer
    The RMC data can directly be used in mappoint.
    No once you register the DLL everthing is registered. What was the error you get when you try to compile.
    If you did not get Compile time error. Can you check the log file if the Receiver gives GGA sentence? If yes is the the 7th field 0
    'Can't find project or library'

    I'm already using a GPS COM port sim (GPSgate) - works good with all other apps.

    $GPGGA,160018.537,5230.5477,N,00147.5128,W,1,06,1. 4,138.1,M,47.9,M,0.0,0000*64
    $GPGSV,2,1,07,20,82,061,42,01,49,169,43,07,43,268, 45,11,38,135,42*76
    $GPGSV,2,2,07,04,24,298,44,25,22,066,42,13,15,196, 00*46
    $GPRMC,160018.537,A,5230.5477,N,00147.5128,W,68.29 ,268.02,280304,,*21


    Example input
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  7. #7
    Variable Bitrate SilentAdmirer's Avatar
    Join Date
    Jul 2003
    Location
    Linz Am Rhein , DE
    Posts
    276
    I tried again on another PC and it seems to work. Can you check if u get an auto complete when you edit the = in the line ? If you comment the line does it work ? also try with GPS.FIX_MODE.FIX_2D instead of FIX_2D
    VOICES Status : Rework in Progress [||--------](20%)
    Preview Version at http://voices.techworldonline.com

  8. #8
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by SilentAdmirer
    I tried again on another PC and it seems to work. Can you check if u get an auto complete when you edit the = in the line ? If you comment the line does it work ? also try with GPS.FIX_MODE.FIX_2D instead of FIX_2D
    Seems to autocomplete
    Attached Images Attached Images  
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  9. #9
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    and this is the error highlighted when I click ' Connect ' on running it in VB6
    Attached Images Attached Images  
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  10. #10
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Ooooooh!

    Uncommented this VOICES in references and it now works...
    Attached Images Attached Images  
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

Page 1 of 4 1234 LastLast

Similar Threads

  1. garmin mapsource and usb gps mouse
    By thecrow in forum GPS
    Replies: 9
    Last Post: 09-26-2006, 03:24 PM
  2. Bug Reports
    By frodobaggins in forum FrodoPlayer
    Replies: 168
    Last Post: 10-16-2004, 01:25 AM
  3. a new way of GPS
    By brownpage in forum GPS
    Replies: 8
    Last Post: 08-24-2004, 03:51 PM
  4. Cant get good GPS signal in car.
    By Ricky327 in forum GPS
    Replies: 8
    Last Post: 01-29-2004, 10:28 PM
  5. Replies: 4
    Last Post: 09-04-2003, 10:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •