Whats the difference between OBDII and CAN

Whats the difference between OBDII and CAN


I will start here as people with little or no IT or electronics knowledge should be able to understand this as well:
What is CAN (controller area network)?
What are the differences between an OBD-II protocol and a CAN setup?`
How do I use an OBD-II scanner on a vehicle with CAN?

lets do some introduction on bus systems first

Bus Systems

In electronic systems signals are sent from one chip to another using wires (lets forget about wireless things for a second). The simplest way of doing so is to use one wire per bit of information you like to transmit. One bit of information is simply an answer to a yes/no question like "Are the headlights on?" If the headlights are on, there is a voltage on that wire, say 5 volts. If they are off there are 0 volts on the wire.
Now thats fine for one bit of information. But more data requires more wires. Unfortunately: More wires means more complexity. A modern car is just a computer with tires on it, so there are a lot of wires (serveral km or miles) in it. More wires result in more weight and more costs and car manufacturers dont like that. So we need a way to reduce the amount of wires.
The usual way of doing so is to use a bus system.

What is a bus system?

Think of a bus as a way to transmit more information using fewer wires. There are other benefits of bus systems, but I will focus on this aspect.
Example:
We want to switch four lamps on or off.

Without bus system:

  • Lamp 1: +5 V on Wire1 = Lamp is on; 0 V on Wire1 = Lamp is off
  • Lamp 2: +5 V on Wire2 = Lamp is on; 0 V on Wire2 = Lamp is off
  • Lamp 3: ...
  • Lamp 4: ...
Its easy to see; we need one wire per lamp.

With a bus system:

  • Lamp 1: +1 V on Wire1 (Selector), 0 or +5 V on Wire2 for on and off (switch)
  • Lamp 2: +2 V on Wire1 (Selector), 0 or +5 V on Wire2 for on and off (switch)
  • Lamp 3: +3 V on Wire1 (Selector), 0 or +5 V on Wire2 for on and off (switch)
  • Lamp 4: +4 V on Wire1 (Selector), 0 or +5 V on Wire2 for on and off (switch)
With this primitive kind of bus system we reduced the amount of wires to two. Regardless of the number of lamps we like to control, we only need one wire to tell the other chip which lamp we like to switch and a second wire to tell it wether we like to have the lamp on or off. My example would have limits in the real world as one cant simply raise the voltage to 1000 V on Wire 1 to switch a thousand different lamps.
This example shows, why in electronics in general and in cars in particular bus systems are being used. Cars use a number of bus systems that were made especially for them:
  • CAN
  • LIN
  • MOST
  • FlexRay
  • K-Line
What is CAN (controller area network)?
CAN is the most important bus system in a car. I wont go into detail on this point, just think of it as a way to transfer big amounts of data using only two wires. You can read more about CAN on Wikipedia.

OBD-II

What are the difference between an OBD-II protocol and a CAN setup?
OBD-II is a higher-level protocol used for diagnostic purposes. OBD-II can use one of (many) different bus systems to transfer diagnostic data from and to your car. Think of OBD-II as a language (English) that you speak and of CAN as the communication device (telephone) you use to talk to someone (about your car and its state of health ;).
Many people are referring to OBD (short for on-board diagnosis) or OBD-II as "standards". OBD-II is a standard, but it again consists of so many different standards, protocols and bus systems used to communicate that its difficult to list all of them. I once made an overview graphic, and I will see if I can add that to my answer later.
How to use OBD-II scanner on a vehicle with CAN? 
Just plug it into the OBD-II port of your car. CAN is one of the transport protocols of the OBD-II specification and should be supported by most OBD-II scan tools. The location of the port can be found using a Google (image) search. Usually the port is located in reach of the driver, e.g. under the dashboard or hidden in the center console.


Scan tool diagnostic & programming for OBD2 & CAN-bus
This guide will provide you with some much coveted information for the high end vehicle technician.  You can find a lot of this stuff on line, I have just attempted to put it together in a more comprehensive manor for a tech to be able to reference.  A lot of folks use scan tools, programmers and lots of other devices that propose to read modules, program modules and activate items for diagnostic purposes.  What always amazes me is how little most folks know about the most basic aspects of this very common practice (scan tool use).
It is crucial to know the PIN MAPPING on the Data Link Connector (DLC) to be able to identify the type of network your car has.  Knowing what kind of network your car has is extremely important as different networks have unique qualities.  When you hook your scan tool up to a DLC and it wont communicate with the car, what do you do next?  Here is where I see more young techs get totally lost because they cant use the scan tool.  Most techs today are nothing without a scan tool.  If you happen to be working on a crash vehicle, a stolen recovery, or flood vehicle, you had get a grip on how to map and test network integrity or your going to spend a lot of time scratching your head.
You will discover that once you know how a network works, you will than be able to have more latitude in dealing with difficult problems associated with communications breakdowns and network failures. knowing what kind of network you have will also save you hours in diagnosing communications problems on cars if you now how to use them to your advantage.  This is not rocket science!  ANYONE CAN DO THIS!   
The DATA LINK CONNECTOR (DLC):
What is a DLC?  The DLC is the port located usually somewhere below the steering wheel on all cars sold in the United States after 1995.  Even most OBD 1 vehicles MADE in the USA before 95 had a DLC connector located under the steering wheel, but a lot of Asian and European manufactures put them all over the place, if they used one at all!  Some automobiles, like my buddies 95 Corolla has no dedicated DLC, but rather a diagnostic port under the hood that allows the user to put jumpers in it to get the check engine light to flash codes.  Sure, that sounds pretty stone age, but even GM, Ford and Chrysler had a similar method back in the 80s and 90s.
Some other nomenclature:
You will often hear the word "BUS" used when talking about networks on cars.  A network BUS is nothing more than a common communication trunk or main line that allows information to be transferred in mass numbers to multiple modules.  If you hear the word CAN BUS, dont panic!  Its just a reference to a main network communications cable that is used to transfer data and information among several controllers. Furthermore, when we speak of "gateways" on automobiles, we are simply talking about modules or devices that accept communications from multiple controllers that all operate on the same protocol (or voltage signal).  Sometimes a gateway is just a simple CAN BUS and some other times, its actually a common module that serves to link all the other modules together into one central module.
Finally, here in the United States, the Society Of Automotive Engineers (SAE) designates the protocol names where in Europe, the International Organization for Standardization (ISO) classifies network protocols.  Like the SAE, ISO classifies many entities related to automotive items, but unlike SAE, ISO classifies thousands of other things for standardization.  Look for ISO to edge SAE out of the automobile standards business as Europe and Asian countries take a bigger chunk of the worldwide market away from the faltering American automotive industry worldwide.
THE DLC is JUST THE BEGINNING!
The Data Link Connector has a number of functions.  What functions can is serve other than a place to put the plug on your scan tool on?  For starters, at a glance, it can tell the tech in a quick second exactly what protocol the vehicle communications are build on by simply looking at what cavaties have PINS installed in them.  By doing this, when you have vehicles that have communications problems, you can quickly adopt a mindset as to how you will tackle the diagnostics involved.
First of all, the DLC for OBD 2 and CAN has been the stuff of controversy for a long time.  The evolution of the DLC for OBD 2 has caused some manufactures to show the level of intelligence and just how willing they would be to cut corners, resist US requirements to be uniform, and just plain old laziness on behalf of the manufactures at times.  Take for instance the 95 Ford F-150.  I work on a lot of these and for 95 may find a OBD 2 16 pin DLC under the dashboard that does absolutely NOTHING!  You strip back the harness to find that the wires do not connect to anything.  You go under the hood and the OBD I (EEC IV) connector is active and what you need to use to access the network of modules.  Than you go work on an old Porsche or a DSM (Diamond Star) car, and you will find an active OBD 2 16 pin DLC, but you will also find, right next to it, another plug that has pins with all the REAL good information going to it!  You go to your OEM Scan tool (DRB 3) and hook up your OBD 2 cable only to find out that you will need a different cable that has a double headed configuration. Nissan was pretty good for doing this kind of thing as well.
The bad news is that a lot of generic scan tools only give you the OBD 2 plug to access the PCM in these cars, but than restrict your access to ONLY that which the OBD 2 plug provides, none of the "good stuff" that the OEM plug reports. Now you COULD go buy an aftermarket scan tool that gives you all the plugs for all the popular cars from Asia, US and Europe, than you end up with about a million plugs, connectors and adapters that you will seldom if ever use. Conversely, you could also go out and buy the OEM scan tools but than you end up with about fifty scanners worth a half a million dollars!  Before you say "Oh come on! your exaggerating,"  consider this!  Chrysler started out back in the 80s telling their technicians to simply use ignition key cycling to get codes to flash through the MIL light.  Than they came out with the DRB 1 for OBD 1 and early OBD 2 cars.  Than they came out with the DRB 3 for OBD 2 cars, than the StarScan for CAN cars, than upgraded to StarMobile pass thru because the StarScan didnt have enough capacity, and now we have the WiTech Pod.  As if each one of these scan tools and programers were not enough to buy, than you had, literally, HUNDREDS of cables, attachments, and fittings for each one of them that cost a fortune!  Add to that the software cartridges, system updates, and access to online resources like TechAuthority that you need to utilize the devices to their full potential. What you are left with is a lot of cables, cartridges, discs, and a HUGE price tag at the end of the road.
link download