Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Linux


Reply
 
Share Thread Tools Display Modes
Old 01-06-2009, 11:58 AM   #1
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Trying to get USB OBD2 interface to work...

Hey, I'm currently working on building a computer for the Ion Red Line. It's using standard PC hardware, nothing crazy. However, the primary purpose of the unit is to run the tuning software and box made by HP Tuners, and I haven't been able to get it to work under Wine just yet... I can install the software, but the device drivers for the USB box aren't natively supported, I'd imagine.

Before I finish the actual computer setup, I'm going to give it my best try to get this working in Linux, because I really have no desire to use Windows unless there's no other way. The tuning software cost me quite a bit, and it's an extremely well written piece of work, but so far they have no intentions of porting it (or the device drivers) to Linux.

I'm just venting right now, but as I go through this, I'm going to document it and see how far I can get.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 01-07-2009, 12:18 PM   #2
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Okay, good news, I've found some information on this particular issue.

Thanks to the guys who use Vista 64-bit, I found out who makes the Serial-to-USB bridge chip for the unit, and also where their drivers were... lo and behold, they have Linux drivers available!

http://www.ftdichip.com/Drivers/D2XX.htm

The company that makes this tuning interface are found at

http://www.hptuners.com/

I'm going to give this a shot, and see if the software installed in Wine will interface with the native drivers.... I'm crossing my fingers!
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-07-2009, 02:28 PM   #3
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
I successfully installed the interface drivers, and was able to plug it in and see it with "lsusb". I'm at work, though, and I don't have wine installed on my Linux VM, so I'll have to wait until I get home to complete testing. So far, though, it's looking great!

Linux freaking ROCKS!
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-11-2009, 09:58 PM   #4
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
I got it to work, the best way I could... I had to use free VM software, but I got it running.

Basically, I could not get any version of HPT to run in wine (emulation). Either it used .net 1.1 (which doesn't work in wine) or .net 2.0 which for some reason it couldn't detect, even installed and with .dll overrides.

I tried getting it to work in a VM, but the passthrough USB drivers didn't work... Linux has to recognize the device before it shows up in the VM.

Thanks to the Vista guys (I'll never say Vista is good for nothing now...) I found the chip's Linux drivers, installed them, and fired up a VM to install Windows onto. Yes, it still requires a Windows license... can't get around that.

So what I did was install Ubuntu 8.10 (latest version) on a computer I built.
www.ubuntu.com

Get the Linux drivers here: (the readme file explains how to install them)
http://www.ftdichip.com/Drivers/D2XX.htm

To check if it worked, plug the MVPI in and run "lsusb" to see if it shows up as a device.

I'm familiar with VirtualBox VM software... but don't download the one that comes with the distro, you need to get the latest one straight from Sun because it has USB support. Theoretically, since they have OSX drivers for the MVPI, and they make VirtualBox for OSX, it should be feasible to make this work on a Mac, too. Anybody wanting to donate one for me to use for testing? Heh.

http://www.sun.com/software/products/virtualbox/get.jsp

You will need to do a few workarounds to make pass-through USB work for Virtualbox in Linux. There's an excellent how-to here:

https://help.ubuntu.com/community/VirtualBox

Once you've got VirtualBox installed and the USB configured, you need to create a virtual machine in VB. You'll need about 3GB of a virtual hard drive to do a basic WinXP install. If you have an old copy of Win98, I think you could get it to work as well, but I had an unused XP license. I'm not going into too much detail on how to set up a VM with VirtualBox, but there's plenty of how-to's around.

Once you've gotten Windows installed in the VM, fire it up. You'll want to install the VirtualBox Guest Addons to make the VM easier to use. Once you've done that, install HP Tuners like you normally would. Keep the CD handy... you'll need the Windows drivers for the MVPI as well.

You will need to install .net on the VM, you might have to download 2.0 from Microsoft.

Once you fire up the VM, and open HP Tuners (scanner or Editor) you will need to right-click the USB icon at the bottom, and enable the HPTuners interface... which makes it visible to the VM. It will detect it, and ask for the Windows drivers for the MVPI. Once that's done, bang! You're tuning, baby!

As you can see here, I've successfully connected it, and it's pulled my MVPI's serial number. WIN!
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-13-2009, 11:46 AM   #5
Newbie
 
Join Date: Nov 2005
Posts: 4
tazman34685 is on a distinguished road
Great Work

So is there any lag time when the HP Tuner is connect to the ODBII Port. I would like too for go dealing with windows as the carpc's OS but I'm thinking about using a older laptop as the carpc which may not be powerful to handle everything that I'll be throw at it. Are you using a STD laptop/pc with a monitor or a LCD touch screen? But job well done, if I go with ubuntu I will use your project as a starting point
tazman34685 is offline   Reply With Quote
Old 01-13-2009, 03:03 PM   #6
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Thanks, Tazman. I haven't actually measured the lag yet, I'll do that tonight if I can.

Older laptops may not be able to go this route, as it takes a decent amount of RAM to run two full OS's at the same time. However, I only did this because my OBDII scan/program tool isn't natively supported by Linux, and the software doesn't work under Wine. With a regular OBDII tool, there are plenty of options that are Linux-friendly. You might be able to use a slimmed down distro, like Xubuntu to work on older hardware.

My car computer is custom built out of low-power desktop hardware. I'm currently just using a regular 15" LCD screen and a bluetooth keyboard with lots of media buttons.

Since I'm going to connect it all up tonight, I'll snap a few pics of it, maybe do a quick video of the software and desktop in action. Here's a picture of the actual computer. The case was scratch-built out of an old desktop Oscilloscope I found in the trash. I'm going to run it off of a 400W inverter in the trunk, where my battery is.




Kev000, I haven't had time to compile nGhost on the new desktop yet, been spending all my time getting this to work... I'll give it another shot on the new system when I get the time. I got the precompiled .debs to install, but videos didn't work, and a few other oddities. I'll give it a fair shakedown soon, maybe a video review and make a skin or two.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-13-2009, 09:08 PM   #7
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Update: 400W inverter was overkill, but I'm glad I got it. Works like a charm.

Also, the graphics on the scanning software in the VM are horribly slow and choppy... I think this has to do with the on-board video the board is using. I'm going to put a real video card in it (glad I still got the 400W inv.) and give it another shot. If/when it works, I will post up some video.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-13-2009, 10:44 PM   #8
licensed to kill
 
kev000's Avatar
 
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,039
kev000 will become famous soon enough
Wow! Your system looks amazing!

Quote:
Kev000, I haven't had time to compile nGhost on the new desktop yet, been spending all my time getting this to work... I'll give it another shot on the new system when I get the time. I got the precompiled .debs to install, but videos didn't work, and a few other oddities. I'll give it a fair shakedown soon, maybe a video review and make a skin or two.

I thought video was fixed in 2.0.2, but that was a while ago and I don't remember. It should work now. I have debs for the latest 2.1 alpha in the "testing" repository. If you want, ncarinfo (nghost's obd-II UI) needs some testing in a real life car .

Code:
for ubuntu 8.04 and prior: deb http://nghost-project.com/nghost/downloads linuxice main unstable testing for ubuntu 8.10 and later (contains the most up to date binaries at this point): deb http://nghost-project.com/nghost/downloads linuxice2 main unstable testing

__________________
LinuxICE - because my car already has enough windows (and because I like speed).
LinuxICE2 beta2 is released!!! get it now!
Follow OpenICE development
kev000 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 01-15-2009, 08:22 AM   #9
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Thanks, Kev. I really do want to support what you're doing, I'll give it another try now that I've got the system pretty much where I want it.

For those who were wondering, I put a Geforce MX4000 (super-cheap video card) in the machine, and it helped a TON! The scanning is now much faster, and only when I pull open huge amounts of charts and gauges does it start to get choppy.

I'll do a full feature on the machine once it's done, I've still got a few tweaks to do, but for the most part, it's finished. I'm using Ubuntu 8.10, I tried the Ubuntu Mobile package but didn't like the way it changed all the system settings... it's kind of an all-or-nothing deal. Also I have Roadnav installed, looking to get a cheap GPS unit to use with it. As for media playing, I really like Amarok, but I'll use whatever works with nGhost if that's the route I go.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-15-2009, 10:35 PM   #10
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
I did manage to get the latest HP Tuners installed, and working under wine... I installed .net 2.0 (and ONLY .net 2.0), then installed msiexec and the latest VCMSuite.msi. It does work, though it's extremely choppy. Two steps forward, four steps back...

Good news, I installed a cheap video card, and now running HPT in a virtual machine works flawlessly... it's smooth, no problems. It only slows down a bit when you've got 20+ gauges and the chart running at the same time.

I'm excited that I got it to run at all, honestly. I will still play with it a bit, but it's 100% functional if you've got a relatively new computer running Linux with VirtualBox.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 01-16-2009, 09:13 PM   #11
licensed to kill
 
kev000's Avatar
 
Join Date: Aug 2006
Location: Deep in the Rockies... coding in caves
Posts: 1,039
kev000 will become famous soon enough
is HPT a .NET app? I wonder if it would run native using MONO... It supposedly has really good .NET 2.0 support. It may be worth a try...
__________________
LinuxICE - because my car already has enough windows (and because I like speed).
LinuxICE2 beta2 is released!!! get it now!
Follow OpenICE development
kev000 is offline   Reply With Quote
Old 01-16-2009, 10:52 PM   #12
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
I did get it installed using wine, took a little figuring out, but I got it to run.

I couldn't, however, get the program to recognize the interface directly in Linux, even though the drivers work well enough to pass through to the VM...

However, after slimming down the VM install (removing unneeded services, etc.) and installing Blackbox4Windows on it, bumped the VM's memory to 512MB, it boots quickly and runs smoothly. So this is the solution I'm going to go with... I'd rather it work smoothly and deal with the VM.

On a side note, I'm playing with desktop features in Gnome, until I get the time to compile nGhost to try. Compiz is fun, though I wish I had a touchscreen to use the "Expo" feature with. Very iPhone-like. The factory I work at uses 19" touchscreen LCD's in every work cell... imagine the demos I could do with one of those in a car!

Anyway, now that I've got the tuning software working correctly, I can focus on shaping the Linux desktop to do what I want.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 04-24-2009, 10:34 AM   #13
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Quick update: I'm going to try to get this working in Wine again, I now have a Dell Inspiron 9" Mini running Ubuntu 8.10 to test with. I'm going to try to get the virtual COM port drivers to work, and hopefully that will let me access the interface box directly in Linux. We'll see. If/when I get it working, I'll post up instructions. I think this has more to do with Wine not supporting the native .dll, so I'm going to try it as a serial port... we'll see.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman is offline   Reply With Quote
Old 04-27-2009, 01:21 AM   #14
Newbie
 
Join Date: Jan 2009
Posts: 40
unsungboxer is an unknown quantity at this point
let me know if you get this to work in WINE. I am trying to use Evoscan in WINE, but of course it wont for 2 reasons:

1. No dotnetfx 3.5 support.
2. No USB support.

I too have done what you did, which is run WinXP in VirtualBox. This works ok, except I have to wait for 2 OS's to load instead of just Linux. A Temporary solution is running TinyXP in VirtualBox. It has a 20sec boot time which is far more tolerable.

At any rate, I would be much happier running Evoscan in Wine. Keep us updated on your progress.
unsungboxer is offline   Reply With Quote
Old 04-27-2009, 11:39 AM   #15
Newbie
 
FunkyStickman's Avatar
 
Join Date: Jun 2008
Location: South Louisiana
Posts: 45
FunkyStickman is an unknown quantity at this point
Quote: Originally Posted by unsungboxer View Post
let me know if you get this to work in WINE. I am trying to use Evoscan in WINE, but of course it wont for 2 reasons:

1. No dotnetfx 3.5 support.
2. No USB support.

I too have done what you did, which is run WinXP in VirtualBox. This works ok, except I have to wait for 2 OS's to load instead of just Linux. A Temporary solution is running TinyXP in VirtualBox. It has a 20sec boot time which is far more tolerable.

At any rate, I would be much happier running Evoscan in Wine. Keep us updated on your progress.

Thanks, I'm going to try a newer patched (development) version of Wine that has rudimentary USB support. From the instructions, you have to manually add the USB device entries in the registry, but if it works I'll be happy! It was originally developed to use USB software security dongles, but the basics should apply.

Trust me, if/when I get this working, I will post it everywhere!

I'm not sure about .NET 3.5 They may get it working, but it was recently released, so there's no telling.
__________________
FunkyStickman on Youtube
PoshBoxMods.com (my computer blog)
FunkyStickman 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 On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Volume control does not work with USB soundcard (Turtle Beach Audio Advantage Micro) nobb CF Bug Reports 0 12-01-2008 05:48 PM
QUESTION about M2-160WATT AND X-TREME CARPC kostas_lion Power Supplies 3 05-15-2008 10:50 AM
Modular Shutdown Controller with USB Interface evandude Power Supplies 11 02-19-2007 12:57 PM
Problem with ITPS / hibernation and External USB HD veetid Power Supplies 5 01-02-2006 09:35 PM
are usb 2.0 devices able to work with usb 1.1 hubs? chris in nh General Hardware Discussion 9 06-28-2004 08:27 PM



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


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