Lithium iron phosphate battery (LiFeO4 battery) is a very promising power battery. The research on LiFeO4 battery and the realization of its battery management system are very significant for the development of Electric Vehicle. Based on a large number of test data, the equivalent circuit model of battery is established, the parameters of the battery model are obtained using least-square method, and then the improved SOC estimation algorithm is studied in simulation conditions. All of the battery management algorithms are achieved in simulation model. The C code is generated from simulation model and applied in battery management system. Finally, the battery management algorithms are verified by simulation and hardware-in-loop test and bench test.