BMW i3 CCS/charge port controller

Development and discussion of fast charging systems eg Chademo , CCS etc
User avatar
Zapatero
Posts: 443
Joined: Fri Oct 25, 2019 11:08 am
Location: Germany, Ulm
Has thanked: 25 times
Been thanked: 39 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by Zapatero »

Zapatero wrote: Mon Nov 28, 2022 12:53 am I'll test what the 1B-15 does, i hope it's a pull up output that delivers 12v once plugged in. With that you could easily simulate to your OBD that the car is plugged in by attaching a pwm generator to a relay. In my case it'll be a direct charge interlock for the Orion BMS on charge power, if it's +12v
So i tested 1b-15 yesterday. It outputs a frequency. I also tested voltage (30mv constant) and resistance, but the state of a plug had no effect on the output. Just frequency changed.

No Plug Inserted
image.png
With Plug inserted
image.png
With Plug inserted and Charger plugged into 230v Wall socket
image.png
tom91
Posts: 1275
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Zapatero wrote: Fri Dec 16, 2022 9:53 am So i tested 1b-15 yesterday. It outputs a frequency. I also tested voltage (30mv constant) and resistance, but the state of a plug had no effect on the output. Just frequency changed.
Uhm, okay interesting question would be does it require a pull down on the other end and what would the signal look like under the scope.

Can you test the pin 1B-8 IGN Wake up signal +12V (ignition, contact 15) with the same situations?

I am trying to come up with a way, shared on here ofcourse, of having the LIM being able to wake up or keep awake a vehicle while charging or plugged in.
Founder Volt Influx https://www.voltinflux.com/
User avatar
Zapatero
Posts: 443
Joined: Fri Oct 25, 2019 11:08 am
Location: Germany, Ulm
Has thanked: 25 times
Been thanked: 39 times
Contact:

Re: BMW i3 CCS/charge port controller

Post by Zapatero »

If I test 1b-8 against 1b-15 then i get 12v.
No frequency or anything else...
12 volt ist constant, no matter if the plug is inserted or not
tom91
Posts: 1275
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Zapatero wrote: Fri Dec 16, 2022 8:28 pm If I test 1b-8 against 1b-15 then i get 12v.
No frequency or anything else...
12 volt ist constant, no matter if the plug is inserted or not
Is the car on? is it possible to turn the whole car off but the LIM connected and the 12V permanent powered.

I believe the LIM did not go to sleep.
Founder Volt Influx https://www.voltinflux.com/
User avatar
CCSknowitall
Posts: 105
Joined: Fri Jun 04, 2021 1:47 pm
Has thanked: 1 time
Been thanked: 28 times

Re: BMW i3 CCS/charge port controller

Post by CCSknowitall »

bitterandreal wrote: Sat Dec 03, 2022 9:21 am DIN 70121 was limited to 500V and at some point they moved to ISO 15118 which supports 1000V.
There's vehicles out there that can do ~920V but still speak DIN. DIN 70121 may have been written when all cars were below 500V, but that doesn't mean vehicles don't use it. The upper bounds for a lot of vehicle and charger parameters were not explicitly defined.

ISO was better about this, but then they originally defined EV max current to be 400A and well, that now has to be ignored because there's vehicles that can do 500A or more...
christoph
Posts: 39
Joined: Fri Sep 09, 2022 9:40 pm
Been thanked: 5 times

Re: BMW i3 CCS/charge port controller

Post by christoph »

Jack Bauer wrote: Fri Oct 28, 2022 6:18 pm While I appreciate the contribution (more than you might imagine!) I'll hold off making any changes to the vcu firmware as I have not personally encountered this problem in almost a year of some very intensive CCS charging during a house move.
Now I've seen you merged it. I still had problems with that version with below 50V at the Tesla Supercharger. I had to remove the check for 50V completely and changed the state count to 10 instead of 20. The Supercharger was really in a hurry...
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Hi to all. I'm finishing my program for Lim 2014. I studied the logs taken from the car BMW i3 2014. I can't figure out how SOC_local is defined here. I'd 0x112, byte 4.5. I get some big numbers. Can someone explain why?
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW i3 CCS/charge port controller

Post by larsrengersen »

Are you using the correct bit length (=12), scaling (0,1) and endianness (Intel)?
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Yes, I use normal length. It's also not entirely clear to me what soc is here. For example, in the logs posted on GitHub.
112,8,FA,1F,16,0E,F6,70,15,5A,
If it is not difficult for you, you can explain with an example.
Thank you.
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW i3 CCS/charge port controller

Post by larsrengersen »

I'd say in that example SOC = 24,6%
Byte 4 = 0xF6 = 11110110
Byte 5 = 0x70 = 01110000
Then take all bits from Byte 4 and four most right bits from Byte 5 in front of it.
So you get binary 000011110110 = 246 scale 0,1 = 24,6%
Interpreted.jpg
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Thank you.sometimes you can get lost in elementary things)
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Hi all. Today I tried to run my VCU for LIM for the first time. But unsuccessfully. When transitioning to lim_state 2, the red LED begins to flash. Checked the Flap, it is in position 1. Locking the port in the LOCK position (11k). What can be wrong? Capture of the сan in the attachment. Thank you.
Attachments
LIM.txt
(176.39 KiB) Downloaded 44 times
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW i3 CCS/charge port controller

Post by larsrengersen »

You are not getting a valid Charging_Type in 0x3B4, Byte 6 and thus it hangs/remains in Initlialisation.
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

larsrengersen wrote: Tue Dec 27, 2022 9:00 pm You are not getting a valid Charging_Type in 0x3B4, Byte 6 and thus it hangs/remains in Initlialisation.
I get to this level 3B4 8 00 FF 31 F4 BD FF 04 00 . But, before that, at the moment LIM gets 3E9: 8,08,52,11,00,00,00,00,00, the red LED immediately starts flashing. I'm paying for the charging station, but the insulation test did not start. The problem is the blinking LED. I'm doing something wrong?
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Eltis wrote: Wed Dec 28, 2022 9:09 am I get to this level 3B4 8 00 FF 31 F4 BD FF 04 00 . But, before that, at the moment LIM gets 3E9: 8,08,52,11,00,00,00,00,00, the red LED immediately starts flashing. I'm paying for the charging station, but the insulation test did not start. The problem is the blinking LED. I'm doing something wrong?
Attachments
LIM2812.txt
(437.69 KiB) Downloaded 46 times
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Maybe I missed one point:
1. I have lim...646 USA.
2 Port duoside. I did not put the 620 ohm resistor. Between GND and CP. Could this be the reason for my failure?
But my lim reacts normally to the connection.
3B4,8,00,FF,31,F0,BC,FF,00,00,
tom91
Posts: 1275
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Eltis wrote: Wed Dec 28, 2022 5:12 pm Maybe I missed one point:
1. I have lim...646 USA.
2 Port duoside. I did not put the 620 ohm resistor. Between GND and CP. Could this be the reason for my failure?
But my lim reacts normally to the connection.
3B4,8,00,FF,31,F0,BC,FF,00,00,
Fix your wiring, as it needs to duplicate the BMW I3 implementation. Easiest to get this working is using a type 1 AC charging to start.

It does determine that a CCS is present due to 5% pilot yet it has errors for plug.
image.png

image.png
Founder Volt Influx https://www.voltinflux.com/
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

Thank you. I will continue tomorrow.
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

tom91 wrote: Wed Dec 28, 2022 5:34 pm Fix your wiring, as it needs to duplicate the BMW I3 implementation. Easiest to get this working is using a type 1 AC charging to start.

It does determine that a CCS is present due to 5% pilot yet it has errors for plug.
image.png

image.png
AC charging starts without complaint. DC charging never starts. What could I have missed?
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW i3 CCS/charge port controller

Post by larsrengersen »

CCS DC charging relies on power line communication (so data packages via the CP and PE lines). Since you are getting an invalid signal it looks like this digital communication is not working properly. Therefore Tom suggested to check your wiring.
tom91
Posts: 1275
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Eltis wrote: Fri Dec 30, 2022 9:28 am AC charging starts without complaint. DC charging never starts. What could I have missed?
Alot, specially since you wrote your own code. I would say compare your own logs to known working ones, this is the only way to diagnose it.

Also a chance that you are using an incompatible LIM with a CCS charger that outputs a not supported protocol (unlikely).
Founder Volt Influx https://www.voltinflux.com/
Eltis
Posts: 38
Joined: Sat Oct 08, 2022 2:00 pm
Has thanked: 4 times

Re: BMW i3 CCS/charge port controller

Post by Eltis »

tom91 wrote: Fri Dec 30, 2022 10:43 am Alot, specially since you wrote your own code. I would say compare your own logs to known working ones, this is the only way to diagnose it.

Also a chance that you are using an incompatible LIM with a CCS charger that outputs a not supported protocol (unlikely).
I already compared can protocols, everything is 100% identical. All the more so that the AC charging is normal for me. I am beginning to suspect that I have a faulty lim.
tom91
Posts: 1275
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 97 times
Been thanked: 204 times

Re: BMW i3 CCS/charge port controller

Post by tom91 »

Eltis wrote: Fri Dec 30, 2022 11:25 am I already compared can protocols, everything is 100% identical. All the more so that the AC charging is normal for me. I am beginning to suspect that I have a faulty lim.
Sure who knows, yet your can messages are not identical in population to proven working logs. example, in the FC command message your time to go are 0. So it is on you to go through each variable in each message and compare it to working logs.
Founder Volt Influx https://www.voltinflux.com/
User avatar
larsrengersen
Posts: 101
Joined: Tue May 28, 2019 9:42 am
Has thanked: 8 times
Been thanked: 22 times

Re: BMW i3 CCS/charge port controller

Post by larsrengersen »

The 646 is ticked as 'tested'.
In theory it is possible yours is faulty, but I expect it is something else. For example:
- Wiring issues
- Control logic issues
- Non original charge port
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 »

Eltis; you could try to feed yourself a 5% PWM and observe behavior. Does the LIM tell you something new or the same. Damien does this too if I recall correctly.
The USA bridge is important on the LIM i think it has todo with other standards in USA vs EU.
Converting an Porsche Panamera
see http://www.wdrautomatisering.nl for bespoke BMS modules.
Post Reply