View Poll Results: How long a time should the MPG be averaged over?

Voters
2. You may not vote on this poll
  • About 10 minutes

    0 0%
  • Hours

    2 100.00%
  • As long as possible

    0 0%
Page 1 of 12 1234567891011 ... LastLast
Results 1 to 10 of 111

Thread: Vag-Scope Heads Up Display / Front End

  1. #1
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77

    Vag-Scope Heads Up Display / Front End

    Please note: I am not monitoring this thread. It has simply become too hard to cover all the conversations in multiple forums.

    I generally keep up to date on the thread at this forum:
    http://forums.tdiclub.com/showthread.php?t=206330

    Please feel free to contact me through that thread or via PM on TDI Club.

    For those of you who I mistakenly ignored (because I was not monitoring this forum) I apologize.


    Ok, I have pretty much finished the software. Below is a screenshot of the RR vagScope skin:


    The full skin for this can be found here:
    1) http://www.PuterTech.net/VagScope/BMV2_VagScope.zip

    The install file for the VagScope code that is needed to run the skin can be found here:
    2) http://www.PuterTech.net/VagScope/VagScopeInstall.zip

    The Code is in C#. All code and Project Studio projects can be found here:
    3) http://www.PuterTech.net/VagScope/VagScopeMod.zip

    Ok, now that all the links are there here are some notes on it:
    1) This would best be termed as "beta". It will have glitches, and it will change a lot. Keep checking back for notes on changes, if I change it I will replace the file on the server.
    2) A known bug is that the MPG on the left is not valid until after 2 minutes of runtime. It is an average over the two minutes, and until all that data is collected the values will be incorrect. The MPG to the right is always accurate and is the instantaneous MPG over the last two seconds. These times may change as I refine what is useful
    3) Those of you who are coders:: please help me debug this. I know there are bugs, specifically I know of one instance where it crashes and I have not been able to replicate the conditions that cause it. If you figure out where the crash is coming from (it has only happened 3 or 4 times) please let me know!
    4) It is dependent upon the reliability of vag-com (not very good). To deal with the fact that vag-com will sometimes fail to communicate, it detects the lack of incoming data. Don't stop and restart vag com for it, the program will detect the freeze of data after 20 seconds and do this itself. The exception to this rule is if communications have been established and then they freeze. If this is the case then you will need to hit back on the skin and then go back in. I intend to detect this in the future and restart vag-com, I just have not put the code in yet.

    now for the install instructions, they are not too hard:

    1) extract all the zip files
    2) Install vag-com from Ross-Tech
    3) Install the latest RR (Important!)
    4) run setup.exe
    5) Copy the skin folder into your RR skins folder
    6) Set the RR skin as your skin.
    7) make sure you have a vag-cable hooked up (This WILL NOT WORK with an OBD-II cable)
    8) copy the following line to the top of your rr.ini file:
    startcommand=Runq;C:\Program Files\VagScope-RoadRunner\VagScope-RoadRunner\VagScopeMod.exe

    Thats it, Should all work.

    Here are some simple instructions to calibrate the MPG gauge:
    1) Track your miles using your odometer (I use a handy palm program to track my mpg)
    2) You will notice a Vag-Config button on the main screen of the skin now, click it
    3) This screen shows an add mpg field and a subtract mpg field along with your current tank mpg
    4) if your actuall mpg (that you tracked in step 1) shows higher than the tank-mpg then increase the add mpg value, do the opposite if it is less (this is more likely). Note: The tank mpg already has any offsets you applied earlier
    5) When you change the offset the gauge will reset.

    I recommend repeating this every tank, different factors (such as how clear your fuel filter is) will require the offset to be changed.

    Thanks everyone for your support

    P.S. for those of you that want a standaone version, here is the project code and you will find binaries under the bin folder. THIS IS ALREADY OUT OF DATE. I am not supporting the standalone version, if you wish to develop it into something more or port the code from the RR plugin (this is possible) into the standalone version you are more than welcomed to, but I will not be doing any work on the standalone.
    http://www.PuterTech.net/VagScope/Va...StandAlone.zip

  2. #2
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    To make communications easier I have uploaded all of my code (including the skin) and the project files for visual studio to my server. You can get it all from this link:

    http://www.PuterTech.net/codePackage.zip

    also note that currently I have the "video" button set to open it (I have not bothered to change the image, this is not its final location and is just for testing). I have the app called VagScope, using VagScope.skin etc.

    If you want to be able to run the app itself you will need to download and install vag-com from http://www.ross-tech.com, you do not need a vag-cable to test the app.

    any help people can offer would be very very appreciated.

  3. #3
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    There's no need to make multiple threads, people will see them "highlighted" when you post it only once.

    In regards to the subject, I've downloaded your code and I see you're using .NET... so if you just want to display information from your App in RR (I'm not sure what all is that your app provides), then the best thing to do is to use either the COM or the COPYDATA (Windows Messaging) interface to send info to RR and display it on ANY of its screens/skins. This way you don't even need a GUI for you APP if you don't want, but you sure can have a GUI and still show the info in RR as well. For further information, please read this thread:

    Methods 3 and 4 should be the easiest ones to implement from .NET...
    http://www.mp3car.com/vbulletin/rr-f...cation-rr.html

    If you feel that you can implement either of the two methods, I can help you with the skin codes and commands you need to send to RR to display the info on a skin.
    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."

  4. #4
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    I'm willing to use any method to move the code in. I assume I will have to change my application over to a console app to do either one. This is the only .NET app I have done so I would more than welcome your input. I am already using process hooks to get information from vag-com, so I have the most experience with method 4 but I will do whichever you think would work best.

    After reading the description the one thing I am most confused about is how I will design the interface in RR and what objects I will need to use in RR to display the textual information.

    Essentially the app currently creates a form that has a bunch of labels and group boxes positioned to display information about the car in large readable text. I presume I would make a .jpg similar to the menu_up.jpg etc. and then somehow set the text on it, I think figuring this out is what I would need the most help with.

    Thanks, and sorry for the duplicate thread, I wanted it to go into both plugins and skins since it seems to cover both topics.

  5. #5
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    You should simply download the skin editor, then all you have to do is create LABELS in it, place them in the screen as you wish.. then for each label code you create.. make codes like this: "=$MYTEXT1$" or "=$MYTEXT2$" and so on... of course give more meaningful names... like "=$VAG_TEXT1$" or something.. those are variables you'll set in RR via commands send by your app...

    with any method the commands are the same:
    "SETVAR;VAG_TEXT1;<TEXT TO DISPLAY>"

    That's all to display text... you can make a label for test and then make a button with the code above to test it... then if you send the command from your app successfully, then it'll show in RR...
    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
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77
    sweet. Thank you, I'll get to work on converting my app to a windowless app

  7. #7
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77

    some more info

    Do you happen to know of a skin that uses this same method? I want to look at an example.


    I have finished the image design and removed the form from my application, now I need to create the labels and set their properties. All the application code is pretty much there since I just need switch it from setting the labels on the form to setting the labels in RR.

    Also, my current method of hooking into the process has been to use user32.dll to set the properties of various fields (such as text boxes and buttons). I'm guessing this is not what you suggest, so do you happen to have an example line or two of .net code that I would use to make the changes to the label text in this?

    Thanks


    Quote Originally Posted by guino View Post
    You should simply download the skin editor, then all you have to do is create LABELS in it, place them in the screen as you wish.. then for each label code you create.. make codes like this: "=$MYTEXT1$" or "=$MYTEXT2$" and so on... of course give more meaningful names... like "=$VAG_TEXT1$" or something.. those are variables you'll set in RR via commands send by your app...

    with any method the commands are the same:
    "SETVAR;VAG_TEXT1;<TEXT TO DISPLAY>"

    That's all to display text... you can make a label for test and then make a button with the code above to test it... then if you send the command from your app successfully, then it'll show in RR...

  8. #8
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Do you know how to create a com object in .NET ?

    If you do, you can create "RoadRunner.SDK" then use the Execute method to send commands to RR... try just .Execute("PLAY") for instance to play/pause.. if it works, then you're done with that part..just need to make the skin and put different commands in place..
    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."

  9. #9
    Low Bitrate
    Join Date
    Dec 2007
    Posts
    77

    com

    Ah, I was just unsure of how to use the SDK to change the label text to display the information.

    The link to the RR source code is down, do you know of an alternate link?

    Thanks.

  10. #10
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Courtesy of Blue ZX3 ..
    http://myspotontheweb.no-ip.org/inde.../page0008.html

    But you should not need anything from there if you just use the COM method explained in that link I passed you a few posts back -- there's nothing "working" in .NET in the SDK examples.
    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."

Page 1 of 12 1234567891011 ... LastLast

Similar Threads

  1. Embed Visu when already running & in multiple screens?
    By swift_gti in forum Road Runner
    Replies: 4
    Last Post: 01-23-2008, 05:48 AM
  2. slingplayer embed problems
    By 1Munkey in forum Road Runner
    Replies: 1
    Last Post: 11-06-2007, 04:52 PM
  3. cant embed my app!
    By djmickyg in forum SkinBedder
    Replies: 7
    Last Post: 06-13-2006, 08:38 AM
  4. IG Nag screen/ embed issues FIX how to
    By liquid_smoke in forum RR Skins
    Replies: 41
    Last Post: 06-03-2006, 02:35 AM
  5. Will FD 1.0 embed into FrodoPlayer?
    By ayclens in forum FreeDrive
    Replies: 0
    Last Post: 05-13-2006, 11:57 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
  •