Info on BMW hybrid battery packs?

Post Reply
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

No honest! :lol: There is a capture in my original post with a single module disconnected - but looking at the capture I think only 2 modules are picked up and then it does a retry - so need to look after the canbus/power continuity as you suggested

full.PNG
full.PNG (56.84 KiB) Viewed 57545 times
4.PNG
4.PNG (87.89 KiB) Viewed 57545 times
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

No time to bridge over the connector tonight but here is a capture with a single csc having it's cell tap disconnected - does look like it goes quiet, so maybe this is useful
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

cloudy wrote: Fri Jun 26, 2020 9:27 pm No time to bridge over the connector tonight but here is a capture with a single csc having it's cell tap disconnected - does look like it goes quiet, so maybe this is useful
Not a huge issue, but captures is a bit short, the fun bit I feel was a bout to start :D the Master was requesting all the CSC infos. So best capture to do would probally be disconnect all the cell tap wires and leave one module hooked up, that is not ID 0x00.

I looked through my I3 capture and should have the process almost down so just need to see it duplicated to be 100% sure.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Sure, no problem - here is a selection of longer ones with various states - one module is under a stack and I can't get to the connector easily (I think it's 0x203)
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: Info on BMW hybrid battery packs?

Post by Jack Bauer »

Great work on this guys. Much appreciated.
I'm going to need a hacksaw
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

cloudy wrote: Fri Jun 26, 2020 9:48 pm Sure, no problem - here is a selection of longer ones with various states - one module is under a stack and I can't get to the connector easily (I think it's 0x203)

bmw-330e-5modules-5csc-attached-4tap-connector-removed-internalcan-on-off.csv
bmw-330e-5modules-5csc-attached-3tap-connector-removed-internalcan-on-off.csv
bmw-330e-5modules-5csc-attached-2tap-connector-removed-internalcan-on-off.csv
Yes so I can see a module loose the ID and start sending 0x0F4 messages but I do not see it be renumbered. So I would say can you please run a capture until 0x0F4 stops tranmitting and then stop a minute or 2 later.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
jap
Posts: 32
Joined: Fri Jun 26, 2020 5:14 pm
Location: Finland

Re: Info on BMW hybrid battery packs?

Post by jap »

How much does a single module weight? 120kg for the whole pack sounds like a lot..

edit: Weight: 28.65 lbs

https://batteryhookup.com/products/bmw- ... eq=uniform
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Hopefully these are helpful

Single connector removed ~2minutes of logging Same condition but at around 20 seconds in I reattached the cell tap
OutlandishPanda
Posts: 50
Joined: Fri Jun 26, 2020 7:25 pm
Location: West Sussex, UK
Been thanked: 2 times

Re: Info on BMW hybrid battery packs?

Post by OutlandishPanda »

I thought these modules were identical - 5 in a 330e and 6 in 5/7 etc. But this seems to indicate they are "handed" so the + and - can be joined up in series, which I guess makes sense:

https://www.realoem.com/bmw/enUS/showpa ... Id=61_5012

I'm assume the CMUs are identical?

I'll open the lid one day...
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Yes the monitoring units are identical, and can be attached at either end (and side or top of the module) tap wire length permitting - the module housings are identical. The cells I think are all installed in the same way with respect to the chassis, its just the bus bar configuration on top I believe - the lids and connectors are all rotated 180 on those to accommodate
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

Had a good session today with Cloudy, thanks to him for bringing down a pack for me to try the SimpBMS canbus on.

I have now published a SimpBMS code that allows you to command the modules to spit out the voltages and temperatures.

https://github.com/tomdebree/BMWPHEVBMS

To do:
-Figure out how balancing works, I will do some more digging through provided captures to see if any balancing is actually happening
-Plug a CSC into an existing pack that does not belong in it to figure out if this causes the Pack Master to try and reassign it and capture this so we can freely assign IDs to CSC modules.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Thanks again! 8-)
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: Info on BMW hybrid battery packs?

Post by Jack Bauer »

Just tried compiling this and get :

'CAN_message_t' was not declared in this scope

Volt and I3 code compiles fine.
I'm going to need a hacksaw
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Same issue here and reported - so Tom uploaded a hex file in the meantime...

It will basically work, but you'll be missing a few cell voltages in each module (13-16) and no temps showing yet. Also bear in mind on the master connector (at least on the bmw 330e pack) there are two separate internal can loops - module 1-3 and module 4-5. The connector brings them each into a row on the connector but CAN H and CAN L are reversed on one loop - so just pay extra attention to the wire colours :)
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: Info on BMW hybrid battery packs?

Post by Jack Bauer »

Here is what I get on my 740e pack :

BMS Status : 1 Ready 72
Out:0000 Cont:0000 In:0000 Charge Current Limit : 30 A DisCharge Current Limit : 30 A


Modules: 6 Cells: 72 Strings: 1 Voltage: 277.693V Avg Cell Voltage: 3.857V Low Cell Voltage: 3.852V High Cell Voltage: 3.863V Delta Voltage: 11mV Avg Temp: 0.000C

Module #1 46.28V Cell0: 3.86V Cell1: 3.86V Cell2: 3.86V Cell3: 3.86V Cell4: 3.86V Cell5: 3.86V Cell6: 3.86V Cell7: 3.86V Cell8: 3.85V Cell9: 3.86V Cell10: 3.85V Cell11: 3.86V Cell12: 3.86V Cell13: 0.00V Cell14: 0.00V Cell15: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
Module #2 46.24V Cell16: 3.85V Cell17: 3.85V Cell18: 3.85V Cell19: 3.85V Cell20: 3.85V Cell21: 3.85V Cell22: 3.85V Cell23: 3.85V Cell24: 3.85V Cell25: 3.85V Cell26: 3.85V Cell27: 3.85V Cell28: 3.85V Cell29: 0.00V Cell30: 0.00V Cell31: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
Module #3 46.34V Cell32: 3.86V Cell33: 3.86V Cell34: 3.86V Cell35: 3.86V Cell36: 3.86V Cell37: 3.86V Cell38: 3.86V Cell39: 3.86V Cell40: 3.86V Cell41: 3.86V Cell42: 3.86V Cell43: 3.86V Cell44: 3.86V Cell45: 0.00V Cell46: 0.00V Cell47: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
Module #4 46.28V Cell48: 3.86V Cell49: 3.86V Cell50: 3.86V Cell51: 3.86V Cell52: 3.86V Cell53: 3.86V Cell54: 3.86V Cell55: 3.86V Cell56: 3.86V Cell57: 3.86V Cell58: 3.86V Cell59: 3.86V Cell60: 3.86V Cell61: 0.00V Cell62: 0.00V Cell63: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
Module #5 46.26V Cell64: 3.86V Cell65: 3.86V Cell66: 3.85V Cell67: 3.85V Cell68: 3.85V Cell69: 3.85V Cell70: 3.86V Cell71: 3.86V Cell72: 3.86V Cell73: 3.85V Cell74: 3.86V Cell75: 3.86V Cell76: 3.86V Cell77: 0.00V Cell78: 0.00V Cell79: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
Module #6 46.30V Cell80: 3.86V Cell81: 3.86V Cell82: 3.86V Cell83: 3.86V Cell84: 3.86V Cell85: 3.86V Cell86: 3.86V Cell87: 3.86V Cell88: 3.86V Cell89: 3.86V Cell90: 3.86V Cell91: 3.86V Cell92: 3.86V Cell93: 0.00V Cell94: 0.00V Cell95: 0.00V
Temp 1: 0.00C Temp 2: 0.00C Status: 0x0 Bal: 0x0
CANbus 0.00mA 71% SOC 71000.00mAh


Should be 96 cells and about 360v. So it seems to find all 6 modules but missing 3 cells from each
I'm going to need a hacksaw
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

The 13-15 and temp values are all there on the bus with the simpbms as master, just a tweak needed on the mapping :)
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: Info on BMW hybrid battery packs?

Post by Jack Bauer »

Nice work gents.
I'm going to need a hacksaw
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

Good News everyone.

Turns out the cell mapping was correct, however migrating from BMW I3 (12 cell module) to the Phev (16 cell) in code someone forgot to change all the checks / initialisation based on 12 cells.
software mistake cells.JPG
The temperatures was a typo was looking for IDs starting with 0x1780 but should have been 0x180. But now updated and verified using an arduino spitting out Phev Canbus thus hardware in a loop testing. :D

Code now on github : https://github.com/tomdebree/BMWPHEVBMS
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Still can't compile from source (same error) but your fix works! 8-)


Modules: 5 Cells: 80 Strings: 1 Voltage: 308.060V Avg Cell Voltage: 3.851V Low Cell Voltage: 3.847V High Cell Voltage: 3.854V Delta Voltage: 7mV Avg Temp: 22.100C



Module #1 61.62V Cell0: 3.85V Cell1: 3.85V Cell2: 3.85V Cell3: 3.85V Cell4: 3.85V Cell5: 3.85V Cell6: 3.85V Cell7: 3.85V Cell8: 3.85V Cell9: 3.85V Cell10: 3.85V Cell11: 3.85V Cell12: 3.85V Cell13: 3.85V Cell14: 3.85V Cell15: 3.85V

Temp 1: 23.00C Temp 2: 21.00C Status: 0x0 Bal: 0x0

Module #2 61.60V Cell16: 3.85V Cell17: 3.85V Cell18: 3.85V Cell19: 3.85V Cell20: 3.85V Cell21: 3.85V Cell22: 3.85V Cell23: 3.85V Cell24: 3.85V Cell25: 3.85V Cell26: 3.85V Cell27: 3.85V Cell28: 3.85V Cell29: 3.85V Cell30: 3.85V Cell31: 3.85V

Temp 1: 21.00C Temp 2: 23.00C Status: 0x0 Bal: 0x0

Module #3 61.59V Cell32: 3.85V Cell33: 3.85V Cell34: 3.85V Cell35: 3.85V Cell36: 3.85V Cell37: 3.85V Cell38: 3.85V Cell39: 3.85V Cell40: 3.85V Cell41: 3.85V Cell42: 3.85V Cell43: 3.85V Cell44: 3.85V Cell45: 3.85V Cell46: 3.85V Cell47: 3.85V

Temp 1: 23.00C Temp 2: 21.00C Status: 0x0 Bal: 0x0

Module #4 61.64V Cell48: 3.85V Cell49: 3.85V Cell50: 3.85V Cell51: 3.85V Cell52: 3.85V Cell53: 3.85V Cell54: 3.85V Cell55: 3.85V Cell56: 3.85V Cell57: 3.85V Cell58: 3.85V Cell59: 3.85V Cell60: 3.85V Cell61: 3.85V Cell62: 3.85V Cell63: 3.85V

Temp 1: 21.00C Temp 2: 24.00C Status: 0x0 Bal: 0x0

Module #5 61.61V Cell64: 3.85V Cell65: 3.85V Cell66: 3.85V Cell67: 3.85V Cell68: 3.85V Cell69: 3.85V Cell70: 3.85V Cell71: 3.85V Cell72: 3.85V Cell73: 3.85V Cell74: 3.85V Cell75: 3.85V Cell76: 3.85V Cell77: 3.85V Cell78: 3.85V Cell79: 3.85V

Temp 1: 23.00C Temp 2: 21.00C Status: 0x0 Bal: 0x0
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

cloudy wrote: Mon Jun 29, 2020 7:11 pm Still can't compile from source (same error) but your fix works! 8-)
I am quite confused by that, as I get absolutely no error messages about anything to do with canbus inits or defs.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

If i use the updated PHEV .ino but keep the I3 includes it compiles - so something has changed in one of those...
OutlandishPanda
Posts: 50
Joined: Fri Jun 26, 2020 7:25 pm
Location: West Sussex, UK
Been thanked: 2 times

Re: Info on BMW hybrid battery packs?

Post by OutlandishPanda »

Following your amazing progress with great interest. May I ask what hardware are you using - SimpBMS Vn2.3 with Teensy 3.2?
Thanks.
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Info on BMW hybrid battery packs?

Post by cloudy »

Found the issue - stupid me!

It was case sensitivity for the .ino vs the folder it sits within. I had BMWPHEVBMS as folder name and BMWPhevBMS.ino. Renaming to BMWPHEVBMS.ino sorted it... :twisted:

Tom, may be worth renaming the repo or ino? As the repo name is PHEV uppercase, so also is the zip (and therefore folder)...
tom91
Posts: 1305
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 102 times
Been thanked: 216 times

Re: Info on BMW hybrid battery packs?

Post by tom91 »

cloudy wrote: Mon Jun 29, 2020 8:23 pm Found the issue - stupid me!

It was case sensitivity for the .ino vs the folder it sits within. I had BMWPHEVBMS as folder name and BMWPhevBMS.ino. Renaming to BMWPHEVBMS.ino sorted it... :twisted:

Tom, may be worth renaming the repo or ino? As the repo name is PHEV uppercase, so also is the zip (and therefore folder)...
Thanks for finding renamed the repository to BMWPhevBMS
OutlandishPanda wrote: Mon Jun 29, 2020 8:08 pm Following your amazing progress with great interest. May I ask what hardware are you using - SimpBMS Vn2.3 with Teensy 3.2?
Thanks.
You can us a SimpBMS V2.3 with Teensy 3.2 or just even a Teensy 3.2 with a Can Transciever.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
OutlandishPanda
Posts: 50
Joined: Fri Jun 26, 2020 7:25 pm
Location: West Sussex, UK
Been thanked: 2 times

Re: Info on BMW hybrid battery packs?

Post by OutlandishPanda »

New to Teensy so loaded libraries and BMWPhevBMS.ino compiles OK.

Just FYI, it had many warnings such as:

Code: Select all

BMSModuleManager.cpp:166: warning: ISO C++ forbids converting a string constant to 'char*'
Is there a compiler setting to accept this, or just ignore?

I also had to remove " - master" from the end of the unzipped folder from your github, but that is no issue.

What automotive transceiver you have found to work well with Teensy 3.2? MCP2562, MCP2551 or other?

Thanks.
Post Reply