Sinusoidal and cosine signal processing method, device, system and sinusoidal and cosine encoder
By performing A/D conversion, low-pass filtering, frequency multiplication calculation and D/A conversion on the sine and cosine signals, the problem that the output signal of the low-resolution sine and cosine encoder cannot meet the elevator working conditions is solved, and the system is realized without increasing the hardware cost. The signal resolution is improved.
Patent Information
- Application Number
- CN202111069982.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-13
AI Technical Summary
The low-resolution sine and cosine encoder output signals cannot meet the elevator working conditions, and hardware modifications increase product cost and space occupation.
By acquiring the sine and cosine analog signals for A/D conversion, low-pass filtering, frequency multiplication calculation, tracking and locking, and finally D/A conversion, the frequency multiplication processing of the sine and cosine signals is realized and the signal resolution is improved.
Without increasing the hardware cost, the resolution of the sine and cosine encoder output signals is improved to meet the requirements of elevator working conditions.
Smart Images

Figure CN113916267B
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing, and in particular to a sine-cosine signal processing method, device, system and sine-cosine encoder. Background Art
[0002] At present, the elevator industry mainly uses sine and cosine encoders as position detection devices. The resolution of the sine and cosine encoder has an important impact on the safety of elevator operation. For elevators without weighing sensors, low-resolution sine and cosine encoders, such as 256-line and 512-line sine and cosine encoders, will lead to problems such as poor elevator startup comfort and large motor angle detection errors. Therefore, the sine and cosine signals output by low-resolution sine and cosine encoders cannot meet the working requirements of the elevator. In addition, since the traction machine space that the sine and cosine encoder can use is limited, hardware modification of the sine and cosine encoder itself to improve the resolution of the sine and cosine encoder will increase the volume of the sine and cosine encoder, which not only occupies the space of the elevator traction machine, but also increases the product manufacturing cost.
[0003] With regard to the problem in the related art that the output signal of the low-resolution sine-cosine encoder cannot meet the requirements of elevator working conditions, no effective solution has been proposed yet. Summary of the invention
[0004] In this embodiment, a sine-cosine signal processing method, device, system and sine-cosine encoder are provided to solve the problem in the related art that the output signal of the low-resolution sine-cosine encoder cannot meet the requirements of elevator working conditions.
[0005] In a first aspect, a sine-cosine signal processing method is provided in this embodiment, comprising the following steps:
[0006] Acquire the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals, and obtain sine and cosine digital signals to be processed;
[0007] Performing low-pass filtering on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal;
[0008] According to a preset frequency doubling algorithm, the sine-cosine filter signal is frequency-multiplied to obtain a sine-cosine frequency-multiplied signal;
[0009] Tracking and locking the sine and cosine frequency multiplication signals to obtain sine and cosine setting frequency multiplication signals;
[0010] The sine and cosine frequency-multiplied signals are subjected to D / A conversion to obtain sine and cosine frequency-multiplied analog signals.
[0011] In some embodiments, the sine-cosine digital signal includes a sine digital signal and a cosine digital signal, the sine-cosine filtered signal includes a sine filtered signal and a cosine filtered signal, and low-pass filtering is performed on the sine-cosine digital signal to be processed to obtain the sine-cosine filtered signal, including:
[0012] According to a preset filter coefficient, the sinusoidal digital signal is low-pass filtered to obtain the sinusoidal filtered signal;
[0013] The cosine digital signal is low-pass filtered according to a preset filter coefficient to obtain the cosine filtered signal.
[0014] In some embodiments, performing frequency multiplication calculation on the sine-cosine filter signal according to a preset frequency multiplication algorithm to obtain a sine-cosine frequency multiplication signal includes:
[0015] Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency-doubled signal, a frequency-doubled calculation is performed on the sine-cosine filter signal to obtain a sine-cosine frequency-doubled signal.
[0016] In some embodiments, the sin-cosine frequency multiplication signal includes a sin-cosine frequency multiplication signal and a cosine frequency multiplication signal, and based on a preset trigonometric function conversion relationship between the sin-cosine filter signal and the sin-cosine frequency multiplication signal, the sin-cosine filter signal is frequency multiplication calculated to obtain the sin-cosine frequency multiplication signal, including:
[0017] Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine frequency-doubled signal, frequency-doubled calculation is performed on the sine-cosine filter signal to obtain a sine frequency-doubled signal;
[0018] Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the cosine frequency-doubled signal, a frequency-doubled calculation is performed on the sine-cosine filter signal to obtain a cosine frequency-doubled signal.
[0019] In some embodiments, the sine-cosine setting frequency multiplication signal includes a sine setting frequency multiplication signal and a cosine setting frequency multiplication signal, and the tracking and locking of the sine-cosine setting frequency multiplication signal to obtain the sine-cosine setting frequency multiplication signal includes:
[0020] Performing PI regulation and integration processing on the sinusoidal frequency-doubled signal to obtain a sinusoidal setting frequency-doubled signal;
[0021] The cosine frequency-doubled signal is subjected to PI regulation and integration processing to obtain a cosine-set frequency-doubled signal.
[0022] In a second aspect, a sine-cosine signal processing device is provided in this embodiment, including: an A / D conversion module, a low-pass filtering module, a frequency multiplication calculation module, a PLL phase-locking module and a D / A conversion module, wherein:
[0023] The A / D conversion module is used to obtain the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals, and obtain the sine and cosine digital signals to be processed;
[0024] The low-pass filtering module is used to perform low-pass filtering on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal;
[0025] The frequency multiplication calculation module is used to perform frequency multiplication calculation on the sine-cosine filter signal according to a preset frequency multiplication algorithm to obtain a sine-cosine frequency multiplication signal;
[0026] The PLL phase-locking module is used to track and lock the sine-cosine frequency-multiplied signal to obtain a sine-cosine setting frequency-multiplied signal;
[0027] The D / A conversion module is used to perform D / A conversion on the sine-cosine setting frequency-doubled signal to obtain a sine-cosine frequency-doubled analog signal.
[0028] In some embodiments, the frequency multiplication calculation module includes a calculation unit, which is used to perform calculation processing on the sine-cosine filter signal to obtain a sine-cosine frequency multiplication signal; wherein the type, quantity and combination of the calculation unit are determined according to the preset frequency multiplication algorithm.
[0029] In some of the embodiments, the operation unit is a multiplication unit, an addition unit or a gain unit.
[0030] In a third aspect, a sine-cosine signal processing system is provided in this embodiment, comprising: an input circuit, an output circuit, and the sine-cosine signal processing device of the second aspect, wherein:
[0031] The input circuit is used to convert the input sine-cosine differential analog signal into a single-ended sine-cosine analog signal, perform voltage conversion and filtering on the single-ended sine-cosine analog signal, and output a target sine-cosine analog signal;
[0032] The sine-cosine signal processing device is used to process the target sine-cosine analog signal output by the input circuit according to the sine-cosine signal processing method of the first aspect to obtain a sine-cosine frequency-multiplied analog signal;
[0033] The output circuit is used to filter, convert voltage and perform differential processing on the sine-cosine frequency-doubled analog signal obtained by the sine-cosine signal processing device to obtain a sine-cosine differential frequency-doubled analog signal.
[0034] In a fourth aspect, a sine-cosine encoder is provided in this embodiment, comprising an encoder and the sine-cosine signal processing system of the third aspect, wherein:
[0035] The encoder is used to generate a sine-cosine differential analog signal;
[0036] The sine-cosine signal processing system is used to process the sine-cosine differential analog signal to obtain a sine-cosine differential frequency-doubled analog signal.
[0037] Compared with the related art, the sine-cosine signal processing method, device, system and sine-cosine encoder provided in this embodiment obtain sine-cosine analog signals, perform A / D conversion on the sine-cosine analog signals to obtain sine-cosine digital signals to be processed; perform low-pass filtering on the sine-cosine digital signals to obtain sine-cosine filtered signals; perform frequency multiplication calculation on the sine-cosine filtered signals according to a preset frequency multiplication algorithm to obtain sine-cosine frequency multiplication signals; track and lock the sine-cosine frequency multiplication signals to obtain sine-cosine set frequency multiplication signals; perform D / A conversion on the sine-cosine set frequency multiplication signals to obtain sine-cosine frequency multiplication analog signals. It realizes the frequency multiplication processing of sine-cosine analog signals without increasing the hardware cost, and can process the sine-cosine signals output by the sine-cosine encoder into sine-cosine frequency multiplication signals that meet the requirements of elevator working conditions, thereby improving the resolution of the output signals of the sine-cosine encoder.
[0038] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0040] Figure 1 is an application scenario diagram of the sine-cosine signal processing method of this embodiment;
[0041] Figure 2 is a flow chart of the sine-cosine signal processing method of this embodiment;
[0042] Figure 3 is a control block diagram of sine and cosine signal processing of a processing chip of this embodiment;
[0043] Figure 4 is a structural block diagram of the low-pass filter of this embodiment;
[0044] Figure 5 is a structural block diagram of the sine frequency multiplication calculation model of this embodiment;
[0045] Figure 6 is a structural block diagram of the cosine frequency multiplication calculation model of this embodiment;
[0046] Figure 7is a structural block diagram of the PLL phase-locked model of this embodiment;
[0047] Figure 8 is the overall structural block diagram of the sine-cosine signal processing model of this embodiment;
[0048] Fig. 9 This is a waveform comparison diagram of the signal frequency doubling process of this embodiment;
[0049] Fig.10 is a structural block diagram of the sine-cosine signal processing device of this embodiment;
[0050] Fig.11 is a structural block diagram of the sine-cosine signal processing system of this embodiment;
[0051] Fig.12 It is a structural block diagram of the sine-cosine encoder of this embodiment. DETAILED DESCRIPTION
[0052] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.
[0053] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0054] Figure 1 This is an application scenario diagram of the sine and cosine signal processing method. Figure 1As shown, it includes a first peripheral circuit 11, a processing chip 12, and a second peripheral circuit 13, wherein: the first peripheral circuit 11 is connected to a sine-cosine encoder, such as any one of a photoelectric sine-cosine encoder, a magnetic sine-cosine encoder, an inductive sine-cosine encoder, and a capacitive sine-cosine encoder. The sine-cosine encoder can generate a sine-cosine analog signal, and input the sine-cosine analog signal into the processing chip 12 via the first peripheral circuit 11. The first peripheral circuit 11 is composed of a differential circuit module, a voltage conversion module, and an LC filter circuit module. The first peripheral circuit 11 is used to process the input sine-cosine analog signal to obtain a sine-cosine analog signal adapted to the processing chip 12, and input the processed sine-cosine analog signal into the processing chip 12. The processing chip 12 may specifically be a DSP or MCU chip, which is used to obtain the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals to obtain the sine and cosine digital signals to be processed, perform low-pass filtering on the sine and cosine digital signals to be processed to obtain the sine and cosine filtered signals, perform frequency multiplication calculation on the sine and cosine filtered signals according to a preset frequency multiplication algorithm to obtain the sine and cosine frequency multiplication signals, track and lock the sine and cosine frequency multiplication signals to obtain the sine and cosine set frequency multiplication signals, perform D / A conversion on the sine and cosine set frequency multiplication signals to obtain the sine and cosine frequency multiplication analog signals. The second peripheral circuit 13 includes an LC filter circuit module, a voltage conversion module, and a differential circuit module, which are used to process the sine and cosine frequency multiplication analog signals output by the processing chip 12, and output the sine and cosine frequency multiplication analog signals adapted to other hardware ports.
[0055] In this embodiment, a sine-cosine signal processing method is provided. Figure 2 is a flow chart of the sine-cosine signal processing method of this embodiment, such as Figure 2 As shown, the process includes the following steps:
[0056] Step S210, acquiring the sampled sine and cosine analog signals, performing A / D conversion on the sine and cosine analog signals, and obtaining sine and cosine digital signals to be processed.
[0057] Among them, the sine-cosine signal processing method can be run in a processing chip, and the processing chip can be a DSP chip or an MCU chip. The sine-cosine analog signal can be generated by a sine-cosine encoder, and after being processed by a differential circuit, a voltage conversion module, and an LC filter circuit, it is input into the processing chip. The sine-cosine analog signal includes a sine analog signal and a cosine analog signal. The sine-cosine differential analog signal generated by the sine-cosine encoder can be converted into a single-ended sine-cosine analog signal through a differential circuit, and a sine-cosine analog signal with less interference that is compatible with the processing chip voltage is obtained after voltage conversion and filtering, and input into the analog-to-digital conversion A / D (analog signals / digital signals, analog signals / digital signals) module of the processing chip to obtain a sine-cosine digital signal.
[0058] Step S220, low-pass filtering is performed on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal.
[0059] An algorithm module can be built inside the processing chip, and the input sine and cosine digital signals can be processed through data simulation and code operation. Among them, the low-pass filtering, frequency multiplication calculation and PLL phase locking inside the processing chip can all be realized by the built model. Figure 3 1 is a control block diagram of a sine and cosine signal processing of a processing chip in this embodiment. Figure 3 As shown, after acquiring the sine digital signal and cosine digital signal input by the sine signal source and the cosine signal source, the processing chip performs low-pass filtering on the sine digital signal through a first low-pass filter to obtain a sine filter signal, and performs low-pass filtering on the cosine digital signal through a second low-pass filter to obtain a cosine filter signal. Performing low-pass filtering on the sine and cosine digital signals to be processed can filter out high-frequency interference in the sine and cosine digital signals, thereby improving the stability of the signals to be processed. Figure 4 This is a structural block diagram of a low-pass filter, which can be based on the following Figure 4 The model of the low-pass filter shown in FIG. 1 includes filter coefficient 1, filter coefficient 2 and a delayed inertia link to perform low-pass filtering on the sine and cosine digital signal to be processed to obtain a sine and cosine filter signal output by the software. Further, the model performs low-pass filtering on the sine and cosine digital signal based on the following formula.
[0060] y n =k*x n +(1-k)y n-1 (1)
[0061] Among them, y n is the filtered output signal, which is the sine-cosine filter signal. n is the input signal, which is the sine and cosine digital signal to be processed. k is the filter coefficient, where Figure 4 In the model shown, the filter coefficient 1 is k, and the filter coefficient 2 is 1-k. n-1 It is the output signal of the sine-cosine digital signal to be processed after low-pass filtering in the previous cycle. It can be understood that other low-pass filter algorithm models can also be pre-set according to the actual application scenario, and no specific limitation is made here. In addition, the sine-cosine digital signal includes a sine digital signal and a cosine digital signal, and the sine-cosine filtered signal can include a sine filtered signal and a cosine filtered signal. By low-pass filtering the sine digital signal, a sine filtered signal is obtained, and by low-pass filtering the cosine digital signal, a cosine filtered signal is obtained.
[0062] Step S230, performing frequency doubling calculation on the sine-cosine filter signal according to a preset frequency doubling algorithm to obtain a sine-cosine frequency doubling signal.
[0063] Among them, the frequency doubling algorithm can be specifically a frequency doubling calculation model set according to the requirements of the resolution of the sine and cosine signals under actual working conditions. Specifically, the frequency doubling algorithm can be a trigonometric function conversion relationship between the sine and cosine filter signals and the sine and cosine frequency doubling signals. The corresponding frequency doubling algorithms can be preset for the sine frequency doubling signal and the cosine frequency doubling signal according to the actual working conditions. Further, the sine and cosine filter signals can be processed based on the preset trigonometric function conversion relationship between the sine and cosine filter signals and the sine frequency doubling signal to obtain the sine frequency doubling signal; based on the preset trigonometric function conversion relationship between the sine and cosine filter signals and the cosine frequency doubling signal, the sine and cosine filter signals can be processed to obtain the cosine frequency doubling signal. For example, the sine and cosine signals can be processed based on the trigonometric function conversion relationship between the sine filter signal sinθ, the cosine filter signal cosθ and the sine frequency doubling signal sin2θ in the sine and cosine filter signals, as shown in the following formula, to obtain a sine signal with a frequency doubling of 2, i.e., sin2θ.
[0064] sin2θ=2*sinθ*cosθ (2)
[0065] Figure 5 It is a structural block diagram of a sine frequency multiplication calculation model, where: Figure 5 The multiplication module, multiplication module 1, multiplication module 2, multiplication module 3, signal gain module, and signal gain 1 module are all operation units, which are used to perform operation processing on the input sin signal, cos signal and cos doubled frequency signal, and output the sin doubled frequency signal and the square of the sin doubled frequency signal. Figure 5 The cosine signal frequency doubling in the above refers to the cosine double frequency signal, the sin signal frequency doubling output refers to the sin quadruple frequency signal, and the sin signal frequency doubling square output refers to the sin double frequency signal square. In addition, if the actual application scenario requires the output of a higher frequency signal, the corresponding trigonometric function conversion relationship can be used to convert Figure 5 Adjust the structure in.
[0066] For another example, the sine and cosine signals can be processed according to the trigonometric function conversion relationship between the sine filter signal sinθ, the cosine filter signal cosθ and the cosine doubled signal cos2θ as shown in the following formula to obtain a doubled cosine signal, i.e., cos2θ.
[0067] cos2θ=cos 2 θ-sin 2 θ (3)
[0068] Figure 6It is a structural block diagram of a cosine frequency multiplication calculation model, where: Figure 6 The multiplication module, multiplication module 1, addition module, and addition module 1 are all operation units, which are used to perform operation processing on the input cosine signal, the square of the sin signal, and the square of the sin frequency-doubled signal, and output the cosine frequency-doubled signal. Figure 6 The cosine signal frequency doubling in the above refers to the cosine double frequency signal, the cosine signal frequency doubling output refers to the cosine quadruple frequency signal, and the sinine signal frequency doubling square refers to the sinine double frequency signal square. If the actual application scenario requires the output of a higher frequency signal, the corresponding trigonometric function conversion relationship can be used to convert Figure 6 The structure in should be adjusted accordingly.
[0069] like Figure 3 As shown, the sine filter signal output by the first low-pass filter and the cosine filter signal output by the second low-pass filter can be input into the sine frequency multiplication calculation module to output the sine frequency multiplication signal; the sine filter signal output by the first low-pass filter and the cosine filter signal output by the second low-pass filter can be input into the cosine frequency multiplication calculation module to output the cosine frequency multiplication signal. By performing frequency multiplication processing on the input sine and cosine filter signals according to the preset frequency multiplication algorithm to obtain the sine and cosine frequency multiplication signal, the corresponding analog signal with a resolution that meets the actual working conditions can be provided to the subsequent hardware circuit, thereby realizing the improvement of the resolution of the sine and cosine analog signal generated by the sine and cosine encoder through the software algorithm, and realizing the improvement of the resolution without increasing the volume and cost of the sine and cosine encoder.
[0070] Step S240, tracking and locking the sine and cosine double frequency signals to obtain sine and cosine regulated double frequency signals.
[0071] Specifically, a PLL (Phase Locked Loop) can be used to process the sine and cosine frequency-multiplied signals respectively to obtain sine and cosine regulated frequency-multiplied signals. Figure 7 This is a structural block diagram of a PLL phase-locked model. Figure 7 As shown in FIG. 1 , the PLL phase-locked model includes a PI (proportional integral) controller and an integral function module. The PI controller is used to adjust the angular velocity of the sine and cosine frequency multiplication signal, and the integral function module is used to process the angular velocity obtained after adjustment by the PI controller and output the angle of the sine and cosine frequency multiplication signal. Figure 3As shown, the first PLL phase-locked loop can be used to process the sine frequency multiplication signal to obtain a sine setting frequency multiplication signal, and the second PLL phase-locked loop can be used to process the cosine frequency multiplication signal to obtain a cosine setting frequency multiplication signal. The PLL phase-locked loop can track and lock the sine and cosine frequency multiplication signal according to the angle difference and signal jump in the sine and cosine frequency multiplication signal, thereby eliminating the error caused by interference to the signal and obtaining the sine and cosine setting frequency multiplication signal.
[0072] Step S250, performing D / A conversion on the sine-cosine frequency-doubled signal to obtain a sine-cosine frequency-doubled analog signal.
[0073] By performing D / A (digital signals / analog signals) conversion on the sine and cosine frequency-doubled signals, a sine and cosine frequency-doubled analog signal can be obtained, thereby outputting an actual physical signal for a subsequent hardware port.
[0074] Specifically, Figure 8 : is the overall structural block diagram of the sine and cosine signal processing model of this embodiment. Figure 8 As shown, the sine digital signal is input into a first-order low-pass filter to obtain a sine filter signal, and the cosine digital signal is input into a first-order low-pass filter to obtain a cosine filter signal. The sine filter signal, the cosine filter signal, and the cosine frequency-multiplied signal after the cosine filter signal is frequency-multiplied by the cosine signal trigonometric function frequency-multiplied processing module are input into the sin signal trigonometric function frequency-multiplied processing module to output the sine frequency-multiplied signal. Similarly, the cosine filter signal, the square of the sine filter signal, and the square of the sine frequency-multiplied signal are input into the cos signal trigonometric function frequency-multiplied processing module to output the cosine frequency-multiplied signal. Finally, the sine frequency-multiplied signal is processed by the PLL software phase-locked loop algorithm to output the sine set frequency-multiplied signal; the cosine frequency-multiplied signal is processed by the PLL software phase-locked loop algorithm to output the cosine set frequency-multiplied signal.
[0075] In one embodiment, the above steps S210 to S250 are used to perform 8-fold frequency processing on the input sinusoidal digital signal, the frequency of the input signal is 1 Hz, and the frequency of the output signal is 8 Hz. Fig. 9 This is a waveform comparison diagram of the signal after being processed by the above-mentioned sine and cosine signal processing method, wherein the input sine signal is a sine analog signal, the input cosine signal is a cosine analog signal, the output sine 8-fold frequency signal is a sine 8-fold frequency analog signal, and the output cosine 8-fold frequency signal is a cosine 8-fold frequency analog signal.
[0076] In the above steps S210 to S250, by acquiring the sampled sine-cosine analog signal, the sine-cosine analog signal is A / D converted to obtain the sine-cosine digital signal to be processed; the sine-cosine digital signal to be processed is low-pass filtered to obtain the sine-cosine filtered signal; according to the preset frequency multiplication algorithm, the sine-cosine filtered signal is frequency multiplied to obtain the sine-cosine frequency multiplication signal; the sine-cosine frequency multiplication signal is tracked and locked to obtain the sine-cosine setting frequency multiplication signal; the sine-cosine setting frequency multiplication signal is D / A converted to obtain the sine-cosine frequency multiplication analog signal. The digital signal is frequency multiplied by software, thereby realizing the frequency multiplication processing of the sine-cosine analog signal without increasing the hardware cost, and then the sine-cosine signal output by the sine-cosine encoder can be processed into a sine-cosine frequency multiplication signal that meets the elevator working condition requirements, thereby improving the resolution of the sine-cosine encoder output signal.
[0077] In some embodiments, the sine-cosine digital signal includes a sine digital signal and a cosine digital signal, and the sine-cosine filtered signal includes a sine filtered signal and a cosine filtered signal. Based on the above step S220, the sine-cosine digital signal to be processed is low-pass filtered to obtain a sine-cosine filtered signal, which specifically includes the following steps:
[0078] Step S221, performing low-pass filtering on the sinusoidal digital signal according to a preset filtering coefficient to obtain a sinusoidal filtered signal.
[0079] Step S222: low-pass filter the cosine digital signal according to a preset filter coefficient to obtain a cosine filtered signal.
[0080] In the above steps S221 to S222, high-frequency interference in the sine-cosine digital signal can be filtered out by performing low-pass filtering on the sine-cosine digital signal, thereby obtaining a relatively stable sine-cosine filtered signal.
[0081] Additionally, in one embodiment, based on the above step S230, according to a preset frequency doubling algorithm, frequency doubling calculation is performed on the sine-cosine filter signal to obtain a sine-cosine frequency doubling signal, which specifically includes the following steps:
[0082] Step S231, based on the preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency-doubled signal, perform frequency-doubled calculation on the sine-cosine filter signal to obtain the sine-cosine frequency-doubled signal.
[0083] Further, in one embodiment, the sin-cosine frequency multiplication signal includes a sin-cosine frequency multiplication signal and a cosine frequency multiplication signal. Based on the above step S231, based on the preset trigonometric function conversion relationship between the sin-cosine filter signal and the sin-cosine frequency multiplication signal, the sin-cosine filter signal is frequency multiplication calculated to obtain the sin-cosine frequency multiplication signal, which specifically includes the following steps:
[0084] Step S2311, based on the preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine frequency-doubled signal, perform frequency-doubled calculation on the sine-cosine filter signal to obtain a sine frequency-doubled signal;
[0085] Step S2312, based on the preset trigonometric function conversion relationship between the sine-cosine filter signal and the cosine frequency-doubled signal, perform frequency-doubled calculation on the sine-cosine filter signal to obtain the cosine frequency-doubled signal.
[0086] The above steps can realize frequency doubling processing of the sine-cosine filter signal by performing frequency doubling calculation on the sine-cosine filter signal according to the preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency doubling signal, thereby obtaining a frequency doubling signal that meets actual working conditions.
[0087] Additionally, in one embodiment, the sine-cosine setting frequency multiplication signal includes a sine setting frequency multiplication signal and a cosine setting frequency multiplication signal. Based on the above step S240, the sine-cosine setting frequency multiplication signal is tracked and locked to obtain the sine-cosine setting frequency multiplication signal, which specifically includes the following steps:
[0088] Step S241, PI adjustment and integration processing are performed on the sinusoidal double frequency signal to obtain a sinusoidal regulated double frequency signal.
[0089] Step S242, performing PI adjustment and integration processing on the cosine frequency-doubled signal to obtain a cosine-set frequency-doubled signal.
[0090] In the above steps, according to the preset filter coefficient, the sine digital signal is low-pass filtered to obtain a sine filter signal, and according to the preset filter coefficient, the cosine digital signal is low-pass filtered to obtain a cosine filter signal, thereby filtering out high-frequency interference in the sine and cosine digital signals and improving the stability of the sine and cosine filter signals; based on the preset trigonometric function conversion relationship between the sine and cosine filter signal and the sine frequency multiplication signal, the sine and cosine filter signal is frequency multiplied to obtain a sine frequency multiplication signal, and based on the preset trigonometric function conversion relationship between the sine and cosine filter signal and the cosine frequency multiplication signal and the preset frequency multiplication requirement, the sine and cosine filter signal is frequency multiplied to obtain. The cosine frequency doubling signal can realize the frequency doubling processing of the sine and cosine filter signal, and then obtain the frequency doubling signal that meets the actual working condition; the sine frequency doubling signal is PI-regulated and integrated to obtain the sine setting frequency doubling signal, and the cosine frequency doubling signal is PI-regulated and integrated to obtain the cosine setting frequency doubling signal, thereby realizing the tracking and locking of the sine and cosine frequency doubling signal and eliminating the error caused by interference to the signal; it realizes the frequency doubling processing of the sine and cosine analog signal, and then can process the sine and cosine signal output by the sine and cosine encoder into a sine and cosine frequency doubling signal that meets the elevator working condition requirements, thereby improving the resolution of the sine and cosine encoder output signal.
[0091] In this embodiment, a sine-cosine signal processing device 100 is also provided. Fig.10 is a structural block diagram of the sine and cosine signal processing device of this embodiment, such as Fig.10 As shown, the sine-cosine signal processing device 100 includes: an A / D conversion module 101, a low-pass filtering module 102, a frequency multiplication calculation module 103, a PLL phase locking module 104 and a D / A conversion module 105, wherein:
[0092] The A / D conversion module 101 is used to obtain the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals, and obtain sine and cosine digital signals to be processed;
[0093] A low-pass filtering module 102 is used to perform low-pass filtering on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal;
[0094] The frequency multiplication calculation module 103 is used to perform frequency multiplication calculation on the sine and cosine filter signals according to a preset frequency multiplication algorithm to obtain sine and cosine frequency multiplication signals;
[0095] The PLL phase-locking module 104 is used to track and lock the sine and cosine frequency-multiplied signals to obtain sine and cosine setting frequency-multiplied signals;
[0096] The D / A conversion module 105 is used to perform D / A conversion on the sine and cosine frequency-multiplied signals to obtain sine and cosine frequency-multiplied analog signals.
[0097] The above-mentioned sine-cosine signal processing device 100 obtains the sampled sine-cosine analog signal, performs A / D conversion on the sine-cosine analog signal to obtain the sine-cosine digital signal to be processed; performs low-pass filtering on the sine-cosine digital signal to be processed to obtain the sine-cosine filtered signal; performs frequency multiplication calculation on the sine-cosine filtered signal according to a preset frequency multiplication algorithm to obtain the sine-cosine frequency multiplication signal; tracks and locks the sine-cosine frequency multiplication signal to obtain the sine-cosine setting frequency multiplication signal; performs D / A conversion on the sine-cosine setting frequency multiplication signal to obtain the sine-cosine frequency multiplication analog signal. The digital signal is frequency multiplied by software, thereby realizing the frequency multiplication processing of the sine-cosine analog signal without increasing the hardware cost, and then the sine-cosine signal output by the sine-cosine encoder can be processed into a sine-cosine frequency multiplication signal that meets the elevator working condition requirements, thereby improving the resolution of the sine-cosine encoder output signal.
[0098] In one embodiment, the frequency multiplication calculation module 103 further includes a calculation unit, which is used to perform calculation processing on the sine-cosine filter signal to obtain a sine-cosine frequency multiplication signal; wherein the type, quantity and combination of the calculation unit are determined according to a preset frequency multiplication algorithm.
[0099] Further, in one embodiment, the operation unit is a multiplication unit, an addition unit or a gain unit.
[0100] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0101] In this embodiment, a sine-cosine signal processing system 110 is provided. Fig.11 1 is a structural block diagram of the sine-cosine signal processing system of this embodiment, comprising: an input circuit 111, an output circuit 112, and a sine-cosine signal processing device 100 of any embodiment, wherein:
[0102] The input circuit 111 is used to convert the input sine-cosine differential analog signal into a single-ended sine-cosine analog signal, perform voltage conversion and filtering on the single-ended sine-cosine analog signal, and output a target sine-cosine analog signal;
[0103] The sine-cosine signal processing device 100 is used to process the target sine-cosine analog signal output by the input circuit 111 according to the sine-cosine signal processing method of any of the above embodiments to obtain a sine-cosine frequency-multiplied analog signal;
[0104] The output circuit 112 is used to filter, convert voltage and perform differential processing on the sine-cosine frequency-doubled analog signal obtained by the sine-cosine signal processing device 100 to obtain a sine-cosine differential frequency-doubled analog signal.
[0105] The input circuit 111 may include a differential circuit module 1111, a voltage conversion module 1112, and an LC filter circuit module 1113. By processing the input sine-cosine differential analog signal, a sine-cosine analog signal adapted to the sine-cosine signal processing device 100 can be obtained, so as to realize the frequency doubling processing of the sine-cosine analog signal. The output circuit 112 is configured corresponding to the structure of the input circuit 111, and includes an LC filter circuit module 1121, a voltage conversion module 1122, and a differential circuit module 1123, so as to process the sine-cosine frequency doubling analog signal output by the sine-cosine signal processing device 100 into a physical electrical signal adapted to the subsequent hardware port.
[0106] The above-mentioned sine-cosine signal processing system 110 uses software to perform frequency doubling processing on digital signals, thereby realizing frequency doubling processing on sine-cosine analog signals without increasing hardware costs, and then being able to process the sine-cosine signals output by the sine-cosine encoder into sine-cosine frequency-doubled signals that meet the requirements of elevator working conditions, thereby improving the resolution of the sine-cosine encoder output signal.
[0107] In this embodiment, a sine-cosine encoder 120 is provided. Fig.12 : is a structural block diagram of the sine-cosine encoder of this embodiment. Fig.12 As shown, it includes an encoder 122 and the above-mentioned sine-cosine signal processing system 110, wherein:
[0108] The encoder 122 is used to generate a sine-cosine differential analog signal;
[0109] The sine-cosine signal processing system 110 is used to process the sine-cosine differential analog signal to obtain a sine-cosine differential frequency-doubled analog signal.
[0110] The above-mentioned sine-cosine encoder 120 generates a sine-cosine differential analog signal using the encoder 122, and processes the sine-cosine differential analog signal using the sine-cosine signal processing system 110 to obtain a sine-cosine differential frequency-doubled analog signal. It uses software to perform frequency-doubled processing on digital signals, thereby realizing frequency-doubled processing on sine-cosine analog signals without increasing hardware costs, and then can process the sine-cosine signal output by the sine-cosine encoder into a sine-cosine frequency-doubled signal that meets the elevator working condition requirements, thereby improving the resolution of the sine-cosine encoder output signal.
[0111] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.
[0112] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.
[0113] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.
[0114] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.
Claims
1. A sine-cosine signal processing method, characterized in that: The following steps are involved: Acquire the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals, and obtain sine and cosine digital signals to be processed; the sine and cosine analog signals include sine analog signals and cosine analog signals; the sine and cosine digital signals include sine digital signals and cosine digital signals; Performing low-pass filtering on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal; the sine-cosine filtered signal includes a sine filtered signal and a cosine filtered signal; Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency-multiplied signal, the sine-cosine filter signal is frequency-multiplied to obtain a sine-cosine frequency-multiplied signal; the sine-cosine frequency-multiplied signal includes a sine frequency-multiplied signal and a cosine frequency-multiplied signal; Tracking and locking the sine and cosine frequency multiplication signals to obtain sine and cosine setting frequency multiplication signals; the sine and cosine setting frequency multiplication signals include sine setting frequency multiplication signals and cosine setting frequency multiplication signals; wherein, specifically including: Performing PI regulation and integration processing on the sinusoidal frequency-doubled signal to obtain a sinusoidal setting frequency-doubled signal; Performing PI adjustment and integration processing on the cosine frequency-multiplied signal to obtain a cosine-set frequency-multiplied signal; The sine-cosine frequency-multiplied signal is subjected to D / A conversion to obtain a sine-cosine frequency-multiplied analog signal.
2. The sine-cosine signal processing method according to claim 1, characterized in that: The sine-cosine digital signal to be processed is subjected to low-pass filtering to obtain a sine-cosine filtered signal, comprising: According to a preset filter coefficient, the sinusoidal digital signal is low-pass filtered to obtain the sinusoidal filtered signal; The cosine digital signal is low-pass filtered according to a preset filter coefficient to obtain the cosine filtered signal.
3. The sine-cosine signal processing method according to claim 1, characterized in that: Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency-multiplied signal, frequency multiplication calculation is performed on the sine-cosine filter signal to obtain the sine-cosine frequency-multiplied signal, including: Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine frequency-doubled signal, frequency-doubled calculation is performed on the sine-cosine filter signal to obtain a sine frequency-doubled signal; Based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the cosine frequency-doubled signal, a frequency-doubled calculation is performed on the sine-cosine filter signal to obtain a cosine frequency-doubled signal.
4. A sine-cosine signal processing device, characterized in that: include: A / D conversion module, low-pass filter module, frequency multiplication calculation module, PLL phase-locking module and D / A conversion module, among which: The A / D conversion module is used to obtain the sampled sine and cosine analog signals, perform A / D conversion on the sine and cosine analog signals, and obtain the sine and cosine digital signals to be processed; the sine and cosine analog signals include sine analog signals and cosine analog signals; the sine and cosine digital signals include sine digital signals and cosine digital signals; The low-pass filtering module is used to perform low-pass filtering on the sine-cosine digital signal to be processed to obtain a sine-cosine filtered signal; the sine-cosine filtered signal includes a sine filtered signal and a cosine filtered signal; The frequency multiplication calculation module is used to perform frequency multiplication calculation on the sine-cosine filter signal based on a preset trigonometric function conversion relationship between the sine-cosine filter signal and the sine-cosine frequency multiplication signal to obtain a sine-cosine frequency multiplication signal; the sine-cosine frequency multiplication signal includes a sine frequency multiplication signal and a cosine frequency multiplication signal; The PLL phase-locking module is used to track and lock the sine-cosine multiplied frequency signal to obtain a sine-cosine setting multiplied frequency signal; the sine-cosine setting multiplied frequency signal includes a sine setting multiplied frequency signal and a cosine setting multiplied frequency signal; wherein the method specifically includes: performing PI regulation and integration processing on the sine multiplied frequency signal to obtain a sine setting multiplied frequency signal; performing PI regulation and integration processing on the cosine multiplied frequency signal to obtain a cosine setting multiplied frequency signal; The D / A conversion module is used to perform D / A conversion on the sine-cosine setting frequency-doubled signal to obtain a sine-cosine frequency-doubled analog signal.
5. The sine-cosine signal processing device according to claim 4, characterized in that: The frequency multiplication calculation module includes a calculation unit, which is used to perform calculation processing on the sine-cosine filter signal to obtain a sine-cosine frequency multiplication signal; wherein the type, number and combination of the calculation units are determined according to the preset frequency multiplication algorithm.
6. The sine-cosine signal processing device according to claim 5, characterized in that: The operation unit is a multiplication unit, an addition unit or a gain unit.
7. A sine-cosine signal processing system, characterized in that: include: An input circuit, an output circuit, and a sine-cosine signal processing device as claimed in any one of claims 4 to 6, wherein: The input circuit is used to convert the input sine-cosine differential analog signal into a single-ended sine-cosine analog signal, perform voltage conversion and filtering on the single-ended sine-cosine analog signal, and output a target sine-cosine analog signal; The sine-cosine signal processing device is used to process the target sine-cosine analog signal output by the input circuit according to the sine-cosine signal processing method according to any one of claims 1 to 3 to obtain a sine-cosine frequency-multiplied analog signal; The output circuit is used to filter, convert voltage and perform differential processing on the sine-cosine frequency-doubled analog signal obtained by the sine-cosine signal processing device to obtain a sine-cosine differential frequency-doubled analog signal.
8. A sine-cosine encoder, characterized in that: The invention comprises an encoder and the sine-cosine signal processing system according to claim 7, wherein: The encoder is used to generate a sine-cosine differential analog signal; The sine-cosine signal processing system is used to process the sine-cosine differential analog signal to obtain a sine-cosine differential frequency-doubled analog signal.
