Reply by redwire85 January 2, 20092009-01-02
Hi,
You must be my twin. I am doing the same thing right now. :)
The only "open" spec for the CAN bus is this:
http://www.semiconductors.bosch.de/pdf/can2spec.pdf

>From there, you can decipher the bits in the frame but not the meaning
behind the content...unless it's OBD-II.
The Wikipedia page is fairly comprehensive about the OBD-II CAN
frames. You will NOT find published CAN data frame information as
this is proprietary to the manufacturer. There are some other forums
out there that hint at what's going on but no one is going to tell you
what messages are sent between the headlight controller and the main
ECU. :) (An example...)

With the Bosch spec and your filtering set up correctly you should be
able to read in the OBD-II data frames. You might have to learn how
to issue a request for data in order to receive a response. I would
suggest buying a "T" cable and an OBD-II scanner with CAN. Let your
board sit back and listen and learn with the scanner doing the
messaging. Once you see what's going on you can then write your own
routines to make your own scanner.

HTH
--- In l..., Jean-Sebastien Stoezel
wrote:
>
> Hi,
>
> I understand the OBD adapters come in different flavours. I'm
> interested in OBD2, supporting CAN bus, which is mandatory on al cars
> built after 2008. I built an LPC2368-based datalogger and I want to
> decipher the CAN bus frames I am receiving.
> On 30-Dec-08, at 9:48 PM, Robert Adsett wrote:
>
> > Jean-Sebastien Stoezel wrote:
> > > Thanks for your quick answer from both of you guys. I'm getting
> > > confused now... Is ISO 11898 simply the CAN bus specification??
> >
> > 11898-1 appears to be the CAN protocol
> > 11898-2,-4 and -5 are physical layers (the electrical and wire
> > connections), CAN supports quite a variety.
> > 11898-3 is a higher level protocol (usually referred to as a HLP) that
> > builds on the CAN protocol, just as http builds on TCP/IP .
> >
> > > I'm
> > > looking for information regarding CAN message format specifically
> > used
> > > by ECUs and OBD2. I though this was covered by ISO 11898, but
> > based on
> > > the links you've posted, it looks like ISO 11898 is simply the CAN
> > bus
> > > specification...
> > >
> > > What's the specification for OBD2 using CAN bus? (mandatory in all
> > > vehicles since 2008).
> >
> > I don't think it's as simple as a single protocol. There's a reason
> > the
> > ODB adapters come in different flavours.
> >
> > What are you trying to do? If you just want to read the data you are
> > probably better off getting a commercial adapter.
> >
> > Robert
> >
> >
>

An Engineer's Guide to the LPC2100 Series

Reply by Jean-Sebastien Stoezel December 31, 20082008-12-31
Yes that is the one of interest, I believe this is the one that
packetizes OBD packets into CAN packets.

Thanks!

On 31-Dec-08, at 2:44 PM, cabrioandi wrote:

>
> Hi,
>
> you should take a look on the ISO 15765-3 (Road vehicles - diagnostics
> on CAN, Part 3: Implementation of unified diagnostic services), maybe
> this will help you...
>
> Regards, Andreas
>
> --- In l..., Jean-Sebastien Stoezel
>
> wrote:
> >
> > This confirms I didn't specify the proper ISO number. I'm familiar
> > with CAN bus, in the past I've developed CAN bus drivers for the
> > aerospace industry and I use CAN bus in several of my designs (based
> > on LPC2xxx chips by the way). I would like to know what the high
> level
> > format of the CAN messages is. I had a brain cramp and though it was
> > ISO 11898 but it's not. Anyhow, don't want to divert this forum from
> > its original purpose, I though somebody would have a quick answer.
> >
> > Thanks,
> > Jean
> >
> > On 30-Dec-08, at 9:35 PM, cfbsoftware1 wrote:
> >
> > > --- In l..., Jean-Sebastien Stoezel
> > > js.stoezel@
> > > >
> > > > What's the specification for OBD2 using CAN bus? (mandatory in
> all
> > > > vehicles since 2008).
> > > >
> > >
> > > http://en.wikipedia.org/wiki/On-board_diagnostics#OBD-II
> > >
> > >
> > >
> >
> >
> >
> >
>

Reply by cabrioandi December 31, 20082008-12-31
Hi,

you should take a look on the ISO 15765-3 (Road vehicles - diagnostics
on CAN, Part 3: Implementation of unified diagnostic services), maybe
this will help you...

Regards, Andreas
--- In l..., Jean-Sebastien Stoezel
wrote:
>
> This confirms I didn't specify the proper ISO number. I'm familiar
> with CAN bus, in the past I've developed CAN bus drivers for the
> aerospace industry and I use CAN bus in several of my designs (based
> on LPC2xxx chips by the way). I would like to know what the high level
> format of the CAN messages is. I had a brain cramp and though it was
> ISO 11898 but it's not. Anyhow, don't want to divert this forum from
> its original purpose, I though somebody would have a quick answer.
>
> Thanks,
> Jean
>
> On 30-Dec-08, at 9:35 PM, cfbsoftware1 wrote:
>
> > --- In l..., Jean-Sebastien Stoezel
> > js.stoezel@
> > >
> > > What's the specification for OBD2 using CAN bus? (mandatory in all
> > > vehicles since 2008).
> > >
> >
> > http://en.wikipedia.org/wiki/On-board_diagnostics#OBD-II
> >
> >
> >
>

Reply by Jean-Sebastien Stoezel December 31, 20082008-12-31
This confirms I didn't specify the proper ISO number. I'm familiar
with CAN bus, in the past I've developed CAN bus drivers for the
aerospace industry and I use CAN bus in several of my designs (based
on LPC2xxx chips by the way). I would like to know what the high level
format of the CAN messages is. I had a brain cramp and though it was
ISO 11898 but it's not. Anyhow, don't want to divert this forum from
its original purpose, I though somebody would have a quick answer.

Thanks,
Jean

On 30-Dec-08, at 9:35 PM, cfbsoftware1 wrote:

> --- In l..., Jean-Sebastien Stoezel
>
> >
> > What's the specification for OBD2 using CAN bus? (mandatory in all
> > vehicles since 2008).
> > http://en.wikipedia.org/wiki/On-board_diagnostics#OBD-II
>


Reply by Jean-Sebastien Stoezel December 31, 20082008-12-31
Hi,

I understand the OBD adapters come in different flavours. I'm
interested in OBD2, supporting CAN bus, which is mandatory on al cars
built after 2008. I built an LPC2368-based datalogger and I want to
decipher the CAN bus frames I am receiving.
On 30-Dec-08, at 9:48 PM, Robert Adsett wrote:

> Jean-Sebastien Stoezel wrote:
> > Thanks for your quick answer from both of you guys. I'm getting
> > confused now... Is ISO 11898 simply the CAN bus specification??
>
> 11898-1 appears to be the CAN protocol
> 11898-2,-4 and -5 are physical layers (the electrical and wire
> connections), CAN supports quite a variety.
> 11898-3 is a higher level protocol (usually referred to as a HLP) that
> builds on the CAN protocol, just as http builds on TCP/IP .
>
> > I'm
> > looking for information regarding CAN message format specifically
> used
> > by ECUs and OBD2. I though this was covered by ISO 11898, but
> based on
> > the links you've posted, it looks like ISO 11898 is simply the CAN
> bus
> > specification...
> >
> > What's the specification for OBD2 using CAN bus? (mandatory in all
> > vehicles since 2008).
>
> I don't think it's as simple as a single protocol. There's a reason
> the
> ODB adapters come in different flavours.
>
> What are you trying to do? If you just want to read the data you are
> probably better off getting a commercial adapter.
>
> Robert


Reply by Robert Adsett December 30, 20082008-12-30
Jean-Sebastien Stoezel wrote:
> Thanks for your quick answer from both of you guys. I'm getting
> confused now... Is ISO 11898 simply the CAN bus specification??

11898-1 appears to be the CAN protocol
11898-2,-4 and -5 are physical layers (the electrical and wire
connections), CAN supports quite a variety.
11898-3 is a higher level protocol (usually referred to as a HLP) that
builds on the CAN protocol, just as http builds on TCP/IP .

> I'm
> looking for information regarding CAN message format specifically used
> by ECUs and OBD2. I though this was covered by ISO 11898, but based on
> the links you've posted, it looks like ISO 11898 is simply the CAN bus
> specification...
>
> What's the specification for OBD2 using CAN bus? (mandatory in all
> vehicles since 2008).

I don't think it's as simple as a single protocol. There's a reason the
ODB adapters come in different flavours.

What are you trying to do? If you just want to read the data you are
probably better off getting a commercial adapter.

Robert

Reply by cfbsoftware1 December 30, 20082008-12-30
--- In l..., Jean-Sebastien Stoezel What's the specification for OBD2 using CAN bus? (mandatory in all
> vehicles since 2008).
>

http://en.wikipedia.org/wiki/On-board_diagnostics#OBD-II

Reply by Jean-Sebastien Stoezel December 30, 20082008-12-30
Thanks for your quick answer from both of you guys. I'm getting
confused now... Is ISO 11898 simply the CAN bus specification?? I'm
looking for information regarding CAN message format specifically used
by ECUs and OBD2. I though this was covered by ISO 11898, but based on
the links you've posted, it looks like ISO 11898 is simply the CAN bus
specification...

What's the specification for OBD2 using CAN bus? (mandatory in all
vehicles since 2008).

Thanks,
Jean

On 30-Dec-08, at 7:49 PM, cfbsoftware1 wrote:

> --- In l..., Jean-Sebastien Stoezel
>
> wrote:
> >
> > I would be
> > interested in getting an overview of what all this does. Information
> > on the web regarding these specs is quite thin... Would any of you
> be
> > wiling to either post interesting links, or share his/her knowledge?
> > http://en.wikipedia.org/wiki/Controller%E2%80%93area_network
>
> As always with Wikipedia don't believe everything you read. However,
> if
> you don't believe it you can always change it ;-)
>
> Chris Burrows
> Armaide: ARM Oberon-07 Development System for Windows
> http://www.armaide.com
>


Reply by cfbsoftware1 December 30, 20082008-12-30
--- In l..., Jean-Sebastien Stoezel
wrote:
>
> I would be
> interested in getting an overview of what all this does. Information
> on the web regarding these specs is quite thin... Would any of you
be
> wiling to either post interesting links, or share his/her knowledge?
>

http://en.wikipedia.org/wiki/Controller%E2%80%93area_network

As always with Wikipedia don't believe everything you read. However, if
you don't believe it you can always change it ;-)

Chris Burrows
Armaide: ARM Oberon-07 Development System for Windows
http://www.armaide.com

Reply by Robert Adsett December 30, 20082008-12-30
Jean-Sebastien Stoezel wrote:
> I'm looking for information regarding ISO 11898-3, ISO 11898-4, and
> ISO 11898-5. These are the standards for CAN bus that supports
> distributed real-time control and multiplexing for use within road
> vehicles.

Not a direct answer but

http://www.kvaser.com/can/hlps/main.htm
http://www.kvaser.com/can/protocol/standards.htm

(Kvaser seems to be trying to make providing references to their site
difficult)

provides an overview of a number of higher level protocols.

From the looks of thing -3 and -5 are (incompatible?) physical layer
standard. -4 is the time triggered version that flexray was partly
developed to replace.

> The specifications are available online, each of them cost about $100.

FWIW those are inexpensive standards.

Robert