BMW BMS Message 0x080

Introduction and miscellaneous that we haven't created categories for, yet
Post Reply
FFMan
Posts: 322
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

BMW BMS Message 0x080

Post by FFMan »

I'm trying to activate the balance feature of the BMS modules attached to my BMW G30 batteries. The code cribbed from simpbms on git hub is useful, i have the modukles checking and can read individual cell voltages and the temperatures tec.

The code snippet below sets the balance voltage if balancing is requested but it doesn't appear to work for me. I wonder if the last 2 lines commented as //balancing bits need to be set to something, although the code never appears to do this. Is it enough just to send each module the balance voltage or perhaps i wonder to the bit settings need setting for each cell to apply to, or something else i'm missing.

Does anyone else have this working outside of simpbms, or does anyone have a can dump of a working setup in balance mode ?

thanks

Code: Select all

msg.id = 0x080 | (nextmes);
  msg.len = 8;
  if (balancecells == 1) {
    msg.buf[0] = lowByte((uint16_t((bms.getLowCellVolt()) * 1000) + 5));
    msg.buf[1] = highByte((uint16_t((bms.getLowCellVolt()) * 1000) + 5));
  } else {
    msg.buf[0] = 0xC7;
    msg.buf[1] = 0x10;
  }
  msg.buf[2] = 0x00;  //balancing bits
  msg.buf[3] = 0x00;  //balancing bits
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
tom91
Posts: 1315
Joined: Fri Mar 01, 2019 9:15 pm
Location: Bristol
Has thanked: 106 times
Been thanked: 217 times

Re: BMW BMS Message 0x080

Post by tom91 »

You need to run through the whole SimpBMS code.

There are start up messages to do valid starting checks.
You need to provided propper valid CRC values in the messages.
Also if the BMS modules go into fault states they need to be reset, is also in the SimpBMS code.

Turns out static messages will allow reading of values yet the BMS modules will be in fault states.
Founder Volt Influx https://www.voltinflux.com/
Webstore: https://citini.com/
FFMan
Posts: 322
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

Re: BMW BMS Message 0x080

Post by FFMan »

thanks

i've been through the code, but can always do it again. there is lots in there for other controllers so it takes a bit of dissecting but i have the crc working (required to get the voltages), and i'm reading the fault status but none are in fault that i can tell. i can't see there is much more to do other than request each CMU to balance to a voltage, hence if anyone had any can dumps that would help
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
Post Reply