# US 2021/0266011 A1 · Encoder signal sampling method and device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0266011 A1
- Document ID: US20210266011A1
- Status: Published application
- Kind: A1
- Application number: 17/254,026
- Filed: 2019-07-01
- Published: 2021-08-26
- Earliest claimed: 2018-06-29
- Assignees: Qkm Technology (Dong Guan) Co., Ltd
- Applicants: Qkm Technology (Dong Guan) Co., Ltd
- Inventors: Lihui CHEN; Jinbo SHI; Rongkui ZHENG; Bin WANG; Jiang LIU
- Web page: https://patentgrep.com/patent/US20210266011A1

## CPC

- H03M 1/22: pattern-reading type
- H03M 7/6011: {Encoder aspects}
- H03K 5/1252: Suppression or limitation of noise or interference (specially adapted for transmission systems H04B15/00, H04L25/08)
- H03M 1/1255: {Synchronisation of the sampling frequency or phase to the input frequency or phase}
- G01D 5/24404: {Interpolation using high frequency signals}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)
- G01D: MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR

## Abstract

Disclosed are an encoder signal sampling method and device, which relate to the technical field of servo control. According to the method and device, a data frequency of the encoder is obtained, a clock frequency is determined according to the data frequency, a high-frequency clock signal is generated based on the clock frequency, an input signal of the encoder is sampled based on the high-frequency clock signal to obtain a sampled signal, and finally denoising processing is performed on the sampled signal based on a preset algorithm by a processer. The input signal of the encoder is sampled by utilizing the high-frequency clock signal to obtain more sampling points so that enough signal samples are obtained for subsequent data analysis and denoising. The influence of the noise signal on the sampled signal is smaller since a proportion of the valid signal in the signal sample is obviously larger than a proportion of the noise signal with the high-frequency clock signal, so that the accuracy of the sampled signal is ensured.

## Claims

### Claim 1

An encoder signal sampling method, comprising:
acquiring a data frequency of an encoder;
determining a clock frequency according to the data frequency;
generating a high-frequency clock signal based on the clock frequency;
sampling an input signal of the encoder based on the high-frequency clock signal to obtain a sampled signal; and
performing denoising processing on the sampled signal based on a preset algorithm.

### Claim 2 (depends on 1)

The encoder signal sampling method of claim 1, wherein sampling the input signal of the encoder based on the high-frequency clock signal to obtain the sampled signal comprises:
in response to detecting a clock edge of the high-frequency clock signal, determining whether one of preset actions exists based on a communication rate of the encoder, wherein the preset actions comprise: turning on an insulated gate bipolar transistor, turning off an insulated gate bipolar transistor, turning on a metal oxide semiconductor field effect transistor, and turning off a metal oxide semiconductor field effect transistor; and
in response to determining that the one of the preset actions exists, stopping the sampling, and continuing the sampling after a preset duration.

### Claim 3 (depends on 2)

The encoder signal sampling method of claim 2, wherein the preset duration is 3% to 5% of a valid period determined based on the communication rate of the encoder.

### Claim 4 (depends on 1)

The encoder signal sampling method of claim 1, wherein performing the denoising processing on the sampled signal based on the preset algorithm comprises:
determining a plurality of valid durations of the sampled signal and a valid level within each of the plurality of valid durations;
in a case where a proportion of the valid level within the each of the plurality of valid durations is greater than or equal to a preset threshold, determining that the sampled signal is the valid level within the each of the plurality of valid durations.

### Claim 5 (depends on 4)

The encoder signal sampling method of claim 4, wherein in a case where the proportion of the valid level within the each of the plurality of valid durations is greater than or equal to the preset threshold, determining that the sampled signal is the valid level within the each of the plurality of valid durations comprises:
in a case where a high level within each of the plurality of valid durations is valid and a proportion of the high level is greater than or equal to a preset threshold, determining that the sampled signal is the high level within the each of the plurality of valid durations; and
in a case where a low level within each of the plurality of valid durations is valid and a proportion of the low level is greater than or equal to a preset threshold, determining that the sampled signal is the low level within the each of the plurality of valid durations.

### Claim 6 (depends on 1)

The encoder signal sampling method of claim 1, wherein determining the clock frequency according to the data frequency comprises:
determining a product of the data frequency and a preset coefficient as the clock frequency.

### Claim 7 (depends on 1)

The encoder signal sampling method of claim 1, wherein performing the denoising processing on the sampled signal based on the preset algorithm comprises:
dividing a sampling period of the sampled signal into a plurality of valid periods, wherein the plurality of valid periods are determined based on the communication rate of the encoder;
counting proportions of levels of the sampled signal within each of the plurality of valid periods; and
determining one of the levels, whose proportion reaches a set threshold, within each of the plurality of valid periods as a valid level of the sampled signal within the each of the plurality of valid periods.

### Claim 8 (depends on 7)

The encoder signal sampling method of claim 7, wherein different valid periods correspond to different set thresholds.

### Claim 9

An encoder signal sampling device, comprising:
a parameter acquisition unit, which is configured to acquire a data frequency of an encoder;
a clock frequency determination unit, which is configured to determine a clock frequency according to the data frequency;
a signal generation unit, which is configured to generate a high-frequency clock signal based on the clock frequency;
a sampling unit, which is configured to sample an input signal of the encoder based on the high-frequency clock signal to obtain a sampling signal; and
a denoising unit, which is configured to perform denoising processing on the sampled signal based on a preset algorithm.

### Claim 10 (depends on 9)

The encoder signal sampling device of claim 9, wherein the sampling unit is configured to:
in response to detecting a clock edge of the high-frequency clock signal, determine whether one of preset actions exists based on a communication rate of the encoder, wherein the preset actions comprise: turning on an insulated gate bipolar transistor, turning off an insulated gate bipolar transistor, turning on a metal oxide semiconductor field effect transistor, and turning off a metal oxide semiconductor field effect transistor; and in response to determining that the one of the preset actions exists, stopping the sampling, and continuing the sampling after a preset duration.

### Claim 11 (depends on 10)

The encoder signal sampling device of claim 10, wherein the preset duration is 3% to 5% of a valid period determined based on the communication rate of the encoder.

### Claim 12 (depends on 9)

The encoder signal sampling device according to claim 9, wherein the denoising unit is configured to determine a plurality of valid durations of the sampled signal and a valid level within each of the plurality of valid durations; and
the denoising unit is further configured to, in a case where a proportion of the valid level within the each of the plurality of valid durations is greater than or equal to a preset threshold, determine that the sampled signal is the valid level within the each of the plurality of valid durations.

### Claim 13 (depends on 12)

The encoder signal sampling device of claim 12, wherein the denoising unit is further configured to, in a case where a high level within each of the plurality of valid durations is valid and a proportion of the high level is greater than or equal to the preset threshold, determine that the sampled signal is the high level within the each of the plurality of valid durations;
the denoising unit is further configured to, in a case where a low level within each of the plurality of valid durations is valid and a proportion of the low level is greater than or equal to the preset threshold, determine that the sampled signal is the low level within the each of the plurality of valid durations.

### Claim 14 (depends on 9)

The encoder signal sampling device of claim 9, wherein the clock frequency determination unit is configured to determine a product of the data frequency and a preset coefficient as the clock frequency.

### Claim 15 (depends on 9)

The encoder signal sampling device of claim 9, wherein the denoising unit is configured to:
divide a sampling period of the sampled signal into a plurality of valid periods, wherein the plurality of valid periods are determined based on the communication rate of the encoder; counting proportions of levels of the sampled signal within each of the plurality of valid periods; and determining one of the levels, whose proportion reaches a set threshold, within each of the plurality of valid periods as a valid level of the sampled signal within the each of the plurality of valid periods.

### Claim 16 (depends on 4)

The encoder signal sampling method of claim 4, wherein the each of the plurality of valid durations is a length of time, in which data of the encoder is valid, within the sampled signal; and the valid level is a level, other than a level generated by noise, in the sampled signal.

### Claim 17 (depends on 4)

The encoder signal sampling method of claim 4, wherein the preset threshold is greater than or equal to 70%.

### Claim 18 (depends on 7)

The encoder signal sampling method of claim 7, wherein determining the one of the levels, whose proportion reaches a set threshold, within the each of the plurality of valid periods as the valid level of the sampled signal within the each of the plurality of valid periods comprises:
in a case where a proportion of a high level within each of the plurality of valid periods reaches a set threshold, determining the high level as a valid level of the sampled signal within the each of the plurality of valid periods; and
in a case where a proportion of a low level within each of the plurality of valid periods reaches a set threshold, determining the low level as a valid level of the sampled signal within the each of the plurality of valid periods.

### Claim 19 (depends on 2)

The encoder signal sampling method of claim 2, wherein performing the denoising processing on the sampled signal based on the preset algorithm comprises:
determining a plurality of valid durations of the sampled signal and a valid level within each of the plurality of valid durations;
in a case where a proportion of the valid level within the each of the plurality of valid durations is greater than or equal to a preset threshold, determining that the sampled signal is the valid level within the each of the plurality of valid durations.

### Claim 20 (depends on 3)

The encoder signal sampling method of claim 3, wherein performing the denoising processing on the sampled signal based on the preset algorithm comprises:
determining a plurality of valid durations of the sampled signal and a valid level within each of the plurality of valid durations;
in a case where a proportion of the valid level within the each of the plurality of valid durations is greater than or equal to a preset threshold, determining that the sampled signal is the valid level within the each of the plurality of valid durations.
