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 11-30-2006, 04:23 PM   #1
Newbie
 
Join Date: Nov 2006
Posts: 2
My Photos: (0)
Ford J1850 PWM

I am trying to build my own OBD-II reader using a PIC. So far I am able to connect to ISO9141-2 and J1850 VPW but am having some trouble with J1850 PWM.

When I send the J1850 PWM message, I cannot get an answer. I have put a scope on Pin 2 and Pin 10 and see the message go out and also a 1 byte IFR being returned from the vehicle approx. 40 us after my message. But no other message is returned from the vehicle.

For example, I transmit 0x61 0x6a 0xf1 0x01 0x00 0x0a which is supposed to read the supported PIDs of the vehicle. All I get back is a 1 byte IFR of 0x1f.

Does anybody know if I am supposed to transmit again after the 1 byte IFR or am I doing something else wrong?

So far, I am using only information that I have found on the internet, such as obddiagnostics.com

Thanks for your help.
plisskin is offline   Reply With Quote
Sponsored Links
Old 12-01-2006, 08:09 AM   #2
Newbie
 
Join Date: Nov 2006
Posts: 2
My Photos: (0)
Arrgh, it was my own damn fault. Now I am able to read the response...
plisskin is offline   Reply With Quote
Old 12-09-2006, 03:37 PM   #3
Newbie
 
Join Date: Nov 2006
Posts: 9
My Photos: (0)
Check out the code here http://www.sterntech.com/obdii_pic.php it has complete source code and schematics for a PIC based OBDII scanner.

Trampas
www.sterntech.com
Trampas is offline   Reply With Quote
Old 12-17-2006, 09:05 AM   #4
Newbie
 
Join Date: Dec 2006
Posts: 1
My Photos: (0)
What went wrong.

Can you explain what it was that you did wrong?
JuanaBee is offline   Reply With Quote
Old 12-21-2006, 04:51 PM   #5
Newbie
 
Join Date: Dec 2006
Posts: 5
My Photos: (0)
Quote: Originally Posted by plisskin View Post
I am trying to build my own OBD-II reader using a PIC. So far I am able to connect to ISO9141-2 and J1850 VPW but am having some trouble with J1850 PWM.

When I send the J1850 PWM message, I cannot get an answer. I have put a scope on Pin 2 and Pin 10 and see the message go out and also a 1 byte IFR being returned from the vehicle approx. 40 us after my message. But no other message is returned from the vehicle.

For example, I transmit 0x61 0x6a 0xf1 0x01 0x00 0x0a which is supposed to read the supported PIDs of the vehicle. All I get back is a 1 byte IFR of 0x1f.

Does anybody know if I am supposed to transmit again after the 1 byte IFR or am I doing something else wrong?

So far, I am using only information that I have found on the internet, such as obddiagnostics.com

Thanks for your help.


What "pic" are you referring too? i would like you're knowledge on the j1850 protocol if you have any. are you willing to share you're knowledge? is the pic you're programming something you bought, or something you actually programmed to logg and send data? if you programmed it with assembly etc,, we would defently need to share knowledge.
obdiiMasterMind is offline   Reply With Quote
Old 12-28-2006, 08:09 AM   #6
Newbie
 
Join Date: Nov 2006
Posts: 9
My Photos: (0)
PWM protocol

I have just finished writting up a document about the PWM protocol, send me an email if you want a copy. I will be adding it to my website here soon, www.sterntech.com.

Also on my website you will find firmware for a PIC 18F87xx which implements J1850.

Trampas
Trampas is offline   Reply With Quote
Old 07-11-2007, 06:07 AM   #7
Newbie
 
Join Date: Jul 2007
Posts: 2
My Photos: (0)
Quote: Originally Posted by plisskin View Post
Arrgh, it was my own damn fault. Now I am able to read the response...

Hi

Could you please explain, how did you fix the problem.
I'm having the same problem with OKI MSM6636. After sending 0x61 0x6A 0xF1 0x01 0x00 the response is only 1 byte long, the value inside received register (at location 0x15) is 0x10.

Any direction will be helpful
manix is offline   Reply With Quote
Old 07-13-2007, 04:27 AM   #8
Newbie
 
Join Date: Jul 2007
Posts: 2
My Photos: (0)
Quote: Originally Posted by manix View Post
Hi

Could you please explain, how did you fix the problem.
I'm having the same problem with OKI MSM6636. After sending 0x61 0x6A 0xF1 0x01 0x00 the response is only 1 byte long, the value inside received register (at location 0x15) is 0x10.

Any direction will be helpful

.. answer to myself

Problem fixed. There was a problem with interrupt handling time-gap. The host CPU periphery was set too slow; so OKI and SPI interaction also. The answer from the ECU was missed and the next IFR was read instead of the previous received answer.
manix 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
2004 Ford F350 CarPC takissd Show off your project 23 08-31-2007 09:14 PM
FS Ford OEM stereo AUX input connector unit Davefocus Classified Archive 2 08-17-2006 02:49 AM
Question...Jaguar, Daimler, Ford... RoyN Off Topic 13 12-30-2005 04:25 PM
PWM j1850 response 0x10 Juan Wortley Engine Management, OBD-II, Engine Diagnostics, etc. 0 11-04-2005 02:56 PM
StevieG's Ford Focus Car PC stevieg Show off your project 78 08-19-2005 10:13 AM


All times are GMT -5. The time now is 10:10 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