Intelligent lithium iron phosphate battery for communication