Motor mechanical parameter online identification method and device, storage medium and electronic equipment

By constructing a discretized mechanical dynamics model of the motor and injecting orthogonal virtual disturbance signals, and using a discrete gradient integrator for iterative updates, the problems of large computational load and poor accuracy in online identification of motor mechanical parameters are solved, and robust identification under harsh working conditions is achieved.

CN123184568APending Publication Date: 2026-11-27SHENZHEN INST OF ADVANCED TECH CHINESE ACAD OF SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611468524.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing online identification methods for motor mechanical parameters suffer from high computational load and poor accuracy, especially under constant speed or low speed conditions where quantization noise has a significant impact, affecting the accuracy of the identification results.

Method used

A discretized mechanical dynamics model of the motor is constructed, and an orthogonal virtual disturbance signal is injected to form an enhanced virtual regression data matrix. The discrete gradient integrator is used for iterative updates. The weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased by dynamically adjusting the weight factor, thereby reducing matrix inversion operations and suppressing quantization noise.

Benefits of technology

It effectively reduces the overall computational load, improves the accuracy of identification results, can robustly identify mechanical parameters under harsh working conditions, and reduces sensitivity to quantization noise.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184568A_ABST
    Figure CN123184568A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of motor control, and particularly relates to a motor mechanical parameter online identification method and device, a computer readable storage medium and an electronic device. The method comprises: constructing a discretized mechanical dynamics model of a motor; wherein the discretized mechanical dynamics model contains mechanical parameters to be identified of the motor; in a digital control domain, a preset orthogonal virtual disturbance signal is superimposed into a regression data matrix of the discretized mechanical dynamics model to construct a full-rank enhanced virtual regression data matrix; based on the enhanced virtual regression data matrix, a transient error gradient of an error cost function of the motor with respect to an intermediate weight vector is determined, and the transient error gradient is input into a preset discrete gradient integrator to iteratively update the intermediate weight vector; after the intermediate weight vector converges, the intermediate weight vector is algebraically back-solved to obtain an identification result of the mechanical parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of motor control technology, and in particular relates to a method, device, computer-readable storage medium and electronic device for online identification of motor mechanical parameters. Background Technology

[0002] In existing technologies, the Recursive Least Squares (RLS) algorithm is generally used for online identification of motor mechanical parameters. However, the RLS algorithm involves complex matrix inversion operations, resulting in a large overall computational load. Moreover, due to the limited resolution of the speed encoder, taking its derivative under constant or low speed conditions will generate extremely severe quantization noise, which will affect the accuracy of the identification results after the RLS algorithm absorbs this quantization noise. Summary of the Invention

[0003] In view of this, embodiments of this application provide an online identification method, apparatus, computer-readable storage medium, and electronic device for motor mechanical parameters, in order to solve the problems of large computational load and poor accuracy in existing online identification methods for motor mechanical parameters.

[0004] A first aspect of this application provides a method for online identification of motor mechanical parameters, which may include: A discretized mechanical dynamics model of the motor is constructed; wherein the discretized mechanical dynamics model includes the mechanical parameters of the motor to be identified; Within the digital control domain, a preset orthogonal virtual disturbance signal is superimposed and injected into the regression data matrix of the discretized mechanical dynamics model to construct a full-rank enhanced virtual regression data matrix. Based on the enhanced virtual regression data matrix, the transient error gradient of the motor's error cost function relative to the intermediate weight vector is determined, and the transient error gradient is input into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; After the intermediate weight vector converges, the intermediate weight vector is subjected to inverse algebraic solution to obtain the identification result of the mechanical parameters.

[0005] In one specific implementation of the first aspect, constructing the discretized mechanical dynamics model of the motor may include: During the operation of the motor, the motor speed, electromagnetic torque, and load torque are determined respectively; Based on the motor speed, the electromagnetic torque, and the load torque, a discrete mechanical dynamics model of the motor is constructed. The load torque is estimated by a preset hybrid load torque observer. The dynamic equation of the hybrid load torque observer includes a linear feedback channel, a direct algebraic reconstruction channel, and a weighting factor for dynamically adjusting the weights of the linear feedback channel and the direct algebraic reconstruction channel.

[0006] In one specific implementation of the first aspect, the online identification method for motor mechanical parameters may further include: Determine the speed observation sliding mode error of the motor; The weighting factor is determined based on the observed sliding mode error of the velocity. The weights of the linear feedback channel and the direct algebraic reconstruction channel are dynamically adjusted using the weighting factor. Specifically, when the velocity observation sliding mode error increases, the weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased by the weighting factor; when the velocity observation sliding mode error decreases, the weight of the linear feedback channel is increased and the weight of the direct algebraic reconstruction channel is decreased by the weighting factor.

[0007] In one specific implementation of the first aspect, determining the transient error gradient of the motor's error cost function relative to the intermediate weight vector based on the enhanced virtual regression data matrix may include: Based on the enhanced virtual regression data matrix, the instantaneous error of the motor at each sampling time is determined; Based on a preset forgetting factor, the instantaneous error of the motor at each sampling time is weighted and accumulated to obtain the error cost function; The transient error gradient is obtained by calculating the gradient of the motor's error cost function relative to the intermediate weight vector.

[0008] In one specific implementation of the first aspect, before injecting a preset orthogonal virtual disturbance signal into the regression data matrix of the discretized mechanical dynamics model, the following may be included: A first virtual disturbance signal and a second virtual disturbance signal are generated respectively; wherein the first virtual disturbance signal and the second virtual disturbance signal are orthogonal to each other, the mean of the first virtual disturbance signal is zero, and the mean of the second virtual disturbance signal is also zero; The orthogonal virtual disturbance signal is generated based on the first virtual disturbance signal and the second virtual disturbance signal.

[0009] In one specific implementation of the first aspect, after performing an inverse algebraic solution on the intermediate weight vector to obtain the identification result of the mechanical parameters, the method may further include: The identification results of the mechanical parameters are fed back to the hybrid load torque observer so that the hybrid load torque observer can perform the next iteration based on the identification results of the mechanical parameters.

[0010] In one specific implementation of the first aspect, after performing an inverse algebraic solution on the intermediate weight vector to obtain the identification result of the mechanical parameters, the method may further include: The identification results of the mechanical parameters are fed back to the speed loop proportional-integral controller of the motor's servo driver to update the parameters of the speed loop proportional-integral controller.

[0011] A second aspect of this application provides an online identification device for motor mechanical parameters, which may include: A mechanical dynamics model construction module is used to construct a discretized mechanical dynamics model of the motor; wherein the discretized mechanical dynamics model contains the mechanical parameters of the motor to be identified; The orthogonal virtual disturbance signal injection module is used to inject a preset orthogonal virtual disturbance signal into the regression data matrix of the discretized mechanical dynamics model in the digital control domain, so as to construct a full-rank enhanced virtual regression data matrix. The discrete gradient integrator processing module is used to determine the transient error gradient of the motor's error cost function relative to the intermediate weight vector based on the enhanced virtual regression data matrix, and input the transient error gradient into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; The mechanical parameter identification result determination module is used to perform an algebraic inverse solution on the intermediate weight vector after the intermediate weight vector converges, so as to obtain the identification result of the mechanical parameters.

[0012] In one specific implementation of the second aspect, the mechanical dynamics model construction module can be specifically used to: determine the motor speed, electromagnetic torque, and load torque of the motor during its operation; and construct the discretized mechanical dynamics model of the motor based on the motor speed, electromagnetic torque, and load torque; wherein the load torque is estimated by a preset hybrid load torque observer, and the dynamic equation of the hybrid load torque observer includes a linear feedback channel, a direct algebraic reconstruction channel, and a weighting factor for dynamically adjusting the weights of the linear feedback channel and the direct algebraic reconstruction channel.

[0013] In one specific implementation of the second aspect, the online identification device for motor mechanical parameters may further include: A hybrid load torque observer processing module is used to determine the speed observation sliding mode error of the motor; determine the weighting factor based on the speed observation sliding mode error; and dynamically adjust the weights of the linear feedback channel and the direct algebraic reconstruction channel using the weighting factor. Specifically, when the speed observation sliding mode error increases, the weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased using the weighting factor; when the speed observation sliding mode error decreases, the weight of the linear feedback channel is increased and the weight of the direct algebraic reconstruction channel is decreased using the weighting factor.

[0014] In one specific implementation of the second aspect, the discrete gradient integrator processing module can be specifically used to: determine the instantaneous error of the motor at each sampling time based on the enhanced virtual regression data matrix; weight and accumulate the instantaneous error of the motor at each sampling time based on a preset forgetting factor to obtain the error cost function; and calculate the gradient of the error cost function of the motor relative to the intermediate weight vector to obtain the transient error gradient.

[0015] In one specific implementation of the second aspect, the online identification device for motor mechanical parameters may further include: An orthogonal virtual disturbance signal generation module is used to generate a first virtual disturbance signal and a second virtual disturbance signal respectively; wherein the first virtual disturbance signal and the second virtual disturbance signal are orthogonal to each other, the mean of the first virtual disturbance signal is zero, and the mean of the second virtual disturbance signal is also zero; the orthogonal virtual disturbance signal is generated based on the first virtual disturbance signal and the second virtual disturbance signal.

[0016] In one specific implementation of the second aspect, the online identification device for motor mechanical parameters may further include: The first identification result feedback module is used to feed back the identification results of the mechanical parameters to the hybrid load torque observer, so that the hybrid load torque observer can perform the next iteration based on the identification results of the mechanical parameters.

[0017] In one specific implementation of the second aspect, the online identification device for motor mechanical parameters may further include: The second identification result feedback module is used to feed back the identification results of the mechanical parameters to the speed loop proportional-integral controller of the servo driver of the motor, so as to update the parameters of the speed loop proportional-integral controller.

[0018] A third aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of any of the above-described online identification methods for motor mechanical parameters.

[0019] A fourth aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-described online identification methods for motor mechanical parameters.

[0020] The fifth aspect of this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the steps of any of the above-described online identification methods for motor mechanical parameters.

[0021] The beneficial effects of this application embodiment compared with the prior art are as follows: This application embodiment constructs a discrete mechanical dynamics model of a motor; wherein, the discrete mechanical dynamics model includes the mechanical parameters of the motor to be identified; in the digital control domain, a preset orthogonal virtual disturbance signal is superimposed and injected into the regression data matrix of the discrete mechanical dynamics model to construct a full-rank enhanced virtual regression data matrix; based on the enhanced virtual regression data matrix, the transient error gradient of the motor's error cost function relative to the intermediate weight vector is determined, and the transient error gradient is input into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; after the intermediate weight vector converges, the intermediate weight vector is inversely solved algebraically to obtain the identification result of the mechanical parameters. In this application embodiment, an analytically smoothed discrete gradient integrator is used for iterative updates, abandoning complex matrix inversion operations, effectively reducing the overall computational load, and because of the injection of orthogonal virtual disturbance signals, the discrete gradient integrator can act as a low-pass filter, effectively suppressing quantization noise, thereby obtaining a more accurate identification result. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart of one embodiment of an online identification method for motor mechanical parameters in this application. Figure 2This is a schematic block diagram of a mixed load torque observer; Figure 3 A schematic block diagram illustrating the online identification process of motor mechanical parameters; Figure 4 This is a schematic diagram of the experimental results for anti-drift tests under harsh conditions of steady-state low acceleration and extremely low signal-to-noise ratio. Figure 5 This is a schematic diagram of the experimental results for a transient experiment on extreme initial parameter mismatch and dynamic tracking capability. Figure 6 The figure shows a schematic diagram of the convergence experiment results for inertial identification results under different initial values. Figure 7 This is a structural diagram of one embodiment of an online identification device for motor mechanical parameters in this application. Figure 8 This is a schematic block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0025] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0026] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0027] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0028] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [the described condition or event] is detected," or "in response to detection of [the described condition or event]."

[0029] Furthermore, in the description of this application, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0030] Please see Figure 1 One embodiment of the online identification method for motor mechanical parameters in this application may include: Step S101: Construct a discrete mechanical dynamics model of the motor.

[0031] The motors in this application embodiment may include, but are not limited to, surface-mount permanent magnet synchronous motors (SPMSM), embedded permanent magnet synchronous motors (IPMSM), brushless DC motors (BLDC), and other types of motors. For ease of description, the following description will use surface-mount permanent magnet synchronous motors as an example.

[0032] The discretized mechanical dynamics model includes the mechanical parameters of the motor to be identified, which may include, but are not limited to, rotational inertia and viscous friction coefficient.

[0033] In the embodiments of this application, the motor speed, electromagnetic torque and load torque of the motor can be determined separately during the operation of the motor, and a discrete mechanical dynamics model of the motor can be constructed based on the motor speed, electromagnetic torque and load torque.

[0034] Among them, the motor speed can be obtained by acquiring the position signal of the motor encoder; the electromagnetic torque can be obtained by acquiring the three-phase stator current of the motor, obtaining the d-axis and q-axis feedback current through coordinate transformation, and calculating it in combination with the inherent electromagnetic parameters of the motor; the load torque can be estimated by a preset load torque observer.

[0035] In this embodiment of the application, in order to isolate load disturbances from inertia identification, a second-order state-space equation model of the motor can be established: (1) Wherein, the state vector , This refers to the motor speed. For load torque, system matrix , For rotational inertia, The coefficient of viscous friction is the input matrix. Output matrix System input , For electromagnetic torque, This is the system output.

[0036] The traditional Luneburger observer is: ,in, Here is the gain matrix of the linear feedback channel. This is a linear feedback channel. When the system starts up, if the initial inertia is not set accurately, the linear feedback channel of this observer will over-store energy like a spring, resulting in severe integral saturation. The observed load torque will exhibit oscillating spikes that deviate significantly from the physical reality.

[0037] Therefore, in one specific implementation of this application embodiment, the load torque can be estimated by a preset hybrid load torque observer. The dynamic equation of the hybrid load torque observer may include a linear feedback channel, a direct algebraic reconstruction channel, and a weighting factor for dynamically adjusting the weights of the linear feedback channel and the direct algebraic reconstruction channel, as shown in the following equation: (2) in, As a weighting factor, To directly reconstruct the channel gain matrix using algebra, it can be designed as a diagonal matrix to decouple state observations. This is a direct algebraic reconstruction channel.

[0038] (3) (4) This utilizes the currently identified moment of inertia. and viscous friction coefficient Constructing virtual acceleration To avoid directly differentiating the noise signal: (5) Among them, velocity observation sliding mode error saturation function , The gain coefficient of the saturation function. Adjust the parameters for the saturation function.

[0039] In one specific implementation of this application, the speed observation sliding mode error of the motor can be determined, a weighting factor can be determined based on the speed observation sliding mode error, and the weights of the linear feedback channel and the direct algebraic reconstruction channel can be dynamically adjusted using the weighting factor. Specifically, when the speed observation sliding mode error increases, the weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased using the weighting factor. When the speed observation sliding mode error decreases, the weight of the linear feedback channel is increased and the weight of the direct algebraic reconstruction channel is decreased using the weighting factor.

[0040] As an example, weighting factors can be determined based on an exponential function: (6) in, This is the decay adjustment coefficient. Besides the exponential function, other decay functions such as the sigmoid function, arctangent function, and piecewise linear dead-zone function can also be used to determine the weighting factor.

[0041] Figure 2 The diagram shown is a schematic block diagram of a hybrid load torque observer. During system startup or parameter mismatch phases, the speed observation sliding mode error is observed. Maximum, at this time Approaching 0, the observer seamlessly slides to switch to the direct algebraic reconstruction channel, and the observer dynamics degenerates into full tracking. This fundamentally cuts off the traditional observation instruments The integral accumulation effect suppresses the transient spike in load torque observation caused by inertia mismatch. As the identification converges, the sliding mode error in velocity observation decreases. Approaching 0, then As the value approaches 1, the observer seamlessly slides to switch to the linear feedback channel.

[0042] After determining the motor speed, electromagnetic torque, and load torque of the motor, a discrete mechanical dynamics model of the motor can be constructed based on these parameters.

[0043] In one specific implementation of this application, the forward Euler method can be used to discretize the mechanical dynamics model of the motor into a linear regression form: (7) The system output is the motor speed at the current moment. intermediate weight vector It can be determined by mechanical parameters: , The sampling period (also known as the control period) is the sampling period. It is noise.

[0044] The regression data matrix can be defined as: (8) in, The coefficient of friction is the Coulomb friction factor, which can be measured offline.

[0045] Step S102: In the digital control domain, a preset orthogonal virtual disturbance signal is superimposed and injected into the regression data matrix of the discretized mechanical dynamics model to construct a full-rank enhanced virtual regression data matrix.

[0046] In traditional methods, if the motor maintains a constant speed, the regression data matrix... The elements in the matrix will become constants, causing the matrix to lose its rank and the identification process to lose its physical excitation and thus diverge.

[0047] In one specific implementation of this application, orthogonal virtual perturbation signals can be generated in advance. Specifically, first virtual perturbation signals can be generated separately. Second virtual disturbance signal Based on the first virtual disturbance signal and the second virtual disturbance signal, an orthogonal virtual disturbance signal is generated. : (9) The first and second virtual disturbance signals are orthogonal to each other, with both having a mean of zero. The specific forms of the first and second virtual disturbance signals can be flexibly set according to actual conditions, as long as they satisfy the conditions of orthogonality and a mean of zero. For example, the first and second virtual disturbance signals can be a sine virtual disturbance signal and a cosine virtual disturbance signal, respectively. , , The amplitude of the virtual disturbance signal. The frequency of the virtual disturbance signal is used; the orthogonal virtual disturbance signal should be a high-frequency signal. The value can generally be taken in the range of 1kHz to 2kHz.

[0048] After generating orthogonal virtual perturbation signals, these signals can be superimposed onto the regression data matrix of the discretized mechanical dynamics model within the digital control domain to construct a full-rank enhanced virtual regression data matrix. : (10) By injecting orthogonal virtual disturbance signals into the regression data matrix, the control system mathematically forces the introduction of multiple virtual speed and torque combinations corresponding to the motor's mechanical parameters. Because the virtual disturbance signals have zero mean and are mutually orthogonal, they achieve a manifold regularization effect without changing the original physical dynamic expectations.

[0049] It should be noted that the above-mentioned orthogonal virtual disturbance signal injection process is carried out in the digital control domain (i.e., software algorithm). This process does not output actual physical disturbance signals to the motor inverter and has no physical torque jitter at all, thus fundamentally eliminating the mechanical wear and acoustic pollution caused by real physical injection.

[0050] Step S103: Based on the enhanced virtual regression data matrix, determine the transient error gradient of the motor's error cost function relative to the intermediate weight vector, and input the transient error gradient into a preset discrete gradient integrator to iteratively update the intermediate weight vector.

[0051] Traditional RLS algorithms require the computation of a physical information matrix. The inverse matrix not only consumes a huge amount of computing power, but is also extremely sensitive to encoder quantization noise.

[0052] In one specific implementation of this application, the instantaneous error of the motor at each sampling moment can be determined based on the enhanced virtual regression data matrix, and the instantaneous error of the motor at each sampling moment can be weighted and accumulated based on a preset forgetting factor λ to obtain the error cost function: (11) The instantaneous errors at each sampling time are as follows: (12) By calculating the gradient of the motor's error cost function relative to the intermediate weight vector, the transient error gradient can be obtained. : (13) Among them, the relevant vector .

[0053] After determining the transient error gradient, it can be input into a discrete gradient integrator to iteratively update the intermediate weight vector. The update law is: (14) in, This is the preset update rate.

[0054] When the motor is at a constant speed or low speed, the physical information matrix ≈0. However, due to the injection of orthogonal virtual signals, the virtual information matrix... After unfolding, it is strictly equivalent to a proportionally scaled unit diagonal matrix. At this point, the update law automatically degenerates into a low-pass filter form: (15) Mathematically, this constitutes a strictly stable discrete low-pass filter. When the physical excitation disappears, the parameter estimates are firmly anchored to the real physical history data, generating a strong pullback gradient that gives the algorithm robustness in suppressing encoder quantization noise.

[0055] Step S104: After the intermediate weight vector converges, perform an algebraic inverse solution on the intermediate weight vector to obtain the identification results of the mechanical parameters.

[0056] The discrete gradient integrator makes the transient error gradient... Once the intermediate weight vector approaches 0, meaning it converges, an algebraic inverse solution can be performed on the intermediate weight vector to obtain the identification results of the mechanical parameters. (16) (17) Figure 3 The diagram shows a schematic block diagram of the online identification process for motor mechanical parameters. After obtaining the identification results of the mechanical parameters, these results can be fed back to the speed loop proportional-integral (PI) controller of the motor's servo driver to update the controller's parameters. Alternatively, the identification results can be fed back to the hybrid load torque observer so that the hybrid load torque observer can perform the next iteration based on the identified mechanical parameters.

[0057] The algorithm in this embodiment can be parallelized at the computational architecture level. Besides using the traditional serial C language interrupt implementation within the DSP, the algorithm in this embodiment avoids complex matrix inversion, containing only matrix multiplication and addition operations and scalar integration. This makes the algorithm extremely suitable for parallelization within an FPGA IP core using hardware description languages ​​(Verilog / VHDL).

[0058] The complete algorithm system in this application embodiment has been verified by the permanent magnet synchronous motor test bench and simulation tools, proving its industrial application value. Figure 4The diagram shows the experimental results of the anti-drift experiment under the harsh conditions of steady-state low acceleration and extremely low signal-to-noise ratio. At the reference extremely low speed of only 15 rpm, a weak low-frequency sinusoidal fluctuation (superimposed with 10sin(πt)) is applied. At this time, the quantization step noise of the encoder is large, and the traditional algorithm (methods [1] and [2] shown in the figure) oscillates violently. However, the algorithm using the virtual signal injection of the embodiment of this application, even in such harsh quantization noise, the inertia still converges robustly and monotonically to the real physical value, showing an excellent anti-interference smooth curve. Figure 5 The diagram shows the experimental results of a transient experiment on the relationship between extremely mismatched initial parameters and dynamic tracking capability. At the start of the experiment, the initial inertia in the control algorithm was set to a severely mismatched initial value. A step load was suddenly introduced during the operation. Figure 6 The diagram shows the experimental results of the convergence experiment for inertial identification under different initial values. Thanks to the deep decoupling between the gradient integrator and the hybrid load torque observer, the system did not crash. Even with an initial deviation as high as 10 times, the algorithm quickly smoothed out the error and accurately locked it to the true value. At the instant of a sudden step load, the load observer accurately responded to the step change, while the inertial identification curve showed almost no glitches or fluctuations, verifying that the embodiments of this application can achieve decoupling between mechanical inertia and external load disturbances.

[0059] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0060] Corresponding to the online identification method for motor mechanical parameters described in the above embodiments, Figure 7 This illustration shows a structural diagram of an embodiment of an online identification device for motor mechanical parameters provided in this application.

[0061] In this embodiment, an online identification device for motor mechanical parameters may include: The mechanical dynamics model construction module 701 is used to construct a discretized mechanical dynamics model of the motor; wherein, the discretized mechanical dynamics model includes the mechanical parameters of the motor to be identified; The orthogonal virtual disturbance signal injection module 702 is used to inject a preset orthogonal virtual disturbance signal into the regression data matrix of the discretized mechanical dynamics model in the digital control domain to construct a full-rank enhanced virtual regression data matrix. The discrete gradient integrator processing module 703 is used to determine the transient error gradient of the motor's error cost function relative to the intermediate weight vector based on the enhanced virtual regression data matrix, and input the transient error gradient into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; The mechanical parameter identification result determination module 704 is used to perform an algebraic inverse solution on the intermediate weight vector after the intermediate weight vector converges, so as to obtain the identification result of the mechanical parameters.

[0062] In one specific implementation of this application, the mechanical dynamics model construction module can be specifically used to: determine the motor speed, electromagnetic torque, and load torque of the motor during the operation of the motor; and construct the discretized mechanical dynamics model of the motor based on the motor speed, electromagnetic torque, and load torque; wherein the load torque is estimated by a preset hybrid load torque observer, and the dynamic equation of the hybrid load torque observer includes a linear feedback channel, a direct algebraic reconstruction channel, and a weighting factor for dynamically adjusting the weights of the linear feedback channel and the direct algebraic reconstruction channel.

[0063] In one specific implementation of this application embodiment, the online identification device for motor mechanical parameters may further include: A hybrid load torque observer processing module is used to determine the speed observation sliding mode error of the motor; determine the weighting factor based on the speed observation sliding mode error; and dynamically adjust the weights of the linear feedback channel and the direct algebraic reconstruction channel using the weighting factor. Specifically, when the speed observation sliding mode error increases, the weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased using the weighting factor; when the speed observation sliding mode error decreases, the weight of the linear feedback channel is increased and the weight of the direct algebraic reconstruction channel is decreased using the weighting factor.

[0064] In one specific implementation of this application, the discrete gradient integrator processing module can be specifically used to: determine the instantaneous error of the motor at each sampling time based on the enhanced virtual regression data matrix; weight and accumulate the instantaneous error of the motor at each sampling time based on a preset forgetting factor to obtain the error cost function; and calculate the gradient of the error cost function of the motor relative to the intermediate weight vector to obtain the transient error gradient.

[0065] In one specific implementation of this application embodiment, the online identification device for motor mechanical parameters may further include: An orthogonal virtual disturbance signal generation module is used to generate a first virtual disturbance signal and a second virtual disturbance signal respectively; wherein the first virtual disturbance signal and the second virtual disturbance signal are orthogonal to each other, the mean of the first virtual disturbance signal is zero, and the mean of the second virtual disturbance signal is also zero; the orthogonal virtual disturbance signal is generated based on the first virtual disturbance signal and the second virtual disturbance signal.

[0066] In one specific implementation of this application embodiment, the online identification device for motor mechanical parameters may further include: The first identification result feedback module is used to feed back the identification results of the mechanical parameters to the hybrid load torque observer, so that the hybrid load torque observer can perform the next iteration based on the identification results of the mechanical parameters.

[0067] In one specific implementation of this application embodiment, the online identification device for motor mechanical parameters may further include: The second identification result feedback module is used to feed back the identification results of the mechanical parameters to the speed loop proportional-integral controller of the servo driver of the motor, so as to update the parameters of the speed loop proportional-integral controller.

[0068] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0069] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0070] Figure 8 A schematic block diagram of an electronic device provided in an embodiment of this application is shown. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0071] like Figure 8 As shown, the electronic device 8 in this embodiment includes: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80. When the processor 80 executes the computer program 82, it implements the steps in the above-described embodiments of the online identification method for motor mechanical parameters, for example... Figure 1 Steps S101 to S104 are shown. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the above-described device embodiments, for example... Figure 7 The functions of modules 701 to 704 are shown.

[0072] For example, the computer program 82 may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program 82 in the electronic device 8.

[0073] Those skilled in the art will understand that Figure 8 This is merely an example of electronic device 8 and does not constitute a limitation on electronic device 8. It may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device 8 may also include input / output devices, network access devices, buses, etc.

[0074] The processor 80 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor.

[0075] The memory 81 can be an internal storage unit of the electronic device 8, such as a hard disk or memory. The memory 81 can also be an external storage device of the electronic device 8, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card. Furthermore, the memory 81 can include both internal and external storage units of the electronic device 8. The memory 81 is used to store the computer program and other programs and data required by the electronic device 8. The memory 81 can also be used to temporarily store data that has been output or will be output.

[0076] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0077] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0078] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0079] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual couplings or direct couplings or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0080] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0081] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0082] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0083] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for online identification of motor mechanical parameters, characterized in that, include: A discretized mechanical dynamics model of the motor is constructed; wherein the discretized mechanical dynamics model includes the mechanical parameters of the motor to be identified; Within the digital control domain, a preset orthogonal virtual disturbance signal is superimposed and injected into the regression data matrix of the discretized mechanical dynamics model to construct a full-rank enhanced virtual regression data matrix. Based on the enhanced virtual regression data matrix, the transient error gradient of the motor's error cost function relative to the intermediate weight vector is determined, and the transient error gradient is input into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; After the intermediate weight vector converges, the intermediate weight vector is subjected to inverse algebraic solution to obtain the identification result of the mechanical parameters.

2. The online identification method for motor mechanical parameters according to claim 1, characterized in that, The construction of the discretized mechanical dynamics model of the motor includes: During the operation of the motor, the motor speed, electromagnetic torque, and load torque are determined respectively; Based on the motor speed, the electromagnetic torque, and the load torque, a discrete mechanical dynamics model of the motor is constructed. The load torque is estimated by a preset hybrid load torque observer. The dynamic equation of the hybrid load torque observer includes a linear feedback channel, a direct algebraic reconstruction channel, and a weighting factor for dynamically adjusting the weights of the linear feedback channel and the direct algebraic reconstruction channel.

3. The online identification method for motor mechanical parameters according to claim 2, characterized in that, Also includes: Determine the speed observation sliding mode error of the motor; The weighting factor is determined based on the observed sliding mode error of the velocity. The weights of the linear feedback channel and the direct algebraic reconstruction channel are dynamically adjusted using the weighting factor. Specifically, when the velocity observation sliding mode error increases, the weight of the linear feedback channel is reduced and the weight of the direct algebraic reconstruction channel is increased by the weighting factor; when the velocity observation sliding mode error decreases, the weight of the linear feedback channel is increased and the weight of the direct algebraic reconstruction channel is decreased by the weighting factor.

4. The online identification method for motor mechanical parameters according to claim 1, characterized in that, The step of determining the transient error gradient of the motor's error cost function relative to the intermediate weight vector based on the enhanced virtual regression data matrix includes: Based on the enhanced virtual regression data matrix, the instantaneous error of the motor at each sampling time is determined; Based on a preset forgetting factor, the instantaneous error of the motor at each sampling time is weighted and accumulated to obtain the error cost function; The transient error gradient is obtained by calculating the gradient of the motor's error cost function relative to the intermediate weight vector.

5. The online identification method for motor mechanical parameters according to claim 1, characterized in that, Before injecting a preset orthogonal virtual perturbation signal into the regression data matrix of the discretized mechanical dynamics model, the process further includes: A first virtual disturbance signal and a second virtual disturbance signal are generated respectively; wherein the first virtual disturbance signal and the second virtual disturbance signal are orthogonal to each other, the mean of the first virtual disturbance signal is zero, and the mean of the second virtual disturbance signal is also zero; The orthogonal virtual disturbance signal is generated based on the first virtual disturbance signal and the second virtual disturbance signal.

6. The online identification method for motor mechanical parameters according to claim 2, characterized in that, After performing an algebraic inverse solution on the intermediate weight vector to obtain the identification results of the mechanical parameters, the method further includes: The identification results of the mechanical parameters are fed back to the hybrid load torque observer so that the hybrid load torque observer can perform the next iteration based on the identification results of the mechanical parameters.

7. The method for online identification of motor mechanical parameters according to any one of claims 1 to 6, characterized in that, After performing an algebraic inverse solution on the intermediate weight vector to obtain the identification results of the mechanical parameters, the method further includes: The identification results of the mechanical parameters are fed back to the speed loop proportional-integral controller of the motor's servo driver to update the parameters of the speed loop proportional-integral controller.

8. An online identification device for motor mechanical parameters, characterized in that, include: A mechanical dynamics model construction module is used to construct a discretized mechanical dynamics model of the motor; wherein, the discretized mechanical dynamics model contains the mechanical parameters of the motor to be identified; The orthogonal virtual disturbance signal injection module is used to inject a preset orthogonal virtual disturbance signal into the regression data matrix of the discretized mechanical dynamics model in the digital control domain, so as to construct a full-rank enhanced virtual regression data matrix. The discrete gradient integrator processing module is used to determine the transient error gradient of the motor's error cost function relative to the intermediate weight vector based on the enhanced virtual regression data matrix, and input the transient error gradient into a preset discrete gradient integrator to iteratively update the intermediate weight vector; wherein, the intermediate weight vector is determined by the mechanical parameters; The mechanical parameter identification result determination module is used to perform an algebraic inverse solution on the intermediate weight vector after the intermediate weight vector converges, so as to obtain the identification result of the mechanical parameters.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the online identification method for motor mechanical parameters as described in any one of claims 1 to 7.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the online identification method for motor mechanical parameters as described in any one of claims 1 to 7.