The MP3car.com Store The MP3car.com Store    

Sponsored links

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

Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2005, 04:34 AM   #1
Low Bitrate
 
Join Date: Aug 2004
Posts: 98
OBD2 PIC code.

Hi,

Besides the car tuner I have another self therapy which is building OBD2 interfaces
I have a straight one (what goes in comes out) which I use for uploading SW on my car. This works ok.
But my problem starts with my other interface based on a PIC and looks like a diet version of the one from http://www.obddiagnostics.com/.
Now my confusion is all about the initialization with the ECU. Using the uploading SW it starts with pulling the K-line to ground and waits for reply.
But if I read the ISO-9141 and other documentation I see that you first need to send a 0x33 and wait for response. So here I'm a bit confused. Second is the speed, 0x33 at 5 baud and then switch to 10400 baud, how is this done best with the PIC. The 0x33 on 5 baud is not a problem but the 10400 is a question mark. So does anyone have an idea or an example code maybe for the pic...
thx rogier
__________________
Professionals built the Titanic, an amateur built the Ark.

Last edited by racemier; 02-06-2005 at 04:58 AM.
racemier is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-06-2005, 11:32 AM   #2
FLAC
 
Chairboy's Avatar
 
Join Date: Jan 2004
Posts: 1,379
It's variable speed in the initialization? I assumed it was 4800bps constant.
__________________
Chrysler 300 - Fabricating
http://hallert.net/
Chairboy is offline   Reply With Quote
Old 02-06-2005, 11:36 AM   #3
MySQL Error
 
jcdillin's Avatar
 
Join Date: May 2003
Location: Miami, FL
Posts: 4,347
no he is correct, it's 5 then 10400
__________________
肚子笑痛了
S60 Install
jcdillin is offline   Reply With Quote
Old 02-06-2005, 12:10 PM   #4
MySQL Error
 
jcdillin's Avatar
 
Join Date: May 2003
Location: Miami, FL
Posts: 4,347
I thought I had some example code hanging around here somewhere, but this and this might help you get started. PM if you have any questions.
__________________
肚子笑痛了
S60 Install
jcdillin 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
Some Windows XP WMI Wireless Code Zharvek Software & Software Development 0 01-16-2005 07:53 AM
GPS/MapPoint VB Source Code stevieg Software & Software Development 4 06-08-2004 02:24 PM
PIC programming how to MatrixPC General MP3Car Discussion 6 12-23-2003 02:13 PM
Can someone write me a PIC program 4 a awesome s/down controller please? gizmos General Hardware Discussion 3 07-17-2000 12:43 PM
LCD and pic programs cyber_mage Software & Software Development 1 03-15-2000 08:32 PM


All times are GMT -5. The time now is 02:21 PM.


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