| Different from traditional fuel vehicles,Electric vehicles(EVs)take batteries as the power source of pure electric vehicles instead of the original fuel,and the motor takes the place of the engine.The motor controllers in the electronic control system have the function of automobile gearbox,which comprehensively determines the power performance indexes of the electric vehicle,such as climbing,acceleration,maximum driving speed,etc.Automotive motor controllers need to test their performance during the entire development cycle and after mass production,and the original test technology cannot meet its complex test requirements.Therefore,automobile-related organizations have gradually formulated a V-model development framework,and the hardware-in-the-loop test technology is currently based on the V-type development framework for the development of electric vehicles.HIL is a key part of the V-shaped development process,which can reduce system development costs and improve development efficiency.This article focuses on the functional development of VT system,which is the mainstream HIL test system of automobile motor controller suppliers,based on the requirements of virtual simulation modeling.The voltage source three-phase bridge inverter circuit is selected as the circuit research basis of the vehicle-mounted high-voltage power inverter,and the motor controller is studied in combination with SVPWM control strategy.In addition,the hardware-in-the-loop test system also includes virtual simulation models of the motor and the motor rotor position sensor.By building and running the PMSM simulation model in the VT6051 A board of the VT System,the synchronous/offline simulation test is realized,and by modeling and simulating the resolver which is a kind of the motor rotor position sensor,and the resolver in the motor rotor position sensor is modeled and simulated.Finally,the resolver model is transformed into VHDL code and compiled into VT2816 board with FPGA chip in VT system.This paper realizes the establishment of test objects for the fault diagnosis of the motor controller,the motor and the motor rotor position sensor in the development cycle of the motor controller.This article constructs the OSI reference model for the automotive network development system through ISO 11898,ISO 15765 and ISO 14229.It consists of the physical layer,data link layer,network layer,transport layer,session layer,presentation layer,and application layer from bottom to top.The Physical Layer,Data Link Layer and Network Layer specify the CAN Bus communication protocol to realize signal transmission among ECUs in automobile,while the Transmission Layer,Session Layer and Application Layer define automobile fault diagnosis service.Automobile ECU fault diagnosis is an important means to detect the function of motor controller in the development of motor controller.Therefore,relevant automobile organizations have defined diagnosis standards for vehicle ECUs by the UDS.This paper examines the development of the motor controller and the functions of the PMSM and resolver models constructed in this paper by separately manufacturing and recovering the faults of the inverter,PMSM and resolver.In the test of motor controller development,there are many items that need to be tested,and there are many identical test items.Therefore,on the basis of manual test,this paper studies its automatic test,and successfully realized the automated testing development of CANoe.Diva and v TESTstudio in the VT System HIL testing system.The actual test project shows that the content of this paper can meet the development requirements. |