Skip to content

Commit

Permalink
Merge pull request #317 from jomud9/main
Browse files Browse the repository at this point in the history
New update for XC40 BEV
  • Loading branch information
meatpiHQ authored Jan 15, 2025
2 parents 2a5bf33 + 3ee6b9c commit 4643ec3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/content/0.Config/6.Automate/2.Supported_Vehicles.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ For vehicles listed below a WiCAN vehicle profiles exists:
- Renault: Twizy
- Toyota: Rav4
- Volvo: XC40
- Volvo: XC40 BEV
- VW: e-Golf
- VW: e-Up
- VW: ID
Expand Down
2 changes: 1 addition & 1 deletion vehicle_profiles.json

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions vehicle_profiles/volvo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Some Footnotes for creating profile for Volvo XC40

### Among platform
Some online references seems working on older Volvo, but not CMA
For example:
Info from https://www.volvov40club.com/threads/volvo-service.35611/page-2?post_id=297437#post-297437 look promising
[VCC]TotalDistance","ODO","0x22dd01","int24(A:B:C)",0,1000000,"km","","","",1

However studying ELM327 log from Car Scanning

PID: 22DD011 @ 30733km
>1EC6EE80 0662DD01 00780D
PID: 22DD011 @ 30776km
>1EC6EE80 0662DD01 007838
That concluded "expression" for odo is "([B4:B7])/256"

Current Status for XC40 BEV.json
- Tested on XC40 BEV P8 MY24
- For SoC (known as [BECM] HV Battery SoC), confirmed PID 2240281 but expression is still missing. Please use "Standard PID - 5B-HybdBatPackRemLife" introduced since Firmware 4.0 as workaround

Also check with volvo2mqtt (but just shocked as project discontinued few days ago (Jan 02, 2025) https://github.com/Dielee/volvo2mqtt ) but there are new integration for HA, if your region support.
30 changes: 30 additions & 0 deletions vehicle_profiles/volvo/xc40_bev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"car_model": "Volvo: XC40 BEV",
"init": "ATST96;ATSP7;",
"pids": [
{
"pid":"2240281",
"pid_init":"ATCP1D;ATCRA1EC6AE80;ATFCSH1DD01635;ATFCSD300000;ATFCSM1;",
"parameters": [
{
"name": "SoC",
"class":"battery",
"expression":"(B4*0.6554)-0.08",
"unit":"%"
}
]
},
{
"pid": "22DD011",
"pid_init":"ATCP1D;ATCRA1EC6EE80;ATFCSH1DD01637;",
"parameters": [
{
"name":"Odometer",
"class":"distance",
"expression":"([B4:B7])/256",
"unit":"km"
}
]
}
]
}

0 comments on commit 4643ec3

Please sign in to comment.