THE LARGEST BMW 2-SERIES FORUM ON THE PLANET
2Addicts
2Addicts
BMW Garage BMW Meets Register Search Today's Posts Mark Forums Read
2Addicts | BMW 2-Series forum Technical Topics DIY and Coding Discussions Possible To Get CAN Info From OBD2?

Post Reply
 
Thread Tools Search this Thread
      08-15-2022, 12:30 PM   #1
TheAlexVII
New Member
TheAlexVII's Avatar
9
Rep
13
Posts

Drives: 09' BMW 135i
Join Date: Mar 2018
Location: Ontario

iTrader: (0)

Possible To Get CAN Info From OBD2?

I have a DIY project where I need to take some data from the M235i and implement it into my product for feedback. I am going to be using an Arduino, and an OBD2 to Arduino cable. Below is what the OBD2 converter can do.

https://freematics.com/pages/product...t-adapter-mk2/

This adapter can CAN sniff which is exactly what I need to, but I later found a PDF which I have linked here saying that on this vehicle it isn't possible to get CAN info.
http://www.racelogic.co.uk/_download...i%20Racing.pdf

So will the adapter I have be able to pull the CAN info? Or am I able to get sensor readings like BimmerLink does via OBD2 and get information? The information I need are:

- Steering Angle
- Brake Pedal Position
- Vehicle Speed

EDIT 1: I have found a Facebook post as well here.

https://www.facebook.com/groups/1288...9562616738594/

So if I am able to pull data, I can easily find it since I assume there isn't a difference in the CAN info between an M2 and M235i.

I am very new to this but I hope this post makes sense!

Would be worth mentioning the adapter can also define PIDs from the OBD2 so is it possible there is a PID of the brake pedal position and steering angle? I know there is one that measures the speed obviously.

EDIT 2: I also found another forum post and wanted to confirm if this is all the data that can be read through other BMW's, specifically the 2 series https://f80.bimmerpost.com/forums/sh...1#post29223861 as it looks like I can get steering angle and vehicle speed, but the only thing missing is braking, but I think I can just use the brake light as a condition for my DIY project.

Last edited by TheAlexVII; 08-15-2022 at 03:42 PM.. Reason: added, new info under 'EDIT:'
Appreciate 1
atek119.50
      08-28-2022, 03:24 PM   #2
jkoljo
Private
48
Rep
71
Posts

Drives: M235i
Join Date: Sep 2018
Location: CA & Finland

iTrader: (0)

For that data, you either have to sniff PT-CAN or request extended PID data from the OBD2 port. I ended up sniffing the PT-CAN since it leaves the OBD2 free. It's not super straightforward to find the PIDs. You can start with Deep OBD app (OBD2 port), and sniff what it's requesting when you set it up to receive the data you want. From that (with a bit of coffee and math) you can determine what to request, and how to interpret it.

I sniffed PT-CAN and spent a few long nights with Excel to find the data I wanted for my project.
Attached Images
 
Appreciate 1
atek119.50
      09-22-2022, 05:30 PM   #3
atek
I like biscuits
atek's Avatar
United_States
120
Rep
190
Posts

Drives: bmw m235i
Join Date: Jan 2022
Location: TX

iTrader: (0)

im just here for the info...planned on making a display device myself.
Appreciate 0
Post Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:57 AM.




2addicts
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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