Search code examples
androidautomotiveandroid-automotive

How does Android Automotive retrieve obd2 data?


I just want to comprehend how Android Automotive handles obd2 data. I discovered the following sources where a BluetoothConnection seems to be a part of their OBD2 api - and this confuses me, because why does Android Automotive need a Bluetooth Connection for OBD2, when it should be fully integrated into the car?

https://android.googlesource.com/platform/packages/services/Car/+/refs/tags/android-9.0.0_r49/obd2-lib/src/com/android/car/obd2/connections/BluetoothConnection.java?autodive=0%2F%2F

Or do I misunderstand something?


Solution

  • It can be there. For many reason. You are right Android Automotive suppose to be Fully integrated to car. but it does not mean What available via OBD2 port will be available in IVI (Android based). Because All infomation from all ECU are originally available via OBD2 port (send via CAN network) IVI can only get some of them ... which only need for Infotainment system like: IgnitionState, GearBox ..vv. But not Diagnostic data from other ECU.

    Anyway, OEM can still do it avaiable in IVI also.. but it take more risk(security, safety) and effort.