Motor controller, main control chip thereof and motor rotor angle acquisition method

By using the main control chip in the motor control system to obtain and control the rotor angle, the risk of failure caused by the hardware decoding chip is solved, and accurate angle information acquisition and safety improvement are achieved.

CN117806197BActive Publication Date: 2024-10-29BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211180360.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2024-10-29
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

The hardware decoding chip in the existing motor control system brings additional failure probability, increases the risk of failure in the rotor angle acquisition link, and reduces the reliability and safety of the system.

Method used

The main control chip is used to obtain the motor rotor angle information through the first processor, and is controlled through the second processor to achieve safe monitoring of data interaction and task execution, eliminating the need for a dedicated hardware decoding chip and directly connecting to the position sensor. Algorithm implements angle decoding.

Benefits of technology

Accurate rotor angle information is obtained, reducing system complexity and cost, and improving the safety and reliability of motor operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117806197B_ABST
    Figure CN117806197B_ABST
Patent Text Reader

Abstract

The present invention discloses a motor controller and its main control chip and a motor rotor angle acquisition method, wherein the main control chip comprises: a first processor and a second processor, wherein the first processor is configured to send an excitation signal to a position sensor so that the position sensor detects the rotor position of the motor, and performs a calculation process on the position signal detected by the position sensor to obtain the rotor angle information of the motor; the second processor is configured to control the motor according to the rotor angle information of the motor, and perform safety monitoring on the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor. The main control chip of the present invention can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor technology, and in particular to a main control chip of a motor controller, a motor controller and a method for acquiring a motor rotor angle. Background Art

[0002] The motor control function of new energy vehicles relies on the angle information of the rotor. Currently, the industry widely adopts the method of installing a rotary transformer with strong anti-interference ability on the rotor, and then using a special hardware decoding chip and peripheral circuits to observe the angle information of the rotor. The main control chip periodically obtains the angle solution results from the hardware decoding chip through SPI (Serial Peripheral Interface) communication and other methods.

[0003] Although accurate motor rotor angle information can be obtained through hardware decoding when the adaptation is good, the hardware decoding chip itself will bring additional failure probability, increase the failure risk in the angle acquisition link of the motor controller, increase uncertainty in subsequent torque output control, and may even cause system oscillation, reducing the reliability and safety of the drive system when the motor is running. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to propose a main control chip of a motor controller, which obtains the rotor angle information of the motor through a first processor, controls the motor through a second processor, and safely monitors the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor, so as to obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0005] A second objective of the present invention is to provide a motor controller.

[0006] The third object of the present invention is to provide a method for acquiring a motor rotor angle.

[0007] To achieve the above-mentioned objectives, an embodiment of the first aspect of the present invention proposes a main control chip of a motor controller, comprising a first processor and a second processor, wherein the first processor is configured to send an excitation signal to a position sensor so that the position sensor detects the rotor position of the motor, and to solve and process the position signal detected by the position sensor to obtain the rotor angle information of the motor; the second processor is configured to control the motor according to the rotor angle information of the motor, and to perform security monitoring on the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor.

[0008] According to the main control chip of the motor controller of the embodiment of the present invention, the first processor is configured to send an excitation signal to the position sensor so that the position sensor detects the rotor position of the motor, and solves and processes the position signal detected by the position sensor to obtain the rotor angle information of the motor, and the second processor is configured to control the motor according to the rotor angle information of the motor, and safely monitor the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor. As a result, the main control chip can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0009] In addition, the main control chip of the motor controller according to the above embodiment of the present invention may also have the following additional technical features:

[0010] According to one embodiment of the present invention, the second processor may include: a safety monitoring unit and a motor control unit, and is configured as a three-level architecture having a functional layer, a single-point fault diagnosis layer and a potential fault diagnosis layer, wherein the motor control unit performs control tasks on the motor through the functional layer, the safety monitoring unit monitors the data interacting between the first processor and the position sensor and the data transmitted from the first processor to the second processor through the single-point fault diagnosis layer, and monitors the task execution results of the single-point fault diagnosis layer and the hardware self-check of the second processor through the potential fault diagnosis layer.

[0011] According to one embodiment of the present invention, the first processor may include: a channel selection unit and an angle resolution unit, wherein the channel selection unit is configured to provide an excitation signal to the position sensor, and to condition a feedback signal generated by the position sensor according to the excitation signal to obtain a position signal, and the angle resolution unit is configured to perform angle resolution according to the position signal to obtain rotor angle information.

[0012] According to one embodiment of the present invention, the safety monitoring unit monitors the input signal, output result and task time point of the angle solving unit through the single-point fault diagnosis layer.

[0013] According to an embodiment of the present invention, the safety monitoring unit monitors the program flow state when the single-point fault diagnosis layer executes a task and the running state of the second processor through the potential fault diagnosis layer.

[0014] According to one embodiment of the present invention, the second processor performs synchronous operation verification on the safety monitoring of the single-point fault diagnosis layer and the safety monitoring of the potential fault diagnosis layer through lock-step verification.

[0015] According to one embodiment of the present invention, when the security monitoring unit monitors through the single-point fault diagnosis layer, it covers the failure modes of all data flows and program flows of the single-point fault diagnosis layer, and when monitoring through the potential fault diagnosis layer, it covers the failure modes of all data flows and program flows of the potential fault diagnosis layer.

[0016] According to one embodiment of the present invention, the angle solving task of the first processor and the safety monitoring task of the second processor are run in parallel.

[0017] To achieve the above-mentioned purpose, a second aspect of the present invention provides a motor controller, including the above-mentioned main control chip.

[0018] The motor controller of the embodiment of the present invention, by including the above-mentioned main control chip, can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0019] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a method for obtaining the rotor angle of a motor, which is applied to the above-mentioned motor controller. The method includes: sending an excitation signal to a position sensor so that the position sensor detects the rotor position of the motor; solving and processing the position signal detected by the position sensor to obtain the rotor angle information of the motor, wherein, in the process of obtaining the rotor angle information of the motor, the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor are securely monitored.

[0020] According to the motor rotor angle acquisition method of the embodiment of the present invention, an excitation signal is first sent to the position sensor so that the position sensor detects the rotor position of the motor, and then the position signal detected by the position sensor is solved and processed to obtain the rotor angle information of the motor. In the process of obtaining the rotor angle information of the motor, the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor are safely monitored. Therefore, the method can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A block diagram of a main control chip of a motor controller according to an embodiment of the present invention;

[0023] Figure 2 A schematic diagram of hardware calculation of rotor angle in a motor drive system in the prior art;

[0024] Figure 3 A schematic diagram of the internal structure of a main control chip of a motor controller according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of the internal functions of a channel selection unit according to an embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of the internal functions of an angle calculation unit according to an embodiment of the present invention;

[0027] Figure 6 is a schematic diagram of the internal functions of a security monitoring unit according to an embodiment of the present invention;

[0028] Figure 7 is a schematic diagram of a security monitoring object according to an embodiment of the present invention;

[0029] Figure 8 A flowchart showing that a first processor and a second processor run in parallel according to a specific embodiment of the present invention;

[0030] Fig. 9 is a flow chart of second processor security monitoring according to a specific embodiment of the present invention;

[0031] Fig.10 is a block diagram of a motor controller according to an embodiment of the present invention;

[0032] Fig.11 Flow chart of a method for acquiring a motor rotor angle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0034] The following describes a main control chip of a motor controller, a motor controller, and a method for acquiring a motor rotor angle provided in an embodiment of the present invention with reference to the accompanying drawings.

[0035] Currently, if Figure 2 As shown in the figure, when calculating the angle of the motor rotor, a rotary transformer with strong anti-interference is installed on the rotor, and then a special hardware decoding chip and peripheral circuits are used to observe the angle information. The main control chip periodically obtains the angle solution result from the hardware decoding chip through SPI communication and other methods. Specifically, the motor is divided into a stator and a rotor. A rotary transformer is installed at the end of the rotor. Its shell is fixed to the stator or the housing, and the rotating part is fixed to the rotor, so that the rotary transformer can reflect the angle information of the rotor. The external signal interface of the rotary transformer is divided into three channels: excitation signal EXC, sine signal SIN, and cosine signal COS. The voltage waveform is a high-frequency sine wave, where EXC is the input carrier signal, and SIN and COS are output modulation wave signals. The original EXC signal output by the hardware decoding chip is shaped and amplified by the peripheral circuit and then transmitted to the rotary transformer. The rotary transformer senses the sine and cosine signals and adjusts the amplitude through the peripheral circuit and then transmits them back to the decoding chip, thereby calculating the angle and speed information. The decoding chip can transmit the angle and speed solution results to the main control chip through SPI communication and other methods. The main control chip is responsible for outputting the motor control signals required by the three-phase inverter based on information such as angle and current, thereby realizing controllable operation of the motor.

[0036] However, the use of hardware decoding chips will bring additional failure probability, increase the risk of failure in the angle acquisition link of the motor controller, increase uncertainty for the subsequent torque output control, and may even cause the entire system to oscillate, reducing the reliability and safety of the product. In addition, the internal logic of the decoding chip is fixed, and the diagnostic mechanism is limited, which cannot completely prevent the risk caused by failure. Therefore, it is usually difficult to meet the functional safety requirements. Therefore, in order to solve the above-mentioned problems, the present invention provides a main control chip of a motor controller, which retains the position sensor at the end of the motor shaft, so that accurate rotor angle information can be obtained, and a dedicated hardware decoding chip is omitted, reducing system complexity and cost. The main control chip is directly connected to the signal of the motor position sensor, and a redundant backup is added at the signal line end, and the angle decoding is realized by the algorithm in the main control chip. When the algorithm is decoded, the state quantity of each step is saved in the form of accessible data, and the angle solution unit is monitored by the program flow and data flow through an independent monitoring unit that meets the functional safety requirements to ensure the validity of the angle solution unit and the solution result, and avoid the risk of motor operation due to angle failure.

[0037] Figure 1 4 is a block diagram of a main control chip of a motor controller according to an embodiment of the present invention.

[0038] like Figure 1As shown, the main control chip 100 of the motor controller may include: a first processor 110 and a second processor 120 .

[0039] The first processor 110 is configured to send an excitation signal to the position sensor so that the position sensor detects the rotor position of the motor, and performs a calculation on the position signal detected by the position sensor to obtain the rotor angle information of the motor. The second processor 120 is configured to control the motor according to the rotor angle information of the motor, and to perform security monitoring on the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor.

[0040] Specifically, the first processor 110 can send an excitation signal to the position sensor, that is, the input signal of the sensor, which can be an excitation square wave or a sine wave, or a low-voltage direct current. When the position sensor receives the excitation signal, the rotor of the motor can rotate accordingly, the position sensor can detect the rotor position of the motor, and send the detected position signal to the first processor 110, the first processor 110 performs a solution process on the position signal, and the rotor angle information of the motor can be obtained after the solution process is completed. After obtaining the rotor angle information of the motor, the second processor 120 can control the motor accordingly according to the rotor angle information of the motor, so as to realize the controllable operation of the motor. In addition, the second processor 120 can also perform safety monitoring when data is exchanged between the first processor and the position sensor, perform safety monitoring when data is transmitted between the first processor and the second processor, and perform safety monitoring when the first processor and the second processor perform their own tasks, which makes up for the shortcomings of insufficient safety monitoring in the prior art and greatly improves the overall safety of the drive system. Among them, the drive system is a power system composed of a motor, a motor controller, and a reducer in a new energy vehicle.

[0041] Therefore, accurate rotor angle information can be obtained through the main control chip of the motor controller, which reduces costs and improves the safety of the drive system when the motor is running.

[0042] According to one embodiment of the present invention, Figure 3As shown, the second processor 120 may include: a safety monitoring unit 121 and a motor control unit 122, and is configured as a three-level architecture having a functional layer, a single-point fault diagnosis layer, and a potential fault diagnosis layer. The motor control unit 122 performs control tasks on the motor through the functional layer, and the safety monitoring unit 121 monitors the data exchanged between the first processor 110 and the position sensor and the data transmitted from the first processor 110 to the second processor 120 through the single-point fault diagnosis layer, and monitors the task execution results of the single-point fault diagnosis layer and the hardware self-check of the second processor 120 through the potential fault diagnosis layer.

[0043] The second processor 120 is a unit for using the angle solution result and a safety monitoring unit, forming a typical functional safety level 3 architecture, namely, including a functional layer L1, which is used to perform angle solution and motor control, etc.; a single-point fault diagnosis layer L2, which is mainly for real-time monitoring of the functional operation status; and a potential fault diagnosis layer L3, which mainly includes monitoring the operation status of the single-point fault diagnosis layer L2, the execution results of the task, and the self-test of the hardware function of the second processor itself. Specifically, the angle solution result calculated by the first processor is used by the motor control unit 122 in the functional layer L1 to control the motor and perform control tasks on the motor. At the same time, the safety monitoring unit 121 located in the single-point fault diagnosis layer L2 monitors the data exchanged between the first processor 110 and the position sensor, such as the amplitude of the original signal, and can also monitor the data transmitted from the first processor 110 to the second processor 120, such as the angle, speed, time and sampled voltage after settlement by the angle solution unit. In addition, the security monitoring unit 121 can monitor the task execution results of the single point fault diagnosis layer L2 and the hardware self-check of the second processor 120 through the potential fault diagnosis layer L3, for example, monitoring whether the task execution time of the single point fault diagnosis layer L2 has timed out and the self-check of the chip components.

[0044] According to one embodiment of the present invention, Figure 3 As shown, the first processor 110 may include: a channel selection unit 111 and an angle calculation unit 112. The channel selection unit 111 is configured to provide an excitation signal to the position sensor, and condition a feedback signal generated by the position sensor according to the excitation signal to obtain a position signal, and the angle calculation unit 112 is configured to perform angle calculation according to the position signal to obtain rotor angle information.

[0045] Specifically, if Figure 3 As shown, the channel selection unit 111 can input different forms of excitation signals 1 to the position sensor, that is, the type of the excitation signal 1 can be determined according to the type of the position sensor, for example, Figure 4As shown, the position sensor can be powered by low-voltage DC power supply (low-voltage power supply), such as 5V or 12V or other voltages, or a high-frequency signal generator (kHz or MHz level) can be used to generate an excitation square wave or sine wave, which is then conditioned to provide an excitation signal 1. After the position sensor receives the excitation signal, it outputs a feedback signal 2 to the channel selection unit 111, and the channel selection unit 111 can condition the generated feedback signal 2, such as Figure 4 As shown, by performing a series of conditioning on the feedback signal 2, for example, by distinguishing high-frequency signals from low-frequency signals, judging single-ended signals and differential signals, adjusting the signal amplitude through the operational amplifier circuit, and adjusting the zero crossing point, etc., the position signal 3 is adjusted to a suitable range, that is, the voltage is converted to a sine and cosine signal suitable for the sampling range. After determining the position signal 3, the angle resolution unit 112 can further process the position signal 3 to obtain the rotor angle information 4, for example, Figure 5 As shown, the rotor angle information 4 can be obtained after processing through steps such as signal demodulation, signal filtering, error calculation, and angle resolution. Among them, the rotor angle information 4 may include: memory variable data, such as rotor angle, rotor speed, time (a moment corresponding to the rotor angle during the operation of the motor); pulse signal, obtaining position increment by collecting rising or falling edges; parallel port signal, obtaining position absolute value through multiple pin levels; SPI signal, transmitting angle message through serial interface, etc. In addition, if the signal output by the position sensor itself meets the application requirements (the signal can be identified within the sampling range), it can also be directly entered into the angle resolution unit 112 for angle resolution to obtain the rotor angle information without passing through the channel selection unit 111. When calculating the error, the envelope is first extracted from the original sine and cosine signal through the demodulation algorithm, that is, the high-frequency component with a frequency of (ω / 2π) is eliminated, and only the part related to θ is retained to obtain the demodulated sine and cosine signal. The angle error between the signal angle and the observation result can be calculated by the following approximate formula:

[0046] Δθ=θ signal -θ0≈sin(θ signal -θ0)=sin(θ signal )cos(θ0)-cos(θ signal )sin(θ0) (1)

[0047] Where Δθ is the angle error, θ signal is the signal angle, θ0 is the observation result.

[0048] Finally, a second-order phase-locked loop is used to achieve angle tracking, which is equivalent to a proportional integral regulator and an integrator cascade, and can continuously track the position and speed of the resolver at intervals of the cycle of the excitation signal 1. As a result, a dedicated decoding chip is omitted when obtaining the rotor angle information, reducing the design complexity and cost.

[0049] According to an embodiment of the present invention, the safety monitoring unit 121 monitors the input signal, output result and task time point of the angle solving unit 112 through a single-point fault diagnosis layer.

[0050] According to an embodiment of the present invention, the security monitoring unit 121 monitors the program flow state when the single-point fault diagnosis layer executes a task and the running state of the second processor 120 through the potential fault diagnosis layer.

[0051] Specifically, if Figure 6 As shown, the safety monitoring unit 121 includes a single-point fault diagnosis layer L2 and a potential fault diagnosis layer L3. The single-point fault diagnosis layer L2 is used to monitor the original signal subunit ( Figure 6 The original signal monitoring (hereinafter referred to as raw signal monitoring) monitors the input and output signals of the position sensor, such as the excitation signal 1 and the feedback signal 2, through the setting signal monitoring subunit ( Figure 6 The conditioned position signal 3 is monitored by the simple setting signal monitoring subunit ( Figure 6 The rotor angle information 4 is monitored by the safety monitoring unit 121. If any fault is detected by the safety monitoring unit 121, the safety state management subunit ( Figure 6 The function of the potential fault diagnosis layer L3 is to monitor the running state of the single-point fault diagnosis layer L2 when executing tasks and to self-check the hardware functions themselves. For example, it monitors the program flow state when the single-point fault diagnosis layer L2 executes tasks, and the running state of the second processor 120, such as monitoring chip components, external communications, and running results. When it is monitored that the single-point fault diagnosis layer L2 is running abnormally or the chip component fails, the control system also enters the safe state management subunit to prevent the system from running in a state where the safety mechanism is insufficient, ensuring that the safety goals are met.

[0052] like Figure 7As shown, signal 1 refers to the original sine and cosine sampling signal (excitation signal), signal value 2 refers to the sine and cosine demodulation signal (feedback signal), angle error refers to the error between the angle observation result (angle 1) and the signal angle, speed, angle 1 and time point are the final output results of angle solution, and these signals are monitored in real time by the safety monitoring unit 121 through the single-point fault diagnosis layer L2. The safety monitoring unit 121 monitors the program flow state, watchdog state, hardware state, and lock-step state of the controller software component and hardware component through the potential fault diagnosis layer L3. Finally, the monitoring results of the single-point fault diagnosis layer L2 and the potential fault diagnosis layer L3 are transmitted to the safety state management submodule for fault recording and response. For example, if the rotor speed obtained is greater than the set threshold, a fault prompt can be issued to shut down the motor to ensure the safe operation of the entire system.

[0053] According to an embodiment of the present invention, the second processor 120 performs synchronous operation verification on the safety monitoring of the single-point fault diagnosis layer and the safety monitoring of the potential fault diagnosis layer through lock-step verification.

[0054] Specifically, when the safety monitoring unit 121 monitors through the single-point fault diagnosis layer L2 and the potential fault diagnosis layer L3, the second processor 120 can be synchronized and verified by the lock-step core as a whole, and when a logical error occurs in the operation result, the fault is reported to the safety state management subunit to perform a system-level safety response. Among them, verification through the lock-step core is a method to achieve high diagnostic coverage. The specific method is to execute the same program in the two processors (the first processor 110 and the second processor 120) at intervals of several clock cycles, input the results into a comparison logic, and compare in real time whether the output results of the two processors are the same. If they are not the same, it means that the operation is wrong and further processing is required; if they are the same, it means that the system is operating normally.

[0055] According to one embodiment of the present invention, when the security monitoring unit 121 monitors through the single-point fault diagnosis layer, it covers the failure modes of all data flows and program flows of the single-point fault diagnosis layer, and when it monitors through the potential fault diagnosis layer, it covers the failure modes of all data flows and program flows of the potential fault diagnosis layer.

[0056] Specifically, when the safety monitoring unit 121 monitors through the single-point fault diagnosis layer L2, the monitoring scope includes the failure modes of all data flows and program flows of the single-point fault diagnosis layer L2. For example, the failure modes of data flows may include: data flow loss, excessive data flow, incomplete data flow, data flow reversal, data error, etc. For example, the abnormality in the data can be identified by data jam judgment, data range judgment, data rationality judgment, etc. For example, when the acquired rotor angle information is not within the preset rotor angle range, the data abnormality can be judged. For the program flow, that is, the task sequence, it mainly covers task loss, task error, task advance, task delay, etc., and can ensure that the task sequence meets the application requirements and design scheme by real-time monitoring of the task duration and interval, as well as the running order of the software components. Ultimately, the correctness of the data flow and program flow is guaranteed, reducing the risks in the operation of the motor. In addition, when the security monitoring unit 121 monitors through the potential fault diagnosis layer L3, it also covers the failure modes of all data flows and program flows of the potential fault diagnosis layer L3, that is, for the program flow anomaly of the single-point fault diagnosis layer L2, the software program flow function is also used to monitor the task duration and interval in real time, as well as the running order of the software components, to ensure the normal operation of the monitoring function; in addition, the window-type hardware watchdog is set as the last level of program flow monitoring, and the system is forced to reset when the software components of the single-point fault diagnosis layer L2 and the potential fault diagnosis layer L3 fail to run. The abnormality of hardware modules such as chip components will cause the failure of the L2 monitoring strategy. Therefore, the chip component function and self-diagnosis function are tested once in the potential fault diagnosis layer L3 through power-on self-test, and combined with hardware monitoring mechanisms such as real-time memory fault monitoring and power supply monitoring, it is ensured that all types of monitoring strategies work normally during operation, and finally the correctness of data flow and program flow is guaranteed.

[0057] According to one embodiment of the present invention, the angle solving task of the first processor 110 and the safety monitoring task of the second processor 120 are run in parallel.

[0058] Specifically, the first processor 110 collects the sine and cosine signals output by the position sensor, and performs angle calculation, and executes it cyclically, which can be recorded as the S1 task, and runs in parallel with the second processor 120 when performing safety monitoring.

[0059] As a specific example, Figure 8 As shown, the angle solving task (S1 task) of the first processor 110 may include the following steps:

[0060] S10, high frequency sampling of sine and cosine signals and storage in the specified memory address.

[0061] S11, based on the sine and cosine signal sequence in the memory, demodulate the voltage amplitude of the sine and cosine signals in the current cycle.

[0062] S12, angle observation is performed based on the demodulated signal voltage.

[0063] S13, obtaining the task time point based on the demodulated signal voltage.

[0064] The second processor 120 monitors the input signal, output result, and task time point of the angle solution module and executes it cyclically, which can be recorded as an S2 task and runs in parallel with the first processor. The safety monitoring task (S2 task) of the second processor may include the following steps:

[0065] S20, extracting key information of the original signal, such as the amplitude of the original signal.

[0066] S21, determine whether the original signal amplitude and other conditions exceed the threshold. If yes, execute step S22; if no, execute step S23. The threshold can be determined according to the actual situation.

[0067] S22, control the original signal fault flag to be set.

[0068] S23, extracting key information of the modulation signal, such as the modulation signal amplitude.

[0069] S24, determine whether the state of the modulation signal amplitude and the like exceeds a threshold. If yes, execute step S25; if no, execute step S26. The threshold may be determined according to actual conditions.

[0070] S25, control the demodulation signal fault flag to be set.

[0071] S26, obtaining the angle result observed by the first processor and the arc tangent result of the original signal.

[0072] S27, determine whether the angle error exceeds a threshold. If yes, execute step S28; if no, execute step S29. The threshold can be determined according to actual conditions.

[0073] S28, the control angle fault flag is set.

[0074] S29, obtaining the task time point saved by the first processor.

[0075] S30, determine whether the timing deviation exceeds a threshold. If yes, execute step S31; if no, execute step S32. The threshold can be determined according to actual conditions.

[0076] S31, control the timing abnormality flag to be set.

[0077] S32, end the security monitoring task.

[0078] In addition, if Fig. 9As shown, the second processor 120 also monitors the program flow state of the S2 task and the operating state of the main control chip, which may include the following steps:

[0079] S40, obtaining the task time point saved in S2.

[0080] S41, determine whether the timing deviation exceeds the design threshold. If yes, execute step S42; if no, execute step S43. The threshold can be determined according to the actual situation.

[0081] S42, set the control program flow exception flag and enter step S52.

[0082] S43, transmitting the secret key to the hardware watchdog according to the time window for refreshing, and feeding back the current status of the watchdog.

[0083] S44, determine whether the door dog is abnormal. If yes, go to step S45; if no, go to step S46.

[0084] S45, control the watchdog exception flag to be set, and enter step S52.

[0085] S46, detecting and monitoring the status of the chip hardware components.

[0086] S47, determine whether the hardware component is abnormal. If yes, execute step S48; if no, execute step S49.

[0087] S48, control chip fault flag is set,

[0088] S49, monitoring the lock-step verification status.

[0089] S50, determine whether the lock step is abnormal. If yes, execute step S51; if not, execute step S53.

[0090] S51, control the lock-step fault flag to be set, and enter step S52.

[0091] S52, summarize the fault identification and execute the safety response.

[0092] S53, end security monitoring.

[0093] In summary, according to the main control chip of the motor controller of the embodiment of the present invention, the first processor is configured to send an excitation signal to the position sensor so that the position sensor detects the rotor position of the motor, and solves and processes the position signal detected by the position sensor to obtain the rotor angle information of the motor, and the second processor is configured to control the motor according to the rotor angle information of the motor, and safely monitor the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor. As a result, the main control chip can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0094] Corresponding to the above embodiment, the present invention also proposes a motor controller.

[0095] like Fig.10 As shown, the motor controller 200 of the present invention may include a main control chip 100 .

[0096] The motor controller according to the embodiment of the present invention, by including the above-mentioned main control chip, can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0097] Corresponding to the above embodiment, the present invention further proposes a method for acquiring a motor rotor angle, which is applied to the above motor controller.

[0098] like Fig.11 As shown, the motor rotor angle acquisition method of the embodiment of the present invention includes the following steps:

[0099] S101, sending an excitation signal to a position sensor so that the position sensor detects the rotor position of the motor.

[0100] S102, the position signal detected by the position sensor is solved and processed to obtain the rotor angle information of the motor, wherein, in the process of obtaining the rotor angle information of the motor, the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function between the first processor and the second processor are securely monitored.

[0101] It should be noted that for details not disclosed in the motor rotor angle acquisition method in the embodiment of the present invention, please refer to the details disclosed in the main control chip of the motor controller in the embodiment of the present invention, and the details will not be repeated here.

[0102] According to the motor rotor angle acquisition method of the embodiment of the present invention, an excitation signal is first sent to the position sensor so that the position sensor detects the rotor position of the motor, and then the position signal detected by the position sensor is solved and processed to obtain the rotor angle information of the motor. In the process of obtaining the rotor angle information of the motor, the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor are safely monitored. Therefore, the method can obtain accurate rotor angle information, reduce costs, and improve the safety of the motor during operation.

[0103] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0104] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0106] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0107] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0108] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A main control chip of a motor controller, It is characterized in that The method comprises a first processor and a second processor, wherein: The first processor is configured to send an excitation signal to the position sensor so that the position sensor detects the rotor position of the motor, and to perform a calculation on the position signal detected by the position sensor to obtain the rotor angle information of the motor; The second processor is configured to control the motor according to the rotor angle information of the motor, and to perform security monitoring on a data interaction function between the first processor and the position sensor, a data transmission function between the first processor and the second processor, and a task execution function of the first processor and the second processor; The second processor includes a safety monitoring unit and a motor control unit, and is configured as a three-level architecture having a functional layer, a single-point fault diagnosis layer and a potential fault diagnosis layer, wherein the motor control unit performs a control task on the motor through the functional layer, and the safety monitoring unit monitors the data interacting between the first processor and the position sensor and the data transmitted from the first processor to the second processor through the single-point fault diagnosis layer, and monitors the task execution results of the single-point fault diagnosis layer and the hardware self-check of the second processor through the potential fault diagnosis layer.

2. The main control chip according to claim 1, It is characterized in that The first processor includes a channel selection unit and an angle resolution unit, wherein the channel selection unit is configured to provide the excitation signal to the position sensor and to condition the feedback signal generated by the position sensor according to the excitation signal to obtain the position signal, and the angle resolution unit is configured to perform angle resolution according to the position signal to obtain the rotor angle information.

3. The main control chip according to claim 2, It is characterized in that The safety monitoring unit monitors the input signal, output result and task time point of the angle solving unit through the single-point fault diagnosis layer.

4. The main control chip according to claim 2, It is characterized in that The safety monitoring unit monitors the program flow state of the single-point fault diagnosis layer when executing a task and the running state of the second processor through the potential fault diagnosis layer.

5. The main control chip according to claim 1, It is characterized in that The second processor performs synchronous operation verification on the safety monitoring of the single-point fault diagnosis layer and the safety monitoring of the potential fault diagnosis layer through lock-step verification.

6. The main control chip according to claim 1, It is characterized in that When the safety monitoring unit monitors through the single point fault diagnosis layer, it covers the failure modes of all data flows and program flows of the single point fault diagnosis layer, and when monitoring through the potential fault diagnosis layer, it covers the failure modes of all data flows and program flows of the potential fault diagnosis layer.

7. The main control chip according to any one of claims 1 to 6, It is characterized in that The angle solving task of the first processor and the safety monitoring task of the second processor are run in parallel.

8. A motor controller, It is characterized in that It comprises a main control chip according to any one of claims 1 to 7.

9. A method for obtaining a motor rotor angle, It is characterized in that Applied to the motor controller according to claim 8, the method comprises: Sending an excitation signal to a position sensor so that the position sensor detects the rotor position of the motor; The position signal detected by the position sensor is solved and processed to obtain the rotor angle information of the motor, wherein in the process of obtaining the rotor angle information of the motor, the data interaction function between the first processor and the position sensor, the data transmission function between the first processor and the second processor, and the task execution function of the first processor and the second processor are safely monitored.

Citation Information

Patent Citations

  • Motor control system and vehicle

    CN113422347A

  • Motor position identification method, system and controller

    CN117375472A