Vortex position sensor simulation and fault injection system based on VT board card
By integrating the eddy current position sensor simulation and fault injection model on the VT board, the complex integration problem of the VT System in simulating complex eddy current position sensor signals is solved, the full-featured automated test of the motor controller is realized, and the reliability of the test system is improved. Integration and flexibility.
Patent Information
- Application Number
- CN202410581970.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, when the VT System simulates complex and high-real-time eddy current position sensor signals, external analog devices are required, resulting in complex test system integration and the inability to realize full-function automated testing of the motor controller.
Using a VT board that integrates eddy current position sensor simulation and fault injection models, the speed and motor pole logarithm variables are set through CANoe software, the sine wave signal and cosine wave signal are calculated and output, and the signal under fault conditions is injected into the motor control board Output status to achieve full-featured automated testing.
There is no need for external eddy current position sensor simulation devices, which improves the integration of the test system and realizes full-function automated testing. The system has high flexibility and can dynamically adjust various dynamic and fault conditions. It has multiple parameters and high matching performance, and is suitable for different types of motors. Level logarithm.
Smart Images

Figure CN118550273A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy technology, and in particular to an eddy current position sensor simulation and fault injection system based on a VT board. Background Art
[0002] With the continuous development of new energy vehicles, the requirements for the core component motor controller are getting higher and higher. Faced with the problems of increasingly complex functions, higher integration and short development cycle of motor controllers, vehicle manufacturers and parts suppliers have higher and higher requirements for the test efficiency and test technology of motor controllers. How to effectively, quickly and cost-effectively improve the software quality of motor controllers is an urgent problem that all vehicle manufacturers and parts suppliers need to solve. The hardware-in-the-loop test method in the V-model development based on the automotive industry is an efficient test method recognized by all parties.
[0003] In terms of conventional motor controller testing, the main testing technology in the early stage of development is the hardware-in-the-loop (HIL) testing method. The main test object of this solution is the control circuit of the motor controller, which belongs to the signal-level test. It focuses on testing the logic function of the controller. Among the current test system suppliers, the system with low cost and capable of automated testing is Vector's VT System system. The system uses the boards provided by the VT System system to build the test environment and uses vTESTstudio to write automated test scripts to achieve automated testing. The VT System system provides different types of boards that can simulate simple signal outputs, including voltage signals, PWM signals, various low-voltage communication signals and resistance values, and can realize the output signals of some simple sensors or functional components. At the same time, the board also has the function of measuring different types of signals to achieve a closed loop.
[0004] The eddy current position sensor is an electromagnetic non-contact sensor that measures the absolute angular position of the motor and is often used as a position sensor for the motor. It can measure the speed angle and position signal of the motor in real time and is the most important sensor for closed-loop control in motor control. The VT board has great difficulty in simulating eddy current position sensor signals with complex signals and high real-time requirements. To implement a hardware-in-the-loop test system, the VT System needs to connect an external eddy current position sensor simulation device. This makes the test system integration complex and cannot effectively implement the hardware-in-the-loop test system for the motor controller. Summary of the invention
[0005] The purpose of the present invention is to provide an eddy current position sensor simulation and fault injection system based on a VT board that improves integration and realizes full-function automated testing.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A VT board-based eddy current position sensor simulation and fault injection system comprises a VT System test bench, a VT board plugged into the VT System test bench, and CANoe software connected to the VT System test bench, wherein the CANoe software is used to set speed and motor pole pair number variables, the VT board is used to connect to a motor control board including a simulated eddy current position sensor to receive the speed and motor pole pair number variables, and the VT board is also used to calculate the sine wave signal and cosine wave signal of the eddy current position sensor according to an eddy current position sensor simulation and fault injection model, as well as the signal output states of the sine wave signal and the cosine wave signal of the simulated eddy current position sensor under various fault conditions, and inject the signals into the motor control board.
[0008] Furthermore, the VT System stand is connected to the CANoe software by Ethernet communication to establish communication between the VT board and the CANoe software.
[0009] Furthermore, the VT board adopts a VT 2816 FPGA board.
[0010] Furthermore, the eddy current position sensor simulation and fault injection model includes a signal generation sub-model and a fault injection sub-model. The signal generation sub-model is used to calculate the sine wave signal and cosine wave signal output by the eddy current position sensor according to the speed and motor pole pair number variables. The fault injection sub-model is used to perform logical operations based on the sine wave signal and cosine wave signal to simulate the signal output state of the eddy current position sensor under various fault conditions.
[0011] Furthermore, the calculation expressions of the sine wave signal and the cosine wave signal output by the eddy current position sensor are as follows:
[0012] U cos =Kcos(P n θ)
[0013] U sin =Ksin(P n θ)
[0014] Where U cos is a cosine wave signal, U sin is a sine wave signal, K is the transformation ratio, P n is the motor stage logarithm, and θ is the rotor position.
[0015] Furthermore, the calculation expression of the rotor position is:
[0016]
[0017]
[0018] In the formula, ω motor is the motor target angular velocity, and n is the motor target speed.
[0019] Furthermore, the fault conditions of the eddy current position sensor include a Sin to power short circuit fault Sin STB, a Sin to ground short circuit fault Sin STG, a Cos to power short circuit fault Cos STB and a Cos to ground short circuit fault CosSTG.
[0020] Furthermore, the step of simulating the signal output state of the sine wave signal and the cosine wave signal of the eddy current position sensor under various fault conditions includes:
[0021] For a Sin STB type fault, the fault injection sub-model receives the power supply fault flag bit of the system variable Sin signal switched to 1, and the fault injection sub-model increases the signal output amplitude of the sine wave signals Sin- and Sin+ to be greater than or equal to 5V;
[0022] For a Sin STG type fault, the fault injection sub-model receives the ground fault flag of the system variable Sin signal switched to 1, and the fault injection sub-model lowers the output amplitude of the sine wave signals Sin- and Sin+ to make them equal to 0V;
[0023] For the Cos STB type fault, the fault injection sub-model receives the power supply fault flag bit of the system variable Cos signal switched to 1, and the fault injection sub-model increases the output amplitude of the cosine wave signal Cos- and Cos+ to make them equal to 5V;
[0024] For a Cos STG type fault, the fault injection sub-model receives the ground fault flag of the system variable Cos signal switched to 1, and the fault injection sub-model lowers the output amplitude of the cosine wave signals Cos- and Cos+ to make them equal to 0V.
[0025] Furthermore, the system variables Sin signal to power fault flag, Sin signal to ground fault flag, Cos signal to power fault flag, and Cos signal to ground fault flag are assigned values through CANoe software.
[0026] Furthermore, the VT board includes four output channels, which are connected to the input end of the eddy current position sensor on the motor control board and are used to output the signal output states of the sine wave signals Sin-, Sin+ and the cosine wave signals Cos- and Cos+ under various fault conditions.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] (1) In view of the problem in the prior art that an external eddy current position sensor simulation device is required, which leads to complex test system integration and inability to realize full-function automated testing of the motor controller, the present invention adopts a VT board that integrates eddy current position sensor simulation and fault injection model, which can simulate the eddy current position sensor signal in real time and can simulate the output signal of the eddy current position sensor under various fault conditions. There is no need for an external eddy current position sensor simulation device, thereby improving the integration of the test system and realizing full-function automated testing.
[0029] (2) The CANoe software of the present invention can set system variables, so various dynamic and fault conditions of the eddy current position sensor during operation can be dynamically adjusted through the CANoe software. The system has high flexibility and is conducive to dynamic adjustment of the test.
[0030] (3) The system of the present invention cooperates with automated testing, and can implement automated fault injection testing by calling corresponding system variables during the testing process.
[0031] (4) The present invention has high parameter multi-matching performance and can perform matching based on different types of motor level logarithms by modifying corresponding parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the system structure of the present invention;
[0033] Figure 2 This is a relationship diagram of the internal model of the VT2816 FPGA board of the present invention. DETAILED DESCRIPTION
[0034] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0035] This embodiment provides an eddy current position sensor simulation and fault injection system based on a VT board, such as Figure 1 As shown, the system includes: a control board 10, a VT board 20, a VT System bench 30, and a CANoe (CANopen environment) software 40. In this embodiment, the VT board 20 is a VT 2816 FPGA board, which is plugged into the VT System bench 30. The VT 2816 FPGA board receives speed and fault injection signals from the CANoe software 40. The VT 2816 FPGA board calculates output signals under different working conditions in real time based on the received signals through an internal model.
[0036] The eddy current position sensor simulation and fault injection model architecture mainly includes two parts, namely, the eddy current position sensor signal generation sub-model 21 and the fault injection sub-model 22. Figure 2 The model is built in Simulink using FPGA (Field-Programmable Gate Array) modules and compiled and downloaded into the memory of the VT 2816FPGA board.
[0037] The signal generation sub-model 21 calculates the sine wave signal and cosine wave signal output by the eddy current position sensor according to the speed and motor pole pair number variables received from the CANoe software 40. Its mathematical model is as follows:
[0038] U cos =Kcos(P n θ)
[0039] U sin =Ksin(P n θ)
[0040] Where U cos is a cosine wave signal, U sin is a sine wave signal, K is the transformation ratio, P n is the motor stage logarithm, and θ is the rotor position.
[0041] The θ in the formula can be obtained by the following formula.
[0042]
[0043]
[0044] Where: motor is the target angular velocity of the motor; n is the target speed of the motor.
[0045] In summary, the signal generation sub-model 21 can be built according to the above mathematical formula, in which the parameters that need to be configured are mainly the motor level logarithm P n , can be configured according to the actual motor level logarithm. n is the motor target speed ( Figure 2 speed in the model), set the motor target speed according to different working conditions to dynamically adjust the model operation status.
[0046] The main function of the fault injection sub-model 22 is to simulate the output states of the eddy current position sensor Sin-, Sin+, Cos-, and Cos+ signals under various fault conditions. The eddy current position sensor faults generally include Sin STB (Sin short circuit fault to power supply), Sin STG (Sin short circuit fault to ground), Cos STB (Cos short circuit fault to power supply), and Cos STG (Cos short circuit fault to ground). The input variables of this module are Sin-, Sin+, Cos-, and Cos+ output by the signal generation sub-model 21, and also include the fault injection variables Sin signal to power supply fault flag Sin_STB_flag, Sin signal to ground fault flag Sin_STG_flag, Cos signal to power supply fault flag Cos_STB_flag, and Cos signal to ground fault flag Cos_STG_flag. These variables can be directly assigned in the CANoe software 40.
[0047] The fault injection sub-model 22 performs logic processing on the sin / cos signal input by the signal generation sub-model 21 according to the system variables set by the CANoe software 40 .
[0048] For manufacturing Sin STB type faults, when the fault injection sub-model 22 receives the system variable Sin_STB_flag from the CANoe software 40 and switches to 1, the fault injection sub-model 22 will increase the output amplitude of the Sin- and Sin+ signals to be greater than or equal to 5V.
[0049] For manufacturing Sin STG type faults, when the fault injection sub-model 22 receives the system variable Sin_STG_flag from the CANoe software 40 and switches to 1, the fault injection sub-model 22 will pull down the Sin- and Sin+ signal output amplitudes to equal 0V.
[0050] For manufacturing Cos STB type faults, when the fault injection sub-model 22 receives the system variable Cos_STB_flag from the CANoe software 40 switching to 1, the fault injection sub-model 22 will pull up the Cos- and Cos+ signal output amplitudes to be equal to 5V.
[0051] For manufacturing Cos STG type faults, when the fault injection sub-model 22 receives the system variable Cos_STG_flag from the CANoe software 40 switching to 1, the fault injection sub-model 22 will pull down the Cos- and Cos+ signal output amplitudes to equal 0V.
[0052] VT System rack 30 is used to provide a stable operating environment for VT 2816FPGA board, including providing 12V low-voltage power supply and real-time communication. VT System rack 30 uses Ethernet communication to connect to the computer to establish communication between VT2816FPGA board and CANoe software 40.
[0053] The CANoe software 40 is installed on a computer. The CANoe software 40 controls the output signal of the VT2816FPGA board by controlling system variables, so as to control the VT 2816FPGA board to simulate the eddy current position sensor running under different working conditions.
[0054] The system works as follows:
[0055] The VT 2816FPGA board is plugged into the VT Sytem rack 30 to provide a stable operating environment. The VT Sytem rack 30 is connected to the computer via Ethernet to enable the VT 2816FPGA board to communicate with the computer.
[0056] By configuring the four channels of the VT 2816FPGA board as FPGA output, the voltage range is configured to -10-+10, as the output channels of Sin-, Sin+, Cos-, and Cos+, and the four channels are connected to the eddy current position sensor input port on the motor control board 10.
[0057] The VT 2816 FPGA board is identified in the established CANoe software 40 project, and the corresponding parameters are configured according to the interface of the VT 2816 FPGA board. The four output channels are configured as voltage output ports for FPGA to output Sin-, Sin+, Cos-, and Cos+ voltage signals.
[0058] In summary, with the CANoe software 40, the eddy current position sensor can be simulated and various fault functions of the eddy current position sensor can be manufactured. The VT 2816FPGA board can meet the real-time performance of the eddy current position sensor signal and improve the integration of the test system to achieve full-function automated testing.
[0059] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0060] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A VT board-based eddy current position sensor simulation and fault injection system, characterized in that: The invention comprises a VTSystem stand (30), a VT board (20) plugged into the VT System stand (30), and CANoe software (40) connected to the VT System stand (30), wherein the CANoe software (40) is used to set speed and motor pole pair number variables, the VT board (20) is used to connect to a motor control board including a simulated eddy current position sensor to receive the speed and motor pole pair number variables, and the VT board (20) is also used to calculate the sine wave signal and cosine wave signal of the eddy current position sensor according to the speed and motor pole pair number variables using an eddy current position sensor simulation and fault injection model, as well as the signal output states of the sine wave signal and cosine wave signal of the simulated eddy current position sensor under various fault conditions, and inject the signal output states of the sine wave signal and cosine wave signal of the simulated eddy current position sensor into the motor control board (10).
2. The VT board-based eddy current position sensor simulation and fault injection system according to claim 1, characterized in that: The VT System rack (20) is connected to the CANoe software (40) by using an Ethernet communication method, so as to establish communication between the VT board (10) and the CANoe software (40).
3. The VT board-based eddy current position sensor simulation and fault injection system according to claim 1, characterized in that: The VT board (20) adopts a VT 2816 FPGA board.
4. The VT board-based eddy current position sensor simulation and fault injection system according to claim 1, characterized in that: The eddy current position sensor simulation and fault injection model comprises a signal generation sub-model (21) and a fault injection sub-model (22), wherein the signal generation sub-model (21) is used to calculate the sine wave signal and the cosine wave signal output by the eddy current position sensor according to the speed and the motor pole pair number variables, and the fault injection sub-model (22) is used to perform logic operations based on the sine wave signal and the cosine wave signal to simulate the signal output state of the eddy current position sensor under various fault conditions.
5. The VT board-based eddy current position sensor simulation and fault injection system according to claim 4, characterized in that: The calculation expressions of the sine wave signal and cosine wave signal output by the eddy current position sensor are: U cos =Kcos(P n i) U sin =Ksin(P n i) Where U cos is a cosine wave signal, U sin is a sine wave signal, K is the transformation ratio, P n is the motor stage logarithm, and θ is the rotor position.
6. The VT board-based eddy current position sensor simulation and fault injection system according to claim 5, characterized in that: The calculation expression of the rotor position is: In the formula, ω motor is the motor target angular velocity, and n is the motor target speed.
7. The VT board-based eddy current position sensor simulation and fault injection system according to claim 4, characterized in that: The fault conditions of the eddy current position sensor include Sin to power short circuit fault Sin STB, Sin to ground short circuit fault Sin STG, Cos to power short circuit fault Cos STB and Cos to ground short circuit fault Cos STG.
8. The VT board-based eddy current position sensor simulation and fault injection system according to claim 7, characterized in that: The step of simulating the signal output state of the sine wave signal and the cosine wave signal of the eddy current position sensor under various fault conditions comprises: For a Sin STB type fault, the fault injection sub-model (22) receives the power supply fault flag bit of the system variable Sin signal switched to 1, and the fault injection sub-model (22) increases the signal output amplitude of the sine wave signals Sin- and Sin+ to be greater than or equal to 5V; For a Sin STG type fault, the fault injection sub-model (22) receives the ground fault flag of the system variable Sin signal switched to 1, and the fault injection sub-model (22) lowers the output amplitude of the sine wave signals Sin- and Sin+ to make them equal to 0V; For a Cos STB type fault, the fault injection sub-model (22) receives the power fault flag bit of the system variable Cos signal switched to 1, and the fault injection sub-model (22) increases the output amplitude of the cosine wave signals Cos- and Cos+ to be equal to 5V; For a Cos STG type fault, the fault injection sub-model (22) receives the ground fault flag of the system variable Cos signal switched to 1, and the fault injection sub-model (22) lowers the output amplitude of the cosine wave signals Cos- and Cos+ to make them equal to 0V.
9. The VT board-based eddy current position sensor simulation and fault injection system according to claim 8, characterized in that: The system variables Sin signal to power supply fault flag, Sin signal to ground fault flag, Cos signal to power supply fault flag, and Cos signal to ground fault flag are assigned values through CANoe software (40).
10. The VT board-based eddy current position sensor simulation and fault injection system according to claim 1, characterized in that: The VT board (10) comprises four output channels, which are connected to the input end of the eddy current position sensor on the motor control board and are used to output the signal output states of the sine wave signals Sin-, Sin+ and the cosine wave signals Cos- and Cos+ under various fault conditions.
