BMW i3 CCS/charge port controller

Development and discussion of fast charging systems eg Chademo , CCS etc
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW i3 CCS/charge port controller

Post by muehlpower »

The VIN is transferred to the LIM via CAN. Damien found that it works without a VIN. Only if the wrong one is transmitted will the LIM be blocked. The VIN is not passed to the EVSE. If necessary, the MAC address that is printed on the LIM and cannot be changed is used for identification and is transmitted to the EVSE.
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: BMW i3 CCS/charge port controller

Post by JaniK »

Thanks for explaining it, now I see my error in chain of thought.

So it is MAC address identification that is used for plug and charge without using a tag or app?
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by EV_Builder »

JaniK wrote: Wed Aug 17, 2022 10:30 am Thanks for explaining it, now I see my error in chain of thought.

So it is MAC address identification that is used for plug and charge without using a tag or app?
Yeah that might be.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

EV_Builder wrote: Wed Aug 17, 2022 10:48 am Yeah that might be.
Nope not that easy, plug and charge is a whole other handshaking back end connecting process. It requires the car to be connected to the cloud and the charger. So getting that sorted in a "DIY" setup is not happening anytime soon, as who wants to deal with backend compatibility checks for some random persons own backend.
Founder Volt Influx https://www.voltinflux.com/
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: BMW i3 CCS/charge port controller

Post by JaniK »

:o ok so lots of tags for the win then
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
muehlpower
Posts: 570
Joined: Fri Oct 11, 2019 10:51 am
Location: Germany Fürstenfeldbruck
Has thanked: 12 times
Been thanked: 96 times

Re: BMW i3 CCS/charge port controller

Post by muehlpower »

Fastned has a system that only needs the MAC address.
here is a description of how it works
https://generationstrom.wordpress.com/2 ... devorgang/
"
A unique identification code (MAC address) is transmitted via the CCS connection, which enables Fastned to identify a vehicle precisely. Registered users and the vehicle can be linked and clearly assigned via the connection to the app activation.
"

should also work with our handicraft solution :)
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

muehlpower wrote: Wed Aug 17, 2022 7:27 pm Fastned has a system that only needs the MAC address.
should also work with our handicraft solution :)
Yes this is Fastned using the Fastned backend and payment system quite cool, someone should try this. :D
Founder Volt Influx https://www.voltinflux.com/
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by EV_Builder »

So yes that might be, and that's because MAC adress is unique.
Nobody talked about easy anyway...
Chargers are iot'ed anyway to handle payment I guess.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
mikeselectricstuff
Posts: 120
Joined: Sun Nov 08, 2020 11:33 am
Been thanked: 2 times

Re: BMW i3 CCS/charge port controller

Post by mikeselectricstuff »

Gridserve are also introducing what they call autocharge,using the MAC.
Unfortunately VAG cars use randomized MACs for privacy reasons, apparently
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by EV_Builder »

mikeselectricstuff wrote: Thu Aug 18, 2022 4:11 pm Unfortunately VAG cars use randomized MACs for privacy reasons, apparently
Randomized Macs? A MAC is always unique. The first part is fixed and is coupled to VAG or BMW etc. The last part is de serial.
On a network all MACs need tobe unique.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
User avatar
chrskly
Posts: 145
Joined: Fri Feb 21, 2020 5:04 pm
Location: Dublin, Ireland
Has thanked: 39 times
Been thanked: 28 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by chrskly »

EV_Builder wrote: Thu Aug 18, 2022 4:21 pm Randomized Macs? A MAC is always unique. The first part is fixed and is coupled to VAG or BMW etc. The last part is de serial.
On a network all MACs need tobe unique.
Yeah, Android has had this feature for a while. Not surprising to see it popping up elsewhere.

Using the mac (and only the mac) to authenticate payment for a charge seems like asking for trouble if you ask me. Especially since some of the docs I've read seem to imply that all of the chargers (and by extension, cars) at a particular charging location are on the same network. So, potentially, all I would need to do is have my car passively capture the mac addresses of the other cars on the network and I can get free charging. Assuming this is true, we'd see skimming activity like this soon enough.
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by asavage »

EV_Builder wrote: Thu Aug 18, 2022 4:21 pm Randomized Macs? A MAC is always unique.
Sadly, this hasn't been true for a number of years.
Al Savage
2014 RAV4 EV
NissanDiesel
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

I have been involved with more testing of the BMW I3 CCS controller. Main focus was does the code I modified to listen to more limits given by the SimpBMS work? Also have a Chinese isolation monitoring device that is being tested, which turns out might be causing some issues even before the contactors close.

Two things to note came to light:
  • After Cable test the charger did not return to 0V but hovered around 55V, so tweaked the code so it no longer waits till 0V to count down to proceed. The charger did not mind
  • Has anyone been able to exceed the currently hard coded power limit of 44Kw (set in code can be changed) or seen the following behaviour? the charger seems to overshoot by listening to FC current request and then start backing down to Power Request without indicating any limits on the charger side
image.png
Founder Volt Influx https://www.voltinflux.com/
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by Jack Bauer »

Have seen the cable test voltage behavior a few times. Not sure if you are looking at the charger limit flags in code but I can whack the current request through the roof and the charger will roll on until it triggers a flag (either max power or current) and then back down. Seems here in Ireland at least they use the flags when throttling chargers as they will happily report say 125A avail but trip a current limit flag at much less.
I'm going to need a hacksaw
mikeselectricstuff
Posts: 120
Joined: Sun Nov 08, 2020 11:33 am
Been thanked: 2 times

Re: BMW i3 CCS/charge port controller

Post by mikeselectricstuff »

EV_Builder wrote: Thu Aug 18, 2022 4:21 pm Randomized Macs? A MAC is always unique. The first part is fixed and is coupled to VAG or BMW etc. The last part is de serial.
On a network all MACs need tobe unique.
Unique is not the same thing as consistent in each session. Nowadays the MAC doesn't travel far through a network so global uniqueness isn't particularly important
mikeselectricstuff
Posts: 120
Joined: Sun Nov 08, 2020 11:33 am
Been thanked: 2 times

Re: BMW i3 CCS/charge port controller

Post by mikeselectricstuff »

chrskly wrote: Thu Aug 18, 2022 5:11 pm Yeah, Android has had this feature for a while. Not surprising to see it popping up elsewhere.

Using the mac (and only the mac) to authenticate payment for a charge seems like asking for trouble if you ask me. Especially since some of the docs I've read seem to imply that all of the chargers (and by extension, cars) at a particular charging location are on the same network. So, potentially, all I would need to do is have my car passively capture the mac addresses of the other cars on the network and I can get free charging. Assuming this is true, we'd see skimming activity like this soon enough.
Possible, but rather difficult in practice. Obviously the charger should b e filtering so only essential traffic appears on the PLC interface, but even it it doesn't, how are you going to access the network through the CCS controller?
And even if successful, the potential reward is low, and risk of getting detected very high - wouldn't be hard to correlate use of spoofed MAC to CCTV
I wouldn't be at all surprised to see a talk on it at Black Hat/CCC/Defcon at some point....
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by EV_Builder »

mikeselectricstuff wrote: Fri Aug 19, 2022 8:51 am Unique is not the same thing as consistent in each session. Nowadays the MAC doesn't travel far through a network so global uniqueness isn't particularly important
That's true. I was more theoretically speaking but yes. MAC can be changed etc.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
evMacGyver
Posts: 108
Joined: Tue Jun 15, 2021 5:44 pm
Location: Finland
Has thanked: 19 times
Been thanked: 5 times

Re: BMW i3 CCS/charge port controller

Post by evMacGyver »

Does LIM control CCS cable lock motor automatically as I don't see lock control on DBC, there is only lock status? Is it possible to control lock motor somehow from sw? Maybe unknown 764 lock button?
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

evMacGyver wrote: Sat Aug 20, 2022 5:51 am Does LIM control CCS cable lock motor automatically as I don't see lock control on DBC, there is only lock status? Is it possible to control lock motor somehow from sw? Maybe unknown 764 lock button?
Be good to know if there is a message with vehicle locked status. So it inhibits unlocking while vehicle is locked, which the BMW I3 does.
Founder Volt Influx https://www.voltinflux.com/
Jackk
Posts: 57
Joined: Thu Dec 17, 2020 6:29 pm
Has thanked: 3 times
Been thanked: 2 times

Re: BMW i3 CCS/charge port controller

Post by Jackk »

Hi all,

Does the lim control pre charge ? From what I can see from the pinout there are only outputs for the main and CCS contactors.

What is the best way to handle pre charge?

Before lim module was fitted my gs450h V2 board dealt with it and obviously main contactors.
User avatar
EV_Builder
Posts: 1199
Joined: Tue Apr 28, 2020 3:50 pm
Location: The Netherlands
Has thanked: 16 times
Been thanked: 33 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by EV_Builder »

Pre-charge is done at the charger side in the essence that if I'm corre t it matches the vehicle voltage before contacts are closed. So then there are no arks.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Jackk
Posts: 57
Joined: Thu Dec 17, 2020 6:29 pm
Has thanked: 3 times
Been thanked: 2 times

Re: BMW i3 CCS/charge port controller

Post by Jackk »

Thanks but I was actually referring to the inverter pre charge?

I am right in thinking the lim controls the main contactors?

Still would like to know why this is actually necessary? Is it just an extra safety measure?

J
tom91
Posts: 1273
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 201 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Jackk wrote: Fri Sep 09, 2022 7:17 pm Thanks but I was actually referring to the inverter pre charge?

I am right in thinking the lim controls the main contactors?

Still would like to know why this is actually necessary? Is it just an extra safety measure?

J
You are quite lost it seems. The CCS has its own contactors controller by the LIM, these are connected to the HV bus so you need to activate the HV bus before being able to charge. So you need an external system like the inverter to control the contactors and do precharge.

If you are asking this level of basic questions please have a good look at the wikipedia pages.
Founder Volt Influx https://www.voltinflux.com/
User avatar
SciroccoEV
Posts: 369
Joined: Thu Oct 10, 2019 1:50 pm
Location: Luton UK
Been thanked: 15 times

Re: BMW i3 CCS/charge port controller

Post by SciroccoEV »

Jackk wrote: Fri Sep 09, 2022 7:17 pm Thanks but I was actually referring to the inverter pre charge?

I am right in thinking the lim controls the main contactors?

Still would like to know why this is actually necessary? Is it just an extra safety measure?
Inverter (and charger/DC-DC) precharge is usually handled by the VCU (Vehicle Control Unit).

The LIM is a charging controller, so it only handles the rapid charge (CCS) contactors.

If you connected the Inverter straignt to the battery without precharge, the DC-Link capacitors would draw huge current, like in the 1000s of Amps range. This will degrade the capacitors and weld or burn out the contactor contacts.
User avatar
asavage
Posts: 328
Joined: Sat May 14, 2022 10:57 pm
Location: Oak Harbor, Washington, USA
Has thanked: 269 times
Been thanked: 103 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by asavage »

(aside from the missing charge port cover sensor) Is this diagram (from the BMW i3 LIM Wiki) still a current representation of a viable high-level system wiring configuration?

Image


Also, would anyone care to enumerate the downside(s) of having the LIM's contactors connect to the HV battery on the HV side of the main contactors (the LIM's contactors would be HOT on one side at all times)? Other than not being able to run the DC-DC Converter? I don't think I'd want to do that, but I'm not immediately seeing why it couldn't be done.
Al Savage
2014 RAV4 EV
NissanDiesel
Post Reply