-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newbie need some help - Vehicle profile for Volvo XC40 BEV #265
Comments
@jomud9 I can help you create a profile. Can you please export another log file? but this time in car scanner press on the SoC sensor and let it log for a few seconds then immediately unplug the adapter so that the last readings in the logs would be of the SoC. |
Hi, I tried to do some more in different files. Thank you in advance. HV SoC OBD Voltage 12V Battery Voltage Please let me know if you need more. |
What was the SoC at the time of the log? |
There attached two more file as I found. Hybrid/EV battery pack remaining charge 100% This is the HV SoC sensor which previous I think it should be the correct one. To my surprise it just shown [BECM] HV Battery SoC |
@jomud9 Can you please provide another log with a different data point. This will help in guessing the equation. |
No problem. These are captured when Dashboard shown 89% of Battery HV Battery SoC: 87.91% Hybrid/EV Battery pack remaining charge: 88% Thanks! |
@jomud9 sorry for the delay. I've created a new profile for xc40. Please try it an let me know if it works. |
Okay. Seems I might miss up a step - Download xc40.json and upload to my device Tried and I saw in HA new entity appeared. Let me have some fun and see. :-) |
@jomud9 so the profile is working now? |
Negative :-( I tried different way but seems I don't know anything else to make it work. :-( Provide that when i toggle it to ELM327 mode and I could connect car scanner, i think i did plug that well. Any idea? |
Okay. Updated to fw 4.00 (via web, then hanged again which requires another USB re-flash :-( ) I like new feature and I found while SoC did not work still, I could get something from Standard PIDs which I guess they are good! I will try to figure out the custom PID calculation and keep update on this |
@jomud9 I've updated the xc40 profile, please sync and try it again. |
1 bad news and 2 good news.
In addition, Standard PID: 5B-HybrBatPackRemLife work very nicely as SoC. Just FYI. Let me put together my finding
at 30776km
Seems it is just put last 4 digits as Hex!
64.94598
Seems another Hex to Dec conversation plus some small calculation. Please let me know if u need more logs. :-) |
Okay @meatpiHQ. I made the Odo expression from try and error. Init: ATCP1D;ATCRA1EC6EE80; ATFCSH1DD01637; I think I could fork then commit for few more entity. However would you please help to rename this xc40.json to xc40 bev.json? |
Tried to create this pull request for the mentioned |
@jomud9 This is some really good work! |
For EV I though information like SoC should be available via API, Volvo did that at the beginning but limited API access to some region only. So I looked for another solution and found this project. Thank you - This little device did what I want.
At this point, what I have
I guess if I could fix the routing issue to enable HA to connect WiCAN @ Car, I should be able to use WiCAN Integration for HA directly. But before that I afraid I need to create a vehicle profile and setup WiCAN for mqtt.
Here attached logs from car scanner. And I hope someone could help
xc40.txt
Thank you in advance
The text was updated successfully, but these errors were encountered: