CN117288978B - Rotation state and speed measuring method and device - Google Patents

Rotation state and speed measuring method and device Download PDF

Info

Publication number
CN117288978B
CN117288978B CN202311580821.2A CN202311580821A CN117288978B CN 117288978 B CN117288978 B CN 117288978B CN 202311580821 A CN202311580821 A CN 202311580821A CN 117288978 B CN117288978 B CN 117288978B
Authority
CN
China
Prior art keywords
phase
state
matrix
rotating
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311580821.2A
Other languages
Chinese (zh)
Other versions
CN117288978A (en
Inventor
王谦敏
傅华
翟冠杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiyuan Microelectronics Co ltd
Original Assignee
Shenzhen Saiyuan Microelectronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saiyuan Microelectronics Co ltd filed Critical Shenzhen Saiyuan Microelectronics Co ltd
Priority to CN202311580821.2A priority Critical patent/CN117288978B/en
Publication of CN117288978A publication Critical patent/CN117288978A/en
Application granted granted Critical
Publication of CN117288978B publication Critical patent/CN117288978B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P13/00Indicating or recording presence, absence, or direction, of movement
    • G01P13/02Indicating direction only, e.g. by weather vane

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

The invention provides a rotation state and speed measuring method and device, which are used for detecting rising edges/falling edges of reference phase signals by selecting any one phase in multiphase position signals of multiphase rotating equipment as the reference phase signal; respectively reading the level states of other phase signals of the multi-phase rotating device; determining a rotation state of the multi-phase rotation device according to rising/falling edges of the reference phase signal and level states of other phase signals; and measuring the number of changes of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed. In the invention, the rotation state determination and the rotation speed calculation can be carried out for the rotation equipment of any phase, so that the applicability is high.

Description

Rotation state and speed measuring method and device
Technical Field
The present invention relates to the field of signal processing technologies, and in particular, to a method and an apparatus for measuring a rotation state and a speed.
Background
Currently, for a rotary or linear motion mechanism, a three-phase sensor, a two-phase encoder and the like are utilized to collect feedback signals, and the rotating direction is judged through the level change state and sequence of the feedback signals.
However, the method has different detection modes and processing logics for different two-phase or three-phase signals, and at least two phase interval states are needed to judge the rotation direction, so that the application is complicated. There is no special way of handling periodic signals greater than three phases.
Disclosure of Invention
The invention mainly aims to provide a method and a device for measuring rotation state and speed, and aims to overcome the defect that a periodic signal larger than three phases cannot be processed at present.
In order to achieve the above object, the present invention provides a rotation state and speed measuring method, comprising the steps of:
selecting any one phase in the multiphase position signals of the multiphase rotary equipment as a reference phase signal, and detecting rising edges/falling edges of the reference phase signal;
respectively reading the level states of other phase signals of the multi-phase rotating device;
determining a rotation state of the multi-phase rotation device according to rising/falling edges of the reference phase signal and level states of other phase signals;
and measuring the number of changes of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed.
Further, before the step of selecting any one phase of the multiphase position signals of the multiphase rotary device as the reference phase signal and detecting the rising edge/falling edge of the reference phase signal, the method further includes:
the phase number of the multiphase rotary device is determined, and the standard phase difference of each phase and the signal waveform of each phase are determined according to the phase number.
Further, the step of calculating the rotational speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
Further, the multiphase rotating device has a phase number of at least 2.
Further, after the step of determining the number of phases of the multiphase rotary device and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases, the method further includes:
the level states of other phases when the reference phase signal is the rising edge/the falling edge in different rotation states are respectively determined for the rotation devices with different phases, and are recorded in a mapping table.
The invention also provides a rotation state and speed measuring device, which comprises:
a detection unit for selecting any one phase of the multiphase position signals of the multiphase rotary device as a reference phase signal and detecting rising/falling edges of the reference phase signal;
a reading unit for reading the level states of the other phase signals of the multi-phase rotating device, respectively;
a first determining unit for determining a rotation state of the multi-phase rotating apparatus according to rising/falling edges of the reference phase signal and level states of other phase signals;
and the measuring unit is used for measuring the change times of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal and calculating the rotating speed.
Further, the method further comprises the following steps:
and a second determining unit for determining the number of phases of the multi-phase rotating device, and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases.
Further, the calculating the rotational speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
Further, the multiphase rotating device has a phase number of at least 2.
Further, the method further comprises the following steps:
and the recording unit is used for respectively determining the level states of other phases when the reference phase signals of the rotating equipment with different numbers of phases are rising edges/falling edges in different rotating states and recording the level states in a mapping table.
The invention provides a rotation state and speed measuring method and a device, which are used for detecting rising edges/falling edges of reference phase signals by selecting any one phase in multiphase position signals of multiphase rotating equipment as the reference phase signal; respectively reading the level states of other phase signals of the multi-phase rotating device; determining a rotation state of the multi-phase rotation device according to rising/falling edges of the reference phase signal and level states of other phase signals; and measuring the number of changes of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed. In the invention, the rotation state determination and the rotation speed calculation can be carried out for the rotation equipment of any phase, so that the applicability is high.
Drawings
FIG. 1 is a diagram showing steps of a method for measuring rotation state and speed according to an embodiment of the present invention;
FIG. 2 is a block diagram of a rotational state and speed measuring device according to an embodiment of the present invention;
fig. 3 is a block diagram schematically illustrating the structure of an apparatus according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Description of the embodiments
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, in one embodiment of the present invention, a method for measuring a rotation state and a speed is provided, including the following steps:
step S1, selecting any phase in multiphase position signals of multiphase rotary equipment as a reference phase signal, and detecting rising edges/falling edges of the reference phase signal;
step S2, respectively reading the level states of other phase signals of the multi-phase rotating equipment;
step S3, determining the rotation state of the multiphase rotation equipment according to the rising edge/falling edge of the reference phase signal and the level states of other phase signals;
and S4, measuring the change times of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed.
In this embodiment, as described in the above step S1, the multi-phase rotating apparatus may be two phases, three phases, four phases or more, and the number of phases is at least 2, which is not limited. Any one of the phase position signals of the multi-phase rotating device is selected as a reference phase signal, i.e. one of the phase signals is selected as a reference. In general, the reference phase signal may be selected arbitrarily, as long as the rising/falling edge of the phase signal can be accurately detected. Detecting the rising/falling edge of the reference phase signal means that the process of recording the phase signal from low level to high level (rising edge) or from high level to low level (falling edge) is monitored in a specific manner. In detecting a rising or falling edge, various common signal processing methods may be used, such as threshold comparison, slope calculation, and the like.
As described in step S2 above, in the multiphase rotating device, there are other phase signals, such as B phase, C phase, and the like, in addition to the reference phase signal a. To determine the rotation state of the rotating device, the level state of the other phase signal needs to be read. This is because during the rotation of the rotating device, different phase differences occur in the signals, i.e. the moments of change of the signals are different. By simultaneously reading the level states of the plurality of phase signals, the phase difference can be determined, thereby determining the rotation state of the rotating device.
Taking a three-phase rotating device as an example, if an a-phase signal is selected as a reference phase signal, it is necessary to read the level states of B-phase and C-phase signals to determine the rotating state of the rotating device. If the B-phase signal is at a high level and the C-phase signal is at a low level, it can be judged that the rotating device is rotating in the forward direction; if the B-phase signal is at a low level and the C-phase signal is at a high level, it can be judged that the rotating device is rotating in the reverse direction.
As described in the above step S3, during the rotation of the multiphase rotating device, there is a certain phase difference in the level states of the different phase signals. Therefore, it is not accurate enough to select only the rising/falling edge of the reference phase signal to monitor the rotation state of the rotating device. The rotational state of the rotating device needs to be determined in combination with the level states of the other phase signals. Specifically, when the rising/falling edges of the reference phase signal are monitored, the rotation state of the rotating device can be determined by simultaneously reading the level states of the other phase signals. Assuming that at some point the phase a is at the rising edge while the phase B is at the high level and the phase C is at the low level, it can be determined that the rotating device is rotating in the forward direction. If the B-phase signal is at a low level and the C-phase signal is at a high level, it can be judged that the rotating device is rotating in the reverse direction.
As described in the above step S4, after the rotation state of the rotating apparatus is determined, the rotation speed may be calculated by monitoring the number of rising/falling edge changes of the reference phase signal. Specifically, the number of rising/falling edge changes of the reference phase signal for a certain time (for example, 1 second) may be measured, and then the reciprocal of the rotation period is calculated. So that the rotational speed of the rotating device can be obtained.
In an embodiment, before the step of selecting any one of the multiphase position signals of the multiphase rotary device as the reference phase signal and detecting the rising edge/falling edge of the reference phase signal, the method further includes:
the phase number of the multiphase rotary device is determined, and the standard phase difference of each phase and the signal waveform of each phase are determined according to the phase number.
In this embodiment, the number of phases of the multiphase rotating device needs to be determined before the reference phase signal is selected and its rising/falling edges are detected. The phase number refers to the number of phases through which the rotation device makes one rotation. Common multiphase rotary devices have three phases, five equal.
After the number of phases is determined, a standard phase difference of each phase and a signal waveform of each phase need to be determined according to the number of phases. The standard phase difference refers to the time difference between adjacent phase signals. In a multiphase rotary device, the variation time of the individual phase signals is regular, the phase difference determining the time interval between adjacent phase signals.
For example, for a three-phase rotating device, the standard phase difference is 120 degrees, i.e., the phase difference between each phase is 120 degrees. This means that the moments of change of each phase signal differ from each other by 120 degrees during one revolution of the rotating device.
In addition to the phase difference, the waveform of each phase signal also needs to be determined. In an ideal case, each phase signal should be a regular waveform such as a sine wave or a square wave.
Determining the number of phases, the standard phase difference and the signal waveform is a pre-step of selecting a reference phase signal and detecting its rising/falling edges. Accurate determination of this information is critical to subsequent rotation state detection and rotation speed measurement.
In one embodiment, the step of calculating the rotational speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
In one embodiment, the multiphase rotary device has a phase number of at least 2.
In an embodiment, after the step of determining the number of phases of the multiphase rotary device and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases, the method further includes:
the level states of other phases when the reference phase signal is the rising edge/the falling edge in different rotation states are respectively determined for the rotation devices with different phases, and are recorded in a mapping table.
In the present embodiment, referring to table 1 below in combination, after the number of phases, the standard phase difference, and the signal waveform are determined, the level states of the other phase signals at the rising/falling edges of the reference phase signal need to be determined for different rotation states for different phase-number rotating apparatuses. This can be achieved by recording the level states of the individual phase signals in different rotation states and sorting them into a mapping table.
The mapping table is used for establishing the corresponding relation between the rising edge/falling edge of the reference phase signal and the level states of other phase signals. By recording the level states of the phase signals in different rotation states, the level states in which other phase signals should be at the rising/falling edges of the reference phase signal can be obtained. The information is arranged in a mapping table, and can be searched and matched in the actual rotation state detection to determine the rotation state of the rotation device.
For example, for a three-phase rotating device, the level states of the B and C phases at the rising edge of the a phase signal in different rotation states may be recorded. If in the forward rotation state, when the a phase signal rises, the B phase is high and the C phase is low, this state can be recorded in the map. Similarly, in the reverse rotation state, when the a phase signal rises, the B phase is low and the C phase is high, and this state is also recorded in the map.
By establishing the mapping table, matching and judgment can be carried out according to the level states of other phase signals in the detection process of the rising edge/falling edge of the reference phase signal, so that the rotation state of the rotating equipment can be accurately determined. In this way, detection of the rotational state and measurement of the rotational speed of the rotating device for different phases can be achieved.
In an embodiment, the method further comprises:
detecting a state parameter of the multiphase rotary equipment during operation;
detecting type information of the multiphase rotating equipment, and matching corresponding parameter sets in a database according to the type information; the method comprises the steps that a mapping relation between type information and a parameter set is stored in a database, and the parameter set comprises a plurality of optimal parameters of a rotating equipment state detection model;
acquiring an initial rotating equipment state detection model, and updating model parameters of the initial rotating equipment state detection model based on the parameter set to obtain a rotating equipment state detection model;
detecting and analyzing the state parameters based on the state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment; vectorizing the state parameters and the state detection result to obtain vector parameters;
detecting the phase number of the multiphase rotary equipment, and acquiring a number corresponding to the phase number as a first number x;
acquiring the number of parameters in the state parameters, and acquiring numbers corresponding to the number as a second number y;
acquiring a preset digital matrix from a database; wherein the number matrix comprises m rows and n columns of numbers;
acquiring a first target number from the number matrix; wherein the first target number is a number located on an xth and a yth column of the digital matrix;
acquiring a second target number from the number matrix; wherein the second target number is a number located on an xth row and an xth column of the digital matrix;
acquiring a third target number from the number matrix; wherein the third target number is a number located on a y-th row and a y-th column of the number matrix;
exchanging the first target number with the number on the 1 st row and the 2 nd column in the digital matrix, exchanging the second target number with the number on the 1 st row and the 1 st column in the digital matrix, exchanging the third target number with the number on the 2 nd row and the 1 st column in the digital matrix, and obtaining a new digital matrix after all the exchanging;
generating an encryption password based on the new number matrix; encrypting the vector parameters based on the encryption password to obtain encrypted vector parameters, storing the encrypted vector parameters into a preset data table, and identifying the data table; wherein the identification is xy.
In the present embodiment, it is first necessary to detect a state parameter of the multiphase rotary device: during the running of the rotary equipment, the state parameters of the multiphase rotary equipment, such as current, voltage, power, rotating speed and the like, are acquired in real time through the sensor or the measuring equipment. These parameters may reflect the operating state and performance of the rotating equipment.
Detecting type information of the multiphase rotary device: the type information of the rotating device, such as the model number, manufacturer, power level, etc., of the rotating device is obtained by an identification number or other means. Based on these types of information, corresponding sets of parameters are matched in a database.
Mapping relationship in database: a mapping relationship between the type information and the parameter set is maintained in a database. This means that there is a corresponding set of parameters for each rotating device type, including the optimal parameters of the rotating device state detection model. The optimal parameters in the parameter set have strong pertinence, are optimal model parameters during model detection, and are beneficial to improving the subsequent model detection result.
Acquiring an initial rotating equipment state detection model and updating: an initial rotational device state detection model is first obtained, which may be based on a known algorithm or model, typically a deep learning model. Then, the parameters of the initial model are updated according to the matched parameter set. The rotating equipment state detection model obtained in this way can be better adapted to the current rotating equipment type and running state.
Detection analysis and vectorization are performed based on a rotating equipment state detection model: and analyzing and processing the state parameters acquired in real time by using the updated state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment. Meanwhile, the state parameter and the detection result are vectorized, and are expressed as a vector.
Detecting the phase number of the multiphase rotary device: according to the previously determined method, the number of phases of the multiphase rotary device is detected and converted into a corresponding number as a first number x.
The number of parameters is obtained and converted into a number: and determining a corresponding number as a second number y according to the number of the state parameters of the rotary equipment.
Acquiring a preset digital matrix: a preset number matrix is obtained from a database, wherein the matrix comprises numbers of m rows and n columns. Each position has a number, which may be the same or different.
Acquiring and exchanging target numbers: and acquiring a first target number, a second target number and a third target number from the number matrix according to the numbers x and y obtained before. These target digits are then exchanged with the digits of the corresponding location according to a prescribed exchange order. The digital matrix after the exchange has uniqueness and uniqueness, and is prevented from being easily cracked.
Generating an encryption password: based on the new digit matrix after the exchange, an encryption password is generated, which may be based on the result of a cryptographic algorithm or other encryption algorithm. The encryption code may be obtained by combining a plurality of digits selected from the new digit matrix, and the generation method of the encryption code is numerous and will not be described here.
Encrypting and storing vector parameters: and carrying out encryption processing on the parameters obtained by vectorization before by utilizing the generated encryption passwords to obtain encryption vector parameters. Then, the encryption vector parameters are stored in a preset data table, and the data table is identified (xy). If the encryption vector parameters need to be decrypted later, a new digital matrix can be obtained by transforming the preset digital matrix in the same mode based on the identification, and then the corresponding encryption password is obtained by adopting the same password generation logic, so that decryption is further performed.
Through the steps, the functions of detecting the state parameters of the multiphase rotary equipment, matching the parameter set, updating the model, vectorizing, encrypting and storing the state detection result and the like can be realized, so that the state detection and the data confidentiality of the multiphase rotary equipment are improved.
Referring to fig. 2, in an embodiment of the present invention, there is further provided a rotation state and speed measuring device, including:
a detection unit for selecting any one phase of the multiphase position signals of the multiphase rotary device as a reference phase signal and detecting rising/falling edges of the reference phase signal;
a reading unit for reading the level states of the other phase signals of the multi-phase rotating device, respectively;
a first determining unit for determining a rotation state of the multi-phase rotating apparatus according to rising/falling edges of the reference phase signal and level states of other phase signals;
and the measuring unit is used for measuring the change times of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal and calculating the rotating speed.
In an embodiment, further comprising:
and a second determining unit for determining the number of phases of the multi-phase rotating device, and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases.
In one embodiment, the calculating the rotational speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
In one embodiment, the multiphase rotary device has a phase number of at least 2.
In an embodiment, further comprising:
and the recording unit is used for respectively determining the level states of other phases when the reference phase signals of the rotating equipment with different numbers of phases are rising edges/falling edges in different rotating states and recording the level states in a mapping table.
In an embodiment, the device further comprises: the processing unit is specifically used for:
detecting a state parameter of the multiphase rotary equipment during operation;
detecting type information of the multiphase rotating equipment, and matching corresponding parameter sets in a database according to the type information; the method comprises the steps that a mapping relation between type information and a parameter set is stored in a database, and the parameter set comprises a plurality of optimal parameters of a rotating equipment state detection model;
acquiring an initial rotating equipment state detection model, and updating model parameters of the initial rotating equipment state detection model based on the parameter set to obtain a rotating equipment state detection model;
detecting and analyzing the state parameters based on the state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment; vectorizing the state parameters and the state detection result to obtain vector parameters;
detecting the phase number of the multiphase rotary equipment, and acquiring a number corresponding to the phase number as a first number x;
acquiring the number of parameters in the state parameters, and acquiring numbers corresponding to the number as a second number y;
acquiring a preset digital matrix from a database; wherein the number matrix comprises m rows and n columns of numbers;
acquiring a first target number from the number matrix; wherein the first target number is a number located on an xth and a yth column of the digital matrix;
acquiring a second target number from the number matrix; wherein the second target number is a number located on an xth row and an xth column of the digital matrix;
acquiring a third target number from the number matrix; wherein the third target number is a number located on a y-th row and a y-th column of the number matrix;
exchanging the first target number with the number on the 1 st row and the 2 nd column in the digital matrix, exchanging the second target number with the number on the 1 st row and the 1 st column in the digital matrix, exchanging the third target number with the number on the 2 nd row and the 1 st column in the digital matrix, and obtaining a new digital matrix after all the exchanging;
generating an encryption password based on the new number matrix; encrypting the vector parameters based on the encryption password to obtain encrypted vector parameters, storing the encrypted vector parameters into a preset data table, and identifying the data table; wherein the identification is xy.
In the present embodiment, it is first necessary to detect a state parameter of the multiphase rotary device: during the running of the rotary equipment, the state parameters of the multiphase rotary equipment, such as current, voltage, power, rotating speed and the like, are acquired in real time through the sensor or the measuring equipment. These parameters may reflect the operating state and performance of the rotating equipment.
Detecting type information of the multiphase rotary device: the type information of the rotating device, such as the model number, manufacturer, power level, etc., of the rotating device is obtained by an identification number or other means. Based on these types of information, corresponding sets of parameters are matched in a database.
Mapping relationship in database: a mapping relationship between the type information and the parameter set is maintained in a database. This means that there is a corresponding set of parameters for each rotating device type, including the optimal parameters of the rotating device state detection model. The optimal parameters in the parameter set have strong pertinence, are optimal model parameters during model detection, and are beneficial to improving the subsequent model detection result.
Acquiring an initial rotating equipment state detection model and updating: an initial rotational device state detection model is first obtained, which may be based on a known algorithm or model, typically a deep learning model. Then, the parameters of the initial model are updated according to the matched parameter set. The rotating equipment state detection model obtained in this way can be better adapted to the current rotating equipment type and running state.
Detection analysis and vectorization are performed based on a rotating equipment state detection model: and analyzing and processing the state parameters acquired in real time by using the updated state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment. Meanwhile, the state parameter and the detection result are vectorized, and are expressed as a vector.
Detecting the phase number of the multiphase rotary device: according to the previously determined method, the number of phases of the multiphase rotary device is detected and converted into a corresponding number as a first number x.
The number of parameters is obtained and converted into a number: and determining a corresponding number as a second number y according to the number of the state parameters of the rotary equipment.
Acquiring a preset digital matrix: a preset number matrix is obtained from a database, wherein the matrix comprises numbers of m rows and n columns. Each position has a number, which may be the same or different.
Acquiring and exchanging target numbers: and acquiring a first target number, a second target number and a third target number from the number matrix according to the numbers x and y obtained before. These target digits are then exchanged with the digits of the corresponding location according to a prescribed exchange order. The digital matrix after the exchange has uniqueness and uniqueness, and is prevented from being easily cracked.
Generating an encryption password: based on the new digit matrix after the exchange, an encryption password is generated, which may be based on the result of a cryptographic algorithm or other encryption algorithm. The encryption code may be obtained by combining a plurality of digits selected from the new digit matrix, and the generation method of the encryption code is numerous and will not be described here.
Encrypting and storing vector parameters: and carrying out encryption processing on the parameters obtained by vectorization before by utilizing the generated encryption passwords to obtain encryption vector parameters. Then, the encryption vector parameters are stored in a preset data table, and the data table is identified (xy). If the encryption vector parameters need to be decrypted later, a new digital matrix can be obtained by transforming the preset digital matrix in the same mode based on the identification, and then the corresponding encryption password is obtained by adopting the same password generation logic, so that decryption is further performed.
Through the steps, the functions of detecting the state parameters of the multiphase rotary equipment, matching the parameter set, updating the model, vectorizing, encrypting and storing the state detection result and the like can be realized, so that the state detection and the data confidentiality of the multiphase rotary equipment are improved.
In this embodiment, for specific implementation of each unit in the above embodiment of the apparatus, please refer to the description in the above embodiment of the method, and no further description is given here.
Referring to fig. 3, an apparatus is further provided in an embodiment of the present invention, and the internal structure of the apparatus may be as shown in fig. 3. The device includes a processor, a memory, a display screen, an input device, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the device is used to store the corresponding data in this embodiment. The network interface of the device is used for communicating with an external terminal through a network connection. Which computer program, when being executed by a processor, carries out the above-mentioned method.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not intended to limit the apparatus to which the present inventive arrangements are applied.
An embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above method. It is understood that the computer readable storage medium in this embodiment may be a volatile readable storage medium or a nonvolatile readable storage medium.
In summary, in the method and apparatus for measuring a rotation state and a speed according to the embodiments of the present invention, by selecting any one phase of a multiphase position signal of a multiphase rotation device as a reference phase signal, a rising edge/falling edge of the reference phase signal is detected; respectively reading the level states of other phase signals of the multi-phase rotating device; determining a rotation state of the multi-phase rotation device according to rising/falling edges of the reference phase signal and level states of other phase signals; and measuring the number of changes of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed. In the invention, the rotation state determination and the rotation speed calculation can be carried out for the rotation equipment of any phase, so that the applicability is high.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present invention and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM, among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or direct or indirect application in other related technical fields are included in the scope of the present invention.

Claims (10)

1. A method for measuring rotation state and speed, comprising the steps of:
selecting any one phase in the multiphase position signals of the multiphase rotary equipment as a reference phase signal, and detecting rising edges/falling edges of the reference phase signal;
respectively reading the level states of other phase signals of the multi-phase rotating device;
determining a rotation state of the multi-phase rotation device according to rising/falling edges of the reference phase signal and level states of other phase signals;
measuring the change times of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal, and calculating the rotating speed;
further comprises:
detecting a state parameter of the multiphase rotary equipment during operation;
detecting type information of the multiphase rotating equipment, and matching corresponding parameter sets in a database according to the type information; the method comprises the steps that a mapping relation between type information and a parameter set is stored in a database, and the parameter set comprises a plurality of optimal parameters of a rotating equipment state detection model;
acquiring an initial rotating equipment state detection model, and updating model parameters of the initial rotating equipment state detection model based on the parameter set to obtain a rotating equipment state detection model;
detecting and analyzing the state parameters based on the state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment; vectorizing the state parameters and the state detection result to obtain vector parameters;
detecting the phase number of the multiphase rotary equipment, and acquiring a number corresponding to the phase number as a first number x;
acquiring the number of parameters in the state parameters, and acquiring numbers corresponding to the number as a second number y;
acquiring a preset digital matrix from a database; wherein the number matrix comprises m rows and n columns of numbers;
acquiring a first target number from the number matrix; wherein the first target number is a number located on an xth and a yth column of the digital matrix;
acquiring a second target number from the number matrix; wherein the second target number is a number located on an xth row and an xth column of the digital matrix;
acquiring a third target number from the number matrix; wherein the third target number is a number located on a y-th row and a y-th column of the number matrix;
exchanging the first target number with the number on the 1 st row and the 2 nd column in the digital matrix, exchanging the second target number with the number on the 1 st row and the 1 st column in the digital matrix, exchanging the third target number with the number on the 2 nd row and the 1 st column in the digital matrix, and obtaining a new digital matrix after all the exchanging;
generating an encryption password based on the new number matrix; encrypting the vector parameters based on the encryption password to obtain encrypted vector parameters, storing the encrypted vector parameters into a preset data table, and identifying the data table; wherein the identification is xy.
2. The method according to claim 1, wherein before the step of selecting any one of the multiphase position signals of the multiphase rotary device as the reference phase signal and detecting the rising/falling edges of the reference phase signal, the method further comprises:
the phase number of the multiphase rotary device is determined, and the standard phase difference of each phase and the signal waveform of each phase are determined according to the phase number.
3. The rotation state and speed measuring method according to claim 1, wherein the step of calculating the rotation speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
4. The rotational state and speed measurement method according to claim 1, wherein the number of phases of the multiphase rotational device is at least 2.
5. The rotation state and speed measurement method according to claim 2, wherein the step of determining the number of phases of the multi-phase rotation apparatus, and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases, further comprises:
the level states of other phases when the reference phase signal is the rising edge/the falling edge in different rotation states are respectively determined for the rotation devices with different phases, and are recorded in a mapping table.
6. A rotation state and speed measuring device, comprising:
a detection unit for selecting any one phase of the multiphase position signals of the multiphase rotary device as a reference phase signal and detecting rising/falling edges of the reference phase signal;
a reading unit for reading the level states of the other phase signals of the multi-phase rotating device, respectively;
a first determining unit for determining a rotation state of the multi-phase rotating apparatus according to rising/falling edges of the reference phase signal and level states of other phase signals;
the measuring unit is used for measuring the change times of the rising edge/falling edge of the reference phase signal in the recording period according to the rising edge/falling edge of the reference phase signal and calculating the rotating speed;
further comprises:
detecting a state parameter of the multiphase rotary equipment during operation;
detecting type information of the multiphase rotating equipment, and matching corresponding parameter sets in a database according to the type information; the method comprises the steps that a mapping relation between type information and a parameter set is stored in a database, and the parameter set comprises a plurality of optimal parameters of a rotating equipment state detection model;
acquiring an initial rotating equipment state detection model, and updating model parameters of the initial rotating equipment state detection model based on the parameter set to obtain a rotating equipment state detection model;
detecting and analyzing the state parameters based on the state detection model of the rotary equipment to obtain a state detection result of the multiphase rotary equipment; vectorizing the state parameters and the state detection result to obtain vector parameters;
detecting the phase number of the multiphase rotary equipment, and acquiring a number corresponding to the phase number as a first number x;
acquiring the number of parameters in the state parameters, and acquiring numbers corresponding to the number as a second number y;
acquiring a preset digital matrix from a database; wherein the number matrix comprises m rows and n columns of numbers;
acquiring a first target number from the number matrix; wherein the first target number is a number located on an xth and a yth column of the digital matrix;
acquiring a second target number from the number matrix; wherein the second target number is a number located on an xth row and an xth column of the digital matrix;
acquiring a third target number from the number matrix; wherein the third target number is a number located on a y-th row and a y-th column of the number matrix;
exchanging the first target number with the number on the 1 st row and the 2 nd column in the digital matrix, exchanging the second target number with the number on the 1 st row and the 1 st column in the digital matrix, exchanging the third target number with the number on the 2 nd row and the 1 st column in the digital matrix, and obtaining a new digital matrix after all the exchanging;
generating an encryption password based on the new number matrix; encrypting the vector parameters based on the encryption password to obtain encrypted vector parameters, storing the encrypted vector parameters into a preset data table, and identifying the data table; wherein the identification is xy.
7. The rotation state and speed measuring device according to claim 6, further comprising:
and a second determining unit for determining the number of phases of the multi-phase rotating device, and determining the standard phase difference of each phase and the signal waveform of each phase according to the number of phases.
8. The rotation state and speed measuring device according to claim 6, wherein the calculating of the rotation speed includes:
calculating the rotating speed by MT velocimetry; the calculation formula is as follows:
n=60M/(T*Z)
wherein Z is a sensor coefficient, n is a rotation speed, M is a rising edge/falling edge changing frequency, and T is a period.
9. The rotational state and speed measurement device of claim 6, wherein the number of phases of the multiphase rotational apparatus is at least 2.
10. The rotation state and speed measuring device according to claim 7, further comprising:
and the recording unit is used for respectively determining the level states of other phases when the reference phase signals of the rotating equipment with different numbers of phases are rising edges/falling edges in different rotating states and recording the level states in a mapping table.
CN202311580821.2A 2023-11-24 2023-11-24 Rotation state and speed measuring method and device Active CN117288978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311580821.2A CN117288978B (en) 2023-11-24 2023-11-24 Rotation state and speed measuring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311580821.2A CN117288978B (en) 2023-11-24 2023-11-24 Rotation state and speed measuring method and device

Publications (2)

Publication Number Publication Date
CN117288978A CN117288978A (en) 2023-12-26
CN117288978B true CN117288978B (en) 2024-03-08

Family

ID=89248410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311580821.2A Active CN117288978B (en) 2023-11-24 2023-11-24 Rotation state and speed measuring method and device

Country Status (1)

Country Link
CN (1) CN117288978B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146680A (en) * 1997-11-10 1999-05-28 Alps Electric Co Ltd Driver for multiphase motor
CN1495406A (en) * 2002-09-05 2004-05-12 本田技研工业株式会社 Rotary detector
JP2008278606A (en) * 2007-04-27 2008-11-13 Mitsubishi Electric Corp Rotational position sensor for rotary electric machines and rotating electrical machine
CN102710191A (en) * 2006-11-30 2012-10-03 株式会社电装 Device and method for driving rotary mechinery
CN102830247A (en) * 2012-09-11 2012-12-19 深圳市开立科技有限公司 Method and device for detecting rotation state of rotation part

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146680A (en) * 1997-11-10 1999-05-28 Alps Electric Co Ltd Driver for multiphase motor
CN1495406A (en) * 2002-09-05 2004-05-12 本田技研工业株式会社 Rotary detector
CN102710191A (en) * 2006-11-30 2012-10-03 株式会社电装 Device and method for driving rotary mechinery
JP2008278606A (en) * 2007-04-27 2008-11-13 Mitsubishi Electric Corp Rotational position sensor for rotary electric machines and rotating electrical machine
CN102830247A (en) * 2012-09-11 2012-12-19 深圳市开立科技有限公司 Method and device for detecting rotation state of rotation part

Also Published As

Publication number Publication date
CN117288978A (en) 2023-12-26

Similar Documents

Publication Publication Date Title
CN110245654B (en) Pointer reading identification method and device, computer device and readable storage medium
CN112782743B (en) Vehicle positioning method and device, computer equipment and storage medium
JP7122960B2 (en) Anomaly detector
CN113157524B (en) Big data based exception problem solving method, system, equipment and storage medium
Jimenez et al. Feature extraction for nonintrusive load monitoring based on S-Transform
CN117453848B (en) Intelligent identifier management method and system
CN111027531A (en) Pointer instrument information identification method and device and electronic equipment
CN103500586A (en) Method and device for detecting capacity of storage device
CN111443163A (en) Interpolation method and device for ozone missing data and interpolation equipment
CN117288978B (en) Rotation state and speed measuring method and device
US10242472B2 (en) Trend dynamic sensor imaging using contour maps to visualize multiple trend data sets in a single view
CN111552696A (en) Data processing method and device based on big data, computer equipment and medium
CN1180568C (en) Portable data storage medium provided with access protection by rendering messages unfamiliar
Konstantinou et al. A data-based detection method against false data injection attacks
CN109753157A (en) The gestural control method and device of display screen
KR20170092601A (en) Systems and methods for generating random numbers using physical variations present in material samples
CN112181479A (en) Method and device for determining difference between code file versions and electronic equipment
CN116486146A (en) Fault detection method, system, device and medium for rotary mechanical equipment
CN103295645B (en) A kind of scanning detection method of dynamic storage and system
CN115183901A (en) Method and device for detecting ambient temperature, electronic equipment and storage medium
CN110248372B (en) Simulator detection method and device, storage medium and computer equipment
CN110806950B (en) Snapshot generation method and device based on polymorphic storage mechanism and computer equipment
CN112417975A (en) Method and device for obtaining reading of pointer instrument
CN113254412A (en) Data conversion method and device
CN116881746B (en) Identification method and identification device for abnormal data in electric power system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant