08-15-2022, 12:30 PM | #1 |
New Member
9
Rep 13
Posts |
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:' |
08-28-2022, 03:24 PM | #2 |
Private
59
Rep 77
Posts |
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. |
Appreciate
1
atek166.00 |
Post Reply |
Bookmarks |
|
|