Results 1 to 6 of 6

Thread: Roadrunner GPS in c#

  1. #1
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433

    Roadrunner GPS in c#

    I'm using roadrunner.sdk in c# by using the following code:

    Code:
    SDKType = System.Type.GetTypeFromProgID("RoadRunner.SDK");
    SDK = System.Activator.CreateInstance(SDKType);
    
    String winamppath = RRCom("GetInfo", "=$WINAMPPATH$")
    
    private String RRcom ( cmd, message )
    {
    Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
    return (string) o;
    }
    I'm trying to do the same thing w/ Roadrunner.GPS. This is what i'm trying:

    Code:
    String cmd = "GetInfo";
    String message = "lat";
    SDKType = System.Type.GetTypeFromProgID("RoadRunner.GPS");
    SDK = System.Activator.CreateInstance(SDKType);
    Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
    i get the following exception:
    - $exception {"Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))"} System.Exception {System.Runtime.InteropServices.COMException}


    any ideas how to get lat and long from Roadrunner?
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    I wouldn't touch .net with a 14 foot pole.. but if you can't get the COM method to work, you should try the SendMessage method.. other than that, I'd just use Xport and read the GPS directly.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    but i got roadrunner.sdk to work well. i figured it was just a different command and message.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  4. #4
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    Actually, know what would be awesome? if road runner had built in GPS logging. That's all i really want. Store the lat/long and the time to a text file.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    There's a plugin for that, also, MM and most GPS software have support for that.

    Anyway, if the .SDK works, it's the same thing for the .GPS one.. it's read-only properties though, there are no methods or functions to "call" -- which should be simpler really.. so I'm not sure the syntax of the code should be the same from c# -- but knowing you want to read properties (and not make function/sub calls) may help you locate the proper syntax on some example in the web reading properties of COM objects.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  6. #6
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    i just noticed that xport logs gps data, but in the nmea format, not lat/long. i can probably pull the points out of it. Otherwise, i'll use MM.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

Similar Threads

  1. Replies: 353
    Last Post: 08-24-2009, 09:31 AM
  2. PPC Car GPS and MP3 mini How To
    By hotrod_nut in forum General Hardware Discussion
    Replies: 1
    Last Post: 02-25-2008, 01:24 PM
  3. SD Navigation just does not work.
    By rumy in forum StreetDeck
    Replies: 54
    Last Post: 03-10-2007, 07:11 AM
  4. Best GPS software to use with RoadRunner in US?
    By AbsolutCarCrazy in forum GPS
    Replies: 8
    Last Post: 02-27-2007, 10:37 AM
  5. few gps questions
    By fuctup in forum GPS
    Replies: 2
    Last Post: 03-02-2005, 01:40 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
  •