The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Engine Management, OBD-II, Engine Diagnostics, etc.

Reply
 
Thread Tools Display Modes
Old 08-25-2007, 01:55 PM   #1
Newbie
 
Join Date: Aug 2007
Location: Detroit, MI
Posts: 26
My Photos: (0)
An easier way to write software that interacts with your vehicle

If you are writing software to interact with your car (e.g. read OBD data, read non-OBD data, actuate devices on your car, etc.), then you know the complexity involved in dealing with the idiosyncracies of various vehicle connection hardware devices (e.g. J2534 devices, ELM, A2D devices, etc.) as well as the "message diversity" among vehicles.

If you would like to focus on the neat stuff your software can do with easy vehicle interaction, rather than spending time solving the messy infrastructure problems described above, then you might be interested in looking at the Cardix vehicle interaction programming model.

What does "vehicle interaction" mean? It means reading standard legislated OBD data, as well as sensing events and states such as door ajar, gear selection, seat occupants, wheel speed, steering wheel angle, etc. It also means actuating things like door locks, windows, entertainment & HVAC controls, side-view mirrors, etc.

Here's how easy is it to get OBD data with Cardix on any consumer vehicle with any supported vehicle connection device:

public void method()
{
ICardix iVehicle = null;
IVehicleOBD iobd = null;

iVehicle = CardixLoader.LoadCardix();
iVehicle.InitializeAndConnect(null);
iobd = iVehicle.VehicleInterface as IVehicleOBD;
iobd.OnOBDPowertrainDataReceived += new OBDPowertrainDataReceived(handlePTData);

iobd.RequestPowertrainData(new OBD_SVCID_01_02_ParameterID[] { OBD_SVCID_01_02_ParameterID.EngineRPM });

}

...

// This method handles incoming OBD data from the vehicle
private void handlePTData(byte sourceECU, OBD_SVCID_01_02_ParameterID pid, object data, ulong timestamp)
{
Trace.WriteLine("From ECU=0x" + sourceECU.ToString("x2") + " with timestamp=" + timestamp.ToString() + ": PID=" + pid.ToString() + ", data=" + data.ToString());

} // end-method

...

// And to do something such as unlock the doors, you would do this:

IConvenience iconv = null;
iconv = iVehicle.VehicleInterface as IConvenience;

iconv.Actuate_DoorLock(IVSDoorID.FrontLeft, false);


================================================== ========

For more information and an evaluation download, go to http://ipsecosTelematics.dnsalias.net/cardix
Carlocutor is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestion for the Software forum Confused Suggestions/Comments 11 11-02-2004 07:55 AM
Speedometer software muldrick Software & Software Development 8 08-24-2004 10:04 AM
Software solution for gLCD-based car-mp3 Novgorod Software & Software Development 1 07-01-2004 07:59 PM
myHTPC Software the_new_guy Software & Software Development 1 06-05-2004 03:51 PM
My numpad controlled custom MP3Car software - need your opinions PorscheMP3 Software & Software Development 7 04-11-2002 10:30 AM


All times are GMT -5. The time now is 03:53 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics