Background
VAG-COM (www.ross-tech.com) is an on-board diagnostic (OBD) scanner for Volkswagen Audi Group vehicles. Ross-Tech explicitly state that it is only supported running under Windows. However, others (with more experience than I) have used wine to get it working under Linux in the past. For example:
This post (http://forums.vwvortex.com/zerothread?id=2698219) states VAG-COM works under SUSE Linux but provides no description as to how to install it.
This HOW-TO (http://autos.groups.yahoo.com/group/...M/message/4440) from 2001 is too old so I don’t know if it still works. VAG-COM has undergone many updates since then.
This HOW-TO (http://www.ubuntuforums.org/showthread.php?t=102885) from 2005 requires mozactivex and a couple of DLLs. It was probably based on version 504 of VAG-COM but provided me with hope that I could get it to work.
I have installed the recently released version 607.0 of VAG-COM under Ubuntu Linux. This is how.
System used
VAG-COM Cable = HEX-COM+CAN cable from Ross-Tech. IMPORTANT: This is the serial port version (not USB). I believe that the USB version will not work with Linux because Wine only supports USB devices that are supported by the Linux kernel.
VAG-COM software = Release 607.0 from Ross-Tech.
Computer = Toshiba 8100 laptop with a Pentium 3 processor and 196 Mb RAM.
OS = Ubuntu (Dapper Drake 6.06 release) freshly installed and updated on 16/7/06. Linux kernel 2.6.15-25-386.
Wine = Version 0.9.9-0Ubuntu2 from Universe repository.
Conventions
Text like this:
Means that you type "cd vag-com", without the quotes or the $ sign, at the prompt of the command-line interface in the user's home directory. That is, just open the terminal and type the command because you should automatically be in the home directory.
"=>" means this results in …
"->" means the next step is …
HOW-TO Install VAG-COM
1.Install Wine from Universe repository using Synaptic.
2.Create the wine directories and open a configuration window by typing at the command prompt:
-> click OK to close the window as no changes are required.
3.Download Vag-Com-Release-6070-Installer.exe from www.ross-tech.com. This is the version of the software for the serial cable.
4.Move the downloaded file to ~/.wine/drive_c. Tip: If using Nautilus file manager to do this, you have to press Ctrl-H to show the hidden /.wine directory in your user’s home directory.
5.Run the VAG-COM setup wizard by typing:
Code:
$ wine c:\vagcom-release-6070-installer.exe
=> Setup Wizard should open and behave as if it is a Windows program
-> Choose to Install to c:\Program Files\VAG-COM.
=> Creates a desktop icon called "VAG-COM Release 607.lnk" on the desktop.
-> When the installation is complete simply delete this desktop icon as it does not work in linux.
6.Run VAG-COM by typing at the terminal either:
Code:
$ cd ".wine/drive_c/Program Files/VAG-COM" && wine vagcom.exe
Or
Code:
$ sh –c cd ".wine/drive_c/Program Files/VAG-COM" && wine vagcom.exe
This can be simplified by optionally creating a desktop icon below.
Create a desktop icon to run VAG-COM
Unfortunately, running VAG-COM is not as simple as just typing: "wine vagcom.exe" at the home directory command prompt. Even if you have added the VAG-COM path to the wine windows registry, so that it can find the executable, it will not work properly. You need to issue the command from within the VAG-COM directory or VAG-COM will give the error "Can’t Open Codes File: CODES.DAT". The program will then continue but does not work very well.
The simplest way that I found around this problem (using my very limited knowledge) was to change to the VAG-COM directory before running it. This is effectively what the commands above do but these are a nuisance to type.
A simple solution is to use a script that performs the change of directory and then runs VAG-COM. Such a script can then be called by a desktop icon.
7.Create a text file called vagcom.sh which contains the following:
Code:
cd ~/.wine/drive_c/"Program Files"/VAG-COM
wine vagcom.exe
cd ~
8.You can then create a launcher on your desktop by right clicking the desktop
-> Create Launcher…
-> Name = VAG-COM
-> Command = sh vagcom.sh
9.I believe that those who use a KDE environment may simply be able to add "~/.wine/drive_c/"Program Files"/VAG-COM" to the working directory of a desktop launcher without needing to write a script. Unfortunately, I could not find an equivalent in Gnome.
Tips:
Linux directory and file names are case sensitive while windows ones are not. Therefore if the name is being used by wine the case does not matter but if used by Linux it does. If you have trouble, pay strict attention to case.
I have limited experience with Linux and VAG-COM so don’t rely on anything I say.
Bookmarks