Skip to content

Commit 4643ec3

Browse files
authored
Merge pull request #317 from jomud9/main
New update for XC40 BEV
2 parents 2a5bf33 + 3ee6b9c commit 4643ec3

File tree

4 files changed

+55
-1
lines changed

4 files changed

+55
-1
lines changed

docs/content/0.Config/6.Automate/2.Supported_Vehicles.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ For vehicles listed below a WiCAN vehicle profiles exists:
2828
- Renault: Twizy
2929
- Toyota: Rav4
3030
- Volvo: XC40
31+
- Volvo: XC40 BEV
3132
- VW: e-Golf
3233
- VW: e-Up
3334
- VW: ID

vehicle_profiles.json

+1-1
Large diffs are not rendered by default.

vehicle_profiles/volvo/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Some Footnotes for creating profile for Volvo XC40
2+
3+
### Among platform
4+
Some online references seems working on older Volvo, but not CMA
5+
For example:
6+
Info from https://www.volvov40club.com/threads/volvo-service.35611/page-2?post_id=297437#post-297437 look promising
7+
[VCC]TotalDistance","ODO","0x22dd01","int24(A:B:C)",0,1000000,"km","","","",1
8+
9+
However studying ELM327 log from Car Scanning
10+
11+
PID: 22DD011 @ 30733km
12+
>1EC6EE80 0662DD01 00780D
13+
14+
PID: 22DD011 @ 30776km
15+
>1EC6EE80 0662DD01 007838
16+
17+
That concluded "expression" for odo is "([B4:B7])/256"
18+
19+
Current Status for XC40 BEV.json
20+
- Tested on XC40 BEV P8 MY24
21+
- 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
22+
23+
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.

vehicle_profiles/volvo/xc40_bev.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"car_model": "Volvo: XC40 BEV",
3+
"init": "ATST96;ATSP7;",
4+
"pids": [
5+
{
6+
"pid":"2240281",
7+
"pid_init":"ATCP1D;ATCRA1EC6AE80;ATFCSH1DD01635;ATFCSD300000;ATFCSM1;",
8+
"parameters": [
9+
{
10+
"name": "SoC",
11+
"class":"battery",
12+
"expression":"(B4*0.6554)-0.08",
13+
"unit":"%"
14+
}
15+
]
16+
},
17+
{
18+
"pid": "22DD011",
19+
"pid_init":"ATCP1D;ATCRA1EC6EE80;ATFCSH1DD01637;",
20+
"parameters": [
21+
{
22+
"name":"Odometer",
23+
"class":"distance",
24+
"expression":"([B4:B7])/256",
25+
"unit":"km"
26+
}
27+
]
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)