E90Post
 


 
BMW 3-Series (E90 E92) Forum > BMW E90/E92/E93 3-series General Forums > Regional Forums > UK > UK Technical Forum > CANBUS



Reply
 
Thread Tools Search this Thread
      09-01-2011, 04:17 AM   #1
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

CANBUS

Hi All,
I have been looking at trying to get some info off the CANBUS network in the car.

I have previously read a rather long thread but stupidly didnt bookmark it. I have tried to search to get it again but there are hundreds of hits for CANBUS.

Does anyone have a link to it handy ?

I also need to understand with the CAN sniffer that I have should I be able to see lots of CAN traffic on the ODBII port Can H/L or do I need to request the data I require ?

I'm after things like rpm/throttle position/brake light/indicators/lights

Can I get these by sniffing the OBDII port or am I blocked by a gateway and do I need to connect to the CAN network say behind the instrument cluster ?

Any help advice appreciated for a CAN newbie.

Thanks
Marc
Appreciate 0
      09-01-2011, 12:36 PM   #2
MB London
Come as you are
MB London's Avatar
United Kingdom
136
Rep
1,404
Posts

Drives: M4 SSll
Join Date: Mar 2009
Location: London

iTrader: (0)

Can you translate into English
Appreciate 0
      09-01-2011, 04:35 PM   #3
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

In English

What do I need to do to get the electronic chatter from the car to my laptop using a CAN sniffer thingamy bob ?

Any hints ?
Appreciate 0
      09-01-2011, 05:29 PM   #4
JonnySi
BMW Technician
JonnySi's Avatar
6
Rep
197
Posts

Drives: BMW
Join Date: Jun 2010
Location: England

iTrader: (0)

So which BUS do you want?

PT-CAN High
PT-CAN Low
LIN BUS
K-CAN High
K-CAN Low
MOST
BSD Line

I'd leave well alone really, if you take a BUS down it'll cost you!
__________________
BMW 325d SE bluewater
Appreciate 0
      09-02-2011, 02:31 AM   #5
Tipper
Private First Class
Tipper's Avatar
9
Rep
127
Posts

Drives: 2007 E91 320d SE auto
Join Date: Jan 2009
Location: Devon, UK

iTrader: (0)

Have you checked out using Bavarian Technic kit?
Appreciate 0
      09-02-2011, 02:41 AM   #6
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by JonnySi View Post
So which BUS do you want?

PT-CAN High
PT-CAN Low
LIN BUS
K-CAN High
K-CAN Low
MOST
BSD Line

I'd leave well alone really, if you take a BUS down it'll cost you!
OK Im after reading/sniffing the following;
RPM
Road Speed
Indicators
Brake Light
Accelerator position
Gear

Just for a bit of background I am an embedded engineer and want to learn about CANBUS. I have an understanding about electronics and have purchased a CAN Analyser so I can start to see what is happening on the bus.

The problem I have is understanding where to hook into. From what I have read its the CAN High and CAN Low but I don't seem to be getting anything from the ODBII CAN High and CAN Low. There is data there but the ID's I have entered to filter dont seem to be there.

I just need a little help to get up and running.

I have set the bus speed to 100k and had the termination both enabled and disabled in the analyser but I still dont get the ID's.

So any help is appreciated.
Appreciate 0
      09-02-2011, 12:28 PM   #7
JonnySi
BMW Technician
JonnySi's Avatar
6
Rep
197
Posts

Drives: BMW
Join Date: Jun 2010
Location: England

iTrader: (0)

RPM is on the PT-Can
Accelerator position is on PT-Can
Wheel speed is PT-Can between the DME and DSC control units.
The PT-Can can be accessed in the multiplug connection to the KOMBI.

Brake lights are on the K-CAN high & low, they recieve a pulse width modulated voltage of around 6 volts. This voltage can only be seen on an ossciloscope. This is best accessed at the FRM near the bonnet release.
__________________
BMW 325d SE bluewater
Appreciate 0
      09-02-2011, 04:10 PM   #8
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by JonnySi View Post
RPM is on the PT-Can
Accelerator position is on PT-Can
Wheel speed is PT-Can between the DME and DSC control units.
The PT-Can can be accessed in the multiplug connection to the KOMBI.

Brake lights are on the K-CAN high & low, they recieve a pulse width modulated voltage of around 6 volts. This voltage can only be seen on an ossciloscope. This is best accessed at the FRM near the bonnet release.
So I should be able to access the PT-Can on the ODBII connector ? If not then thats where Im going wrong.

As a starting point I've been trying to listen out for PID 0x0C which should be rpm. But Im getting nothing.

Am I right in assuming the bus speed is 100k ?
And should I be requesting the value for PID 0x0C by sending a request:
0x0C 0x01

Just want to get some data so I know Im connecting correctly.
I have connected to pins 6(CAN-high) and 14(CAN-low) on the ODBII connector. Is this right ?
Appreciate 0
      09-02-2011, 05:28 PM   #9
JonnySi
BMW Technician
JonnySi's Avatar
6
Rep
197
Posts

Drives: BMW
Join Date: Jun 2010
Location: England

iTrader: (0)

Without the schematics I dont know the pin designations off by heart. I'd be very careful going into random pins incase you spike a BUS or control unit.

You need to be on the back of the instrument cluster for PT

K-Can high and low are orange and green, with orange wires in a twisted formation. you will find them all over the car.
__________________
BMW 325d SE bluewater
Appreciate 0
      09-03-2011, 09:15 AM   #10
Dr Dave
Zummerzet Zyder Drinker!
United Kingdom
112
Rep
5,541
Posts

Drives: '06 330D Le Mans Blue
Join Date: May 2009
Location: Somerset

iTrader: (3)

Garage List
Knicker sniffer!

You'll get Will all excited!
__________________
Appreciate 0
      09-03-2011, 09:20 AM   #11
gIzzE
Major General
gIzzE's Avatar
363
Rep
5,984
Posts

Drives: F11 + 911 C4
Join Date: Apr 2006
Location: Norfolk, UK.

iTrader: (2)

Garmin now do a wireless obdII connector that talks back to some of their nav units and gives you everything you are after, so maybe look on the Garmin forums to see if someone has listed the pinouts.

Must be standard too as the same device is compatible far many different marques.

In fact just google OBDII pinouts....

Appreciate 0
      09-03-2011, 04:26 PM   #12
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by gIzzE View Post
Garmin now do a wireless obdII connector that talks back to some of their nav units and gives you everything you are after, so maybe look on the Garmin forums to see if someone has listed the pinouts.

Must be standard too as the same device is compatible far many different marques.

In fact just google OBDII pinouts....

Yo gIzzE thanks for that. I have googled ODBII but as you can see there are a few busses. I was trying to find out if the J-2234 is the equivalent to the PT-Can.

I want to sniff the data instead of having to probe a module to get it. This leads me more to looking at the bus that goes to the instrument cluster as this info is constantly flowing.

Just need to find somewhere to tap in without taking the instrument cluster out.
Appreciate 0
      09-03-2011, 04:27 PM   #13
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by Dr Dave View Post
Knicker sniffer!

You'll get Will all excited!
Easy tiger....
Appreciate 0
      09-05-2011, 10:29 AM   #14
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Ok been having a read around and I should be able to get the PT-CAN on the ODBII connetion with pins 6 and 14.

Does anyone know the message format and speed ?
•ISO 15765-4 CAN (11 bit ID,500 Kbaud)
•ISO 15765-4 CAN (29 bit ID,500 Kbaud)
•ISO 15765-4 CAN (11 bit ID,250 Kbaud)
•ISO 15765-4 CAN (29 bit ID,250 Kbaud)


Hopefully thanks in advance.
Appreciate 0
      09-05-2011, 02:55 PM   #15
m1bjr
LSD - No, you're not seeing things
m1bjr's Avatar
United Kingdom
72
Rep
3,302
Posts

Drives: Baby F36 Gran Coupe
Join Date: Mar 2010
Location: Plymouth UK

iTrader: (4)

Why not drop a line to Terry Burger, he 'may' help you out

Do you not have to address the modules directly, unlike simple packet sniffing?

I recall something odd about shorting / opening a couple of those OBD2 pins too, depending upon model year...

How about tapping the ECU connectors directly, like BMS tuner boxes do, I think all required connectors must all be present there?
__________________

Last edited by m1bjr; 09-05-2011 at 03:01 PM..
Appreciate 0
      09-05-2011, 04:10 PM   #16
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by m1bjr View Post
Why not drop a line to Terry Burger, he 'may' help you out

Do you not have to address the modules directly, unlike simple packet sniffing?

I recall something odd about shorting / opening a couple of those OBD2 pins too, depending upon model year...

How about tapping the ECU connectors directly, like BMS tuner boxes do, I think all required connectors must all be present there?
Does Terry have a user ID ??

I would prefer to sniff as its more likely to be approved for connection to the CAN network and not invalidate any warranty.

If I could just find somewhere to connect to without having to remove the dash it would be great.
Appreciate 0
      09-08-2011, 08:05 AM   #17
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Found the post

After lots of searching I have found the post that outlines lots of info about the CAN network on the E9x... happy days

http://www.e90post.com/forums/showthread.php?t=177272
Appreciate 0
      09-08-2011, 01:07 PM   #18
Mike in Hampshire
Lieutenant
16
Rep
529
Posts

Drives: None at present!
Join Date: Jun 2009
Location: England

iTrader: (1)

Quote:
Originally Posted by marcm View Post
After lots of searching I have found the post that outlines lots of info about the CAN network on the E9x... happy days

http://www.e90post.com/forums/showthread.php?t=177272
Wow. I don't understand one word of this whole damned thread.
It's like that old Monty Python sketch where they all talk in "banter".

Mike.
Appreciate 0
      09-08-2011, 02:01 PM   #19
zltm089
Banned
zltm089's Avatar
United Kingdom
244
Rep
7,690
Posts

Drives: 335i SE Coupe Space Grey
Join Date: Nov 2008
Location: LONDON

iTrader: (0)

Garage List
2006 BMW 335i  [10.00]
I got no idea what everyone is on about!!!...

jasvnnvhhn h bvn tf n tf bn gvy ngnm ksdk kh h gsdjdkj =d0sd9sd89dsv 0sfd0gvsd-sd9svd78 7fd7 89.....

and the engine bhp goes to 560....
Appreciate 0
      09-08-2011, 03:02 PM   #20
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Quote:
Originally Posted by zltm089 View Post
I got no idea what everyone is on about!!!...

jasvnnvhhn h bvn tf n tf bn gvy ngnm ksdk kh h gsdjdkj =d0sd9sd89dsv 0sfd0gvsd-sd9svd78 7fd7 89.....

and the engine bhp goes to 560....
My god youve cracked it... your a genius.
Appreciate 0
      09-08-2011, 03:38 PM   #21
m1bjr
LSD - No, you're not seeing things
m1bjr's Avatar
United Kingdom
72
Rep
3,302
Posts

Drives: Baby F36 Gran Coupe
Join Date: Mar 2010
Location: Plymouth UK

iTrader: (4)

_._

__________________
Appreciate 0
      09-08-2011, 03:57 PM   #22
marcm
Lieutenant
marcm's Avatar
United Kingdom
21
Rep
462
Posts

Drives: F25 X3 LCI
Join Date: Jan 2007
Location: UK

iTrader: (1)

Just in case anyone can understand what is being discussed here, I have managed to get some data off the ODBII port.

bus speed is 500k and I can see the ignition toggle when I start the car:

Started: 08/09/2011 21:24:29
RX (HEX),130,5,C1,42,FF,FF,FF,,,,425.381,0.1,
RX (HEX),130,5,C1,42,FF,FF,FF,,,,0.915,0.04,
RX (HEX),130,5,D5,42,FF,FF,FF,,,,0.965,0.05,
RX (HEX),130,5,C5,42,FF,FF,FF,,,,1.855,0.07,
RX (HEX),130,5,C1,42,FF,FF,FF,,,,14.677,0.1,

C1 = Ignition ready
D5 = Engine starting
C5 = Engine running

So first bit of successfull sniffing.... PT bus next.
Appreciate 0
Reply

Bookmarks


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



All times are GMT -5. The time now is 03:41 PM.




e90post
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
1Addicts.com, BIMMERPOST.com, E90Post.com, F30Post.com, M3Post.com, ZPost.com, 5Post.com, 6Post.com, 7Post.com, XBimmers.com logo and trademark are properties of BIMMERPOST