Battery intelligent management system program segment