Power up Safely: Mastering the Battery-BMS Connection