PCM Diagnostics & Tuning HP Tuners | Holley | Diablo

Protocol guru's--question re: 11-bit and 29-bit CAN identifier?

Thread Tools
 
Search this Thread
 
Old Sep 28, 2009 | 01:08 PM
  #1  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default Protocol guru's--question re: 11-bit and 29-bit CAN identifier?

So I've got most of my implementation of the J1979 standard working over a J1850 connection. I can successfully talk to my LT1 car, a few Toyotas, and a Hyundai Accent. However, I'm a bit confused about how to get it working with CAN. According to J1979 Section 6, many of the basic principles behind sending a J1979 command over J1850 should translate over to communicating with CAN.

The main thing that has me confused is how to properly set up the CAN header to talk to a car's PCM/ECM/ECU. According to what I've read online, the 11-bit or 29-bit message identifier is supposed to be used as a message priority indicator. Lower numbers mean higher priority.

First question: Is it correct that the ID simply indicates the priority of the message?

Second question: What message ID should I use when I'm sending diagnostic messages to the car? I'm guessing that it's a bad idea to just "pick one".

Thanks!
Reply
Old Sep 28, 2009 | 03:32 PM
  #2  
Dan Stewart's Avatar
TECH Enthusiast
 
Joined: Aug 2006
Posts: 502
Likes: 1
Default

Unfortunately, it appears you've set your system up solely for J1850 VPW at 10.4kbaud and UART. You'll need to modify the com settings to utilize ISO 15765 to communicate properly.

J1979 has nothing to do with CAN (ISO 15765) or Serial (J1850) protocol communication, but instead, how diagnostic test modes are commanded. Both CAN and serial use J1979, but with totally different com protocols.

See ISO 15765 on how to setup your comms with CAN.

And to answer your question, 11 bit identifier is CAN base frame. 29 bit identifier is CAN extended. Don't forget your "start of frame" bit which preceeds the identifier.

The IDE bit is the bit that determines dominance.

Last edited by Dan Stewart; Sep 28, 2009 at 03:38 PM.
Reply
Old Sep 28, 2009 | 07:58 PM
  #3  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Originally Posted by Dan Stewart
Unfortunately, it appears you've set your system up solely for J1850 VPW at 10.4kbaud and UART. You'll need to modify the com settings to utilize ISO 15765 to communicate properly.

J1979 has nothing to do with CAN (ISO 15765) or Serial (J1850) protocol communication, but instead, how diagnostic test modes are commanded. Both CAN and serial use J1979, but with totally different com protocols.
Agreed. I left out an important detail--I'm communicating with the car through a B&B Electronics LDV6U. It handles the transport layer issues such as bit rates and timing, so all I have to do is set it to a specific mode and then tell it what packets to push down the pipe.

After some searching online I found a few tables from ISO 15765 that should address my questions. I'm going to run a few tests tonight and tomorrow, then I'll post up my findings.
Reply
Old Sep 30, 2009 | 10:06 PM
  #4  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Also, another question--does anybody have any examples of calculating the CAN CRC-15 value that's put at the end of the packet? I've reviewed some of the pseudo code online, but I have no idea if I'm doing the math correctly. I think it would be way faster to look at some examples than trial and error waiting for the car to respond to an incoming message...

Thanks guys!
Reply
Old Dec 1, 2009 | 05:39 PM
  #5  
trax's Avatar
Thread Starter
Launching!
iTrader: (2)
 
Joined: Jan 2003
Posts: 265
Likes: 0
From: Downtown Chicago
Default

Another CAN question -- on a lot of forums I hear people talk about using J2190 to get additional diagnostic data from the vehicle. For example, seee here.

My 2004 CTS appears to be CAN-only (at least that's what my B&B LDV6U reports). At least in my copy of J2190, it makes it sound like a J2190 message can only be sent over a J1850 connection. I imagine that if J2190 isn't available over CAN, then there's probably some other way to get the extended PID's from the vehicle.

Any hints?

Thanks guys!
Reply




All times are GMT -5. The time now is 06:19 AM.

story-0
Topdon ONE vs. Artidiag 800 BT2: Which is the Diagnostic Tablet For You?

Slideshow: We take a close look at the ONE and Artidiag 800BT2 diagnostic tools from Topdon and the reasons to buy one over the other.

By Pouria Savadkouei | 2026-05-28 11:05:11


VIEW MORE
story-1
Gas Monkey Built a 6-Wheel Ferrari Testarossa With a Corvette LT4 Engine

Slideshow: The controversial Ferrari F6 swaps its original flat-12 for a Corvette Z06-derived LT4 V8 and sends power to four rear wheels through a custom-built drivetrain.

By Verdad Gallardo | 2026-05-26 18:23:54


VIEW MORE
story-2
7 Most Reliable High-Performance Engines GM Has Ever Built

Slideshow:These GM engines didn't just make huge power, they survived abuse, boost, track days, and six-digit mileage with a reputation for refusing to quit.

By Verdad Gallardo | 2026-05-21 16:45:27


VIEW MORE
story-3
Amazing '71 Camaro Restomod Is Modern Muscle Car Under the Skin

Slideshow: This heavily modified 1971 Camaro mixes classic muscle car styling with a fifth-generation Camaro interior and modern LS3 power.

By Verdad Gallardo | 2026-05-12 18:06:42


VIEW MORE
story-4
6 Common C5 Corvette Failures and What's Involved In Repairing Them

Slideshow: From wobbling harmonic balancers to failed EBCMs, these are the issues that define long-term C5 ownership and what repairs typically involve.

By Pouria Savadkouei | 2026-05-07 18:44:57


VIEW MORE
story-5
Retro Modern Bandit Pontiac Trans AM Comes With Burt Reynolds' Autograph

Slideshow: A modern Camaro transformed into a retro icon, this limited-run "Bandit" build blends nostalgia with brute force in a way few revivals manage.

By Verdad Gallardo | 2026-04-21 13:57:02


VIEW MORE
story-6
Top 10 Greatest Cadillac V Series Performance Models Ever, Ranked

Slideshow: Cadillac didn't just crash the high-performance luxury vehicle party, it showed up loud, supercharged, and occasionally a little unhinged...

By Pouria Savadkouei | 2026-04-16 10:05:15


VIEW MORE
story-7
Top 10 Most Powerful Chevy Trucks Ever Made!

Slideshow: Top ten most powerful Chevy trucks ever made

By | 2026-03-25 09:22:26


VIEW MORE
story-8
Hennessey's New Supercharged Silverado ZR2 Has 700 HP

Slideshow: Hennessey has turned the Silverado ZR2 into a 700-hp off-road monster with supercharged V8 power and a limited production run.

By Verdad Gallardo | 2026-03-24 18:57:52


VIEW MORE
story-9
Coachbuilt N2A Anteros Is an LS2-Powered C6 Corvette In Italian Clothes

Slideshow: A one-off sports car that looks like a vintage Italian exotic-but hides a C6 Corvette underneath-just sold for the price of a new mid-engine Corvette.

By Verdad Gallardo | 2026-03-23 18:53:41


VIEW MORE