Detection of lithium iron phosphate battery pack