Battery and BMS integration