ev-map / EVMap

Android app to find electric vehicle charging stations - compatible with community databases such as GoingElectric.de and OpenChargeMap.org.
https://ev-map.app/
MIT License
203 stars 55 forks source link

Info: Renault AAOS VHAL does weird stuff. #269

Open Ixam97 opened 1 year ago

Ixam97 commented 1 year ago

This is strange behaviour I encountered while a tester used my app on his Megane E-Tech.

Renault seems to have a broken implementation of the Vehicle Hardware Abstraction Layer, causing it to report implausible values to apps using it. In case of EVMap this affects die displayed state of charge in the vehicle infos:

image

The SoC did not change at all. The logs made by my app tester revealed the following:

16.02.2023 03:28:15.755: Display distance unit: 35
16.02.2023 03:28:15.755: Car name: BCB, Renault, 2021
16.02.2023 03:28:15.755: Max battery Capacity: 6553500.0 // (0xffff * 100).toFloat() ???
// ...
16.02.2023 03:28:15.915: Additional data:
    Speed in m/s:        0.0
    Power in mW:         17857.145 // 18W while charging with 11kW
    Gear selection:      4
    Connection status:   true
    Battery level in Wh: 34700.0
    Ignition state:      3
    Ambient temperature: 11.0
// ...
16.02.2023 03:30:54.113: DRIVE STATE: CHARGE -> PARKED
// ...
16.02.2023 03:30:56.469: Additional data:
    Speed in m/s:        0.0
    Power in mW:         Infinity // (confused unga bunga)
    Gear selection:      4
    Connection status:   false
    Battery level in Wh: 35000.0
    Ignition state:      3
    Ambient temperature: 11.0

There is nothing that can be done inside of an app to fix what ever this c*** is, except for maybe setting a fixed battery capacity value.

Since this is nothing that hurts EVMap's primary functions this isn't a big issue (while tt is for my own developement šŸ™ƒ). This is just meant to be a little side note if anyone driving a Renault complains about this.

johan12345 commented 1 year ago

Oh, thanks for the info! Hm yeah, we could set a fixed capacity value, but I guess the app can not really find out whether it's the 40 or 60 kWh variant. Maybe it helps to report this in Google's issue tracker, but I guess it's rather something that Renault themselves need to fix... šŸ˜•

Also, based on the screenshot, it seems that the car doesn't have a compass sensor that is exposed to Android apps - same as on the Polestar.