The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner > RR Plugins

Reply
 
LinkBack Thread Tools Display Modes
Old 11-04-2007, 08:53 PM   #1
Variable Bitrate
 
warnockm's Avatar
 
Join Date: Jun 2004
Location: Virginia
Posts: 423
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"
warnockm is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 11-04-2007, 09:36 PM   #2
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 8,047
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.
__________________
Road 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."
guino is offline   Reply With Quote
Old 11-04-2007, 09:45 PM   #3
Variable Bitrate
 
warnockm's Avatar
 
Join Date: Jun 2004
Location: Virginia
Posts: 423
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"
warnockm is offline   Reply With Quote
Old 11-04-2007, 11:06 PM   #4
Variable Bitrate
 
warnockm's Avatar
 
Join Date: Jun 2004
Location: Virginia
Posts: 423
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"
warnockm is offline   Reply With Quote
Old 11-05-2007, 07:20 AM   #5
RoadRunner Mastermind
 
guino's Avatar
 
Join Date: Nov 2004
Location: Vitória, ES - Brazil
Posts: 8,047
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.
__________________
Road 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."
guino is offline   Reply With Quote
Old 11-07-2007, 10:34 PM   #6
Variable Bitrate
 
warnockm's Avatar
 
Join Date: Jun 2004
Location: Virginia
Posts: 423
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"
warnockm is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
W3bTracker - GPS Tracking & Secure Location Marking (also offering Mologogo tracking) W3bMa5t3r User Innovations 349 04-24-2008 06:49 AM
PPC Car GPS and MP3 mini How To hotrod_nut General Hardware Discussion 1 02-25-2008 01:24 PM
SD Navigation just does not work. rumy StreetDeck 54 03-10-2007 07:11 AM
Best GPS software to use with RoadRunner in US? AbsolutCarCrazy GPS 8 02-27-2007 10:37 AM
few gps questions fuctup GPS 2 03-02-2005 01:40 AM


All times are GMT -5. The time now is 11:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics