CN112910439A - Signal filtering method and filtering device - Google Patents

Signal filtering method and filtering device Download PDF

Info

Publication number
CN112910439A
CN112910439A CN202110047885.0A CN202110047885A CN112910439A CN 112910439 A CN112910439 A CN 112910439A CN 202110047885 A CN202110047885 A CN 202110047885A CN 112910439 A CN112910439 A CN 112910439A
Authority
CN
China
Prior art keywords
signal
state
cnt
trigger
ton
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.)
Pending
Application number
CN202110047885.0A
Other languages
Chinese (zh)
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.)
Zhejiang Ruifeng Intelligent Union Of Things Technology Co ltd
Zhejiang Ruisheng Intelligent Technology Co Ltd
Original Assignee
Zhejiang Ruifeng Intelligent Union Of Things Technology Co ltd
Zhejiang Ruisheng Intelligent Technology 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 Zhejiang Ruifeng Intelligent Union Of Things Technology Co ltd, Zhejiang Ruisheng Intelligent Technology Co Ltd filed Critical Zhejiang Ruifeng Intelligent Union Of Things Technology Co ltd
Priority to CN202110047885.0A priority Critical patent/CN112910439A/en
Publication of CN112910439A publication Critical patent/CN112910439A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks

Abstract

The invention provides a signal filtering method and a filtering device, which are used for filtering a signal SA output by a sensor on a receiving suspension system, filtering an interference signal contained in the signal SA to obtain a filtered signal SA _ AF, and avoiding misleading and interference of the interference signal generated due to line body jitter, burrs at the edge of a detected object and the like in the detection process to control so that the system sends an incorrect control instruction.

Description

Signal filtering method and filtering device
Technical Field
The present invention relates to the field of signal processing technologies, and in particular, to a signal filtering method and a signal filtering apparatus.
Background
The hanging conveying line is used for production enterprises such as clothes, home textiles and home furnishings, and is used for conveying materials, intelligent control and intelligent distribution, so that the production efficiency is improved.
In order to control the carrier, various detection devices are arranged at corresponding positions of the hanging system, and the carrier or the push rod is monitored, identified, counted, compared and analyzed. However, in the actual operation of the system, the input signal may be interfered by many situations, for example, a line body (a transmission chain, a rack, etc.) may slightly shake during operation, a burr may be formed on the edge of the detected object, and the like, which may cause the detected signal to generate an interference signal, and therefore, information needs to be processed.
Disclosure of Invention
In order to avoid misleading and interference of interference signals in detected signals on control, which causes a system to send wrong control instructions, the invention provides a signal filtering method, which can accurately filter the signals and eliminate the interference signals.
The signal filtering method provided by the invention receives the signal SA output by the sensor on the hanging system, the signal SA has two states of 0 and 1, and interference signals contained in the signal SA are filtered to obtain a filtered signal SA _ AF.
Preferably, filtering the interference signal included in the signal SA specifically includes detecting the signal SA, starting timing by the timer SA _ RT _ TON when detecting that a rising edge triggers SA _ RT, and changing the state of the signal SA _ AF to 1 when the timing time PT reaches a set threshold; when detecting that a falling edge triggers SA _ FT, a timer SA _ FT _ TON starts to time, and when the timed time PT reaches a set threshold value, the state of a signal SA _ AF is changed into 0; in the process of timing the timer SA _ RT _ TON, if a falling edge is detected to trigger SA _ FT, the timer SA _ RT _ TON is reset, in the process of timing the timer SA _ FT _ TON, if a rising edge is detected to trigger SA _ RT, the timer SA _ FT _ TON is reset, and when the timing time PT of the timers SA _ RT _ TON and SA _ FT _ TON does not reach a set threshold value, the state of the signal SA _ AF is maintained.
Preferably, filtering the interference signal included in the signal SA specifically includes detecting the signal SA, when detecting that the rising edge of the signal SA triggers SA _ RT, continuously sampling the signal SA N times according to a sampling period, where N is greater than or equal to 3, calculating SUM of N sampling values, changing the state of the signal SA _ AF to 1 if N/2 is greater than or equal to SUM and is less than or equal to N, and otherwise, maintaining the state of the signal SA _ AF unchanged; when the falling edge is detected to trigger SA _ FT, continuously sampling the signal SA for N times according to the sampling period, calculating the SUM SUM of the sampling values of the N times, changing the state of the signal SA _ AF into 0 if SUM is more than or equal to 0 and less than N/2, and otherwise, maintaining the state of the signal SA _ AF unchanged.
Preferably, a detection mechanism for detecting the walking distance of the transmission mechanism of the hanging system is mounted on the hanging system, and when the transmission mechanism walks a set distance L, the detection mechanism outputs a trigger signal EN; when the state of the signal SA is 1, every time the rising edge of the trigger signal EN is detected to trigger EN _ RT once, the counter SA _ TRUE _ CNT is added with 1, the counter SA _ FALSE _ CNT is cleared, and if the count of the SA _ TRUE _ CNT reaches a set threshold value, the state of the signal SA _ AF is changed into 1; when the state of the signal SA is 0, every time the rising edge of the trigger signal EN is detected to trigger EN _ RT once, the counter SA _ FALSE _ CNT is added with 1, the counter SA _ TRUE _ CNT is cleared, and if the count of the SA _ FALSE _ CNT reaches a set threshold value, the state of the signal SA _ AF is changed into 0; if the count of SA _ TRUE _ CNT and SA _ FALSE _ CNT does not reach the set threshold, the state of the SA _ AF signal is maintained. The signal EN is generated according to the walking distance of the transmission mechanism, is very stable and has no interference factors, and the signal EN is used for filtering the interference signals in the signal SA and can be filtered very stably and accurately.
Preferably, the rising edge of the trigger signal EN triggers EN _ RT, the falling edge triggers EN _ FT, and the counters SA _ TRUE _ CNT and SA _ FALSE _ CNT are all incremented by 1 to realize double frequency counting.
The invention also provides a filtering device, which comprises a receiving module, an output module and a processor, wherein the receiving module is used for receiving the signal SA output by the sensor on the hanging system, the signal SA has two states of 0 and 1, the processor is used for filtering the interference signal in the signal SA, and the output module is used for outputting the filtered signal SA _ AF.
Preferably, the processor includes a timer SA _ RT _ TON, a timer SA _ FT _ TON and a processing module, where the processing module is configured to detect the signal SA, when detecting that the rising edge triggers SA _ RT, the timer SA _ RT _ TON starts to count time, and when the timing time PT reaches a set threshold, the processing module changes the state of the signal SA _ AF to 1; when detecting that a falling edge triggers SA _ FT, a timer SA _ FT _ TON starts to time, and when the timed time PT reaches a set threshold, the processing module changes the state of a signal SA _ AF into 0; in the process of timing the timer SA _ RT _ TON, if a falling edge is detected to trigger SA _ FT, the processing module resets the timer SA _ RT _ TON, in the process of timing the timer SA _ FT _ TON, if a rising edge is detected to trigger SA _ RT, the processing module resets the timer SA _ FT _ TON, and when the timing time PT of the timers SA _ RT _ TON and SA _ FT _ TON does not reach a set threshold value, the processing module maintains the state of a signal SA _ AF unchanged.
Preferably, the processor comprises a sampling module and a processing module; the processing module detects the signal SA, when the rising edge of the signal SA is detected to trigger SA _ RT, the sampling module continuously samples the signal SA for N times according to the sampling period, N is more than or equal to 3, the processing module calculates the SUM SUM of the sampling values of the N times, if N/2 is more than or equal to SUM and less than or equal to N, the processing module changes the state of the signal SA _ AF into 1, otherwise, the state of the signal SA _ AF is kept unchanged; when the falling edge is detected to trigger SA _ FT, the sampling module continuously samples the signal SA for N times according to the sampling period, the processing module calculates the SUM SUM of the sampling values of the N times, if the SUM is not less than 0 and is less than N/2, the processing module changes the state of the signal SA _ AF into 0, and otherwise, the state of the signal SA _ AF is maintained unchanged.
Preferably, the processor comprises counters SA _ TRUE _ CNT, SA _ FALSE _ CNT and a processing module; the receiving module is also used for receiving a trigger signal EN output by a detection mechanism on the hanging system, and when the transmission mechanism of the hanging system moves a set distance L, the detection mechanism outputs the trigger signal EN; when the state of the signal SA is 1, the processing module triggers EN _ RT once when detecting the rising edge of the trigger signal EN, the counter SA _ TRUE _ CNT is added with 1, the counter SA _ FALSE _ CNT is cleared, and if the count of the SA _ TRUE _ CNT reaches a set threshold, the processing module changes the state of the signal SA _ AF into 1; when the state of the signal SA is 0, the processing module triggers EN _ RT once when detecting the rising edge of the trigger signal EN, the counter SA _ FALSE _ CNT is added with 1, the counter SA _ TRUE _ CNT is cleared, and if the count of the SA _ FALSE _ CNT reaches a set threshold value, the processing module changes the state of the signal SA _ AF into 0; if the counts of SA _ TRUE _ CNT and SA _ FALSE _ CNT do not reach the set threshold, the processing module maintains the state of the signal SA _ AF unchanged.
Preferably, the processing module detects a rising edge trigger EN _ RT and a falling edge trigger EN _ FT of the trigger signal EN, and the counters SA _ TRUE _ CNT and SA _ FALSE _ CNT are all incremented by 1.
The invention carries out filtering processing on the signals and eliminates interference items, so that the control of the control system is more accurate. The invention can efficiently filter the micro jitter of the signal, can not influence the normal signal and has good accuracy.
Drawings
FIG. 1 is a schematic diagram of filtering according to embodiment 1 of the present invention;
FIG. 2 is an enlarged view of a portion of FIG. 1;
FIG. 3 is a schematic diagram of filtering according to embodiment 2 of the present invention;
fig. 4 is a partially enlarged view of fig. 3.
Detailed Description
A plurality of sensors are installed in the hanging system and used for detecting the carrier, the push rod and the like, but the sensors are interfered due to the fact that a transmission chain or a rack for driving the push rod can slightly shake, burrs exist on the edges of the carrier, the push rod and the like, and therefore signals output by the sensors are interfered. The control system of the hanging system needs to control the operation of the whole hanging system according to signals output by the sensor, and the interference signals can cause interference to the control and possibly cause the control system to send wrong instructions.
As shown in fig. 1, SA is the original input signal of the present invention, i.e. SA is the output signal of the sensor. The SA signal exhibits two states, i.e., 0 and 1. The transition of the signal from "0 → 1" to a rising edge triggers RT and the transition of the signal from "1 → 0" to a falling edge triggers FT. The part with fast change of 0 and 1 states in fig. 1 is an interference signal, and the object of the present invention is to filter the part of the signal to form the SA _ AF signal in fig. 1.
Example 1
In this embodiment, two timers SA _ RT _ TON and SA _ FT _ TON are provided, the receiving module receives the signal SA output by the sensor, when detecting that the rising edge of the SA signal triggers SA _ RT, the timer SA _ FT _ TON is reset, the timer SA _ RT _ TON starts to count time, if the counted time reaches a set threshold Δ t, the timer SA _ RT _ TON outputs Q, the value of Q is TRUE (Q is not output or Q is output is FALSE when the threshold Δ t is not reached), which indicates that the signal SA is really continuous and stable for a continuous time Δ t, the state of the signal SA is 1 for the continuous time, and the state of the signal SA _ AF is 1. If the falling edge is detected to trigger SA _ FT, the timer SA _ RT _ TON is reset, the timer SA _ FT _ TON starts to time, if the timing time reaches a set threshold value Deltat, the timer SA _ FT _ TON outputs Q, the value of Q is TRUE (no Q is output when the threshold value Deltat is not reached or the output Q value is FALSE), the signal SA is indicated to be disappeared in a continuous time Deltat, the state of the signal SA in the continuous time is 0, and the state of the signal SA _ AF in the continuous time is 0.
The filtering method of the present embodiment is described in detail with reference to fig. 1 as an example. When the processing module detects that the first rising edge of the signal SA in fig. 1 triggers SA _ RT, the timer SA _ FT _ TON is reset, the timer SA _ RT _ TON starts to count time, if the counted time reaches the set threshold Δ t, the timer SA _ RT _ TON outputs TRUE, and the processing module controls the state of the filtered signal SA _ AF to change from 0 to 1. Between the two deltat shown on the far left in fig. 1, i.e. close to the right deltat, a number of interfering signals occur, see in particular the enlarged view of fig. 2, wherein the leftmost is a falling edge trigger, the output of the timer SA _ RT _ TON is always TRUE until the falling edge trigger is detected, the processing module maintains the state of the signal SA _ AF to be always 1, when the leftmost falling edge trigger is detected, the timer SA _ RT _ TON is reset, the timer SA _ FT _ TON starts to count, since the duration of the interference signal is short, when the timer SA _ FT _ TON is not timed to the set threshold Δ t, interrupted by the immediately rising edge trigger, the timer SA _ FT _ TON is reset, at which time the timer SA _ FT _ TON does not output TRUE, therefore, the signal SA _ AF remains unchanged, i.e., state 1 is maintained. For the rising edge trigger which interrupts the timing of the corresponding timer triggered by the first falling edge, when the rising edge trigger is detected, the timer SA _ FT _ TON is reset, the timer SA _ RT _ TON starts to count time, and similarly, the timer SA _ RT _ TON is interrupted by the next falling edge trigger when the timing is not yet Δ t, the signal SA _ AF continues to maintain 1. Until a falling edge trigger triggering the start of timing corresponding to Δ t on the right in fig. 2 is detected, the timing triggered by the interference signal cannot reach the set threshold Δ t, so the state of the signal SA _ AF is not affected.
Therefore, the filtering method provided by the invention can effectively filter the interference signal, and finally the output module outputs the filtered signal SA _ AF.
Example 2
The invention installs incremental encoder on the gear of driving transmission chain or the gear of driving rack, detects the moving distance of transmission chain or rack, and when the transmission chain or rack moves a fixed distance L, the encoder will feed back a stable signal EN. Outputting EN by the incremental encoder is only one way, and there are many ways to convert the moving distance of the transmission chain or the rack into a count, for example, setting a sensing block on the transmission chain or the rack at regular intervals, and detecting the sensing block by a sensor, where the sensor outputs a stable signal EN every time the sensing block is detected. Since the generation of EN is very stable and is not interfered by other factors, the embodiment performs filtering by using the signal EN, and the signal EN is received by the receiving module.
The present embodiment sets two counters SA _ TRUE _ CNT and SA _ FALSE _ CNT. When the state of the SA signal is 1, SA _ FALSE _ CNT is cleared, and SA _ TRUE _ CNT is increased by 1 each time the rising edge of a signal EN is detected to trigger EN _ RT; when the state of the signal SA is "0", SA _ TRUE _ CNT is cleared, and SA _ FALSE _ CNT is incremented by 1 each time a rising edge of the signal EN triggers a signal EN _ RT.
When SA _ TRUE _ CNT is equal to Δ n, it is proved that the input signal SA is indeed continuous and stable in a continuous area, so the state of the signal SA _ AF after filtering is "1". When SA _ FALSE _ CNT is equal to Δ n, it is verified that the input signal SA has indeed disappeared in a continuous section, so the state of the signal SA _ AF after filtering is "0".
As shown in fig. 3, taking the interval between two Δ n on the left as an example, when the state of the signal SA is 1, the counter SA _ FALSE _ CNT is cleared, the counter SA _ TRUE _ CNT is incremented by 1 each time the rising edge trigger of the signal EN is detected, when the count reaches the set threshold Δ n, it indicates that the signal SA is continuously and stably present in a continuous area, and the state of the processing module control signal SA _ AF is changed from 0 at the beginning to 1. The state of SA is always 1 thereafter, and accordingly, the state of the processing module control signal SA _ AF is also maintained at 1. Referring to fig. 4, near the second Δ n, a disturbing signal occurs, when the SA state is 0, the counter SA _ TRUE _ CNT is cleared, and each time the processing module detects a rising edge trigger of the signal EN, the counter SA _ FALSE _ CNT is incremented by 1, and since the time when the signal SA maintains the state of 0 is very short, and the count of the counter SA _ FALSE _ CNT has not reached Δ n, the state of the signal SA has already changed to 1, and accordingly the counter SA _ FALSE _ CNT is cleared, the counter SA _ TRUE _ CNT starts counting, and based on the same reason, the time when the signal SA maintains 1 is also very short, and when the count of the counter SA _ TRUE _ CNT has not reached Δ n, the state of the signal SA has already changed to 0, and accordingly the counter SA _ TRUE _ CNT is cleared. Since SA _ TRUE _ CNT and SA _ FALSE _ CNT do not count to Δ n, the current state of the signal SA _ AF is not affected, that is, SA _ AF maintains state 1, until the position corresponding to the second Δ n in fig. 4, where state 0 of the signal SA, SA _ TRUE _ CNT is cleared, SA _ FALSE _ CNT is counted, SA _ FALSE _ CNT is incremented by 1 every time the processing module detects a rising edge trigger of the signal EN, and when Δ n is reached, it indicates that the signal SA has indeed disappeared in a continuous section, and therefore, the processing module controls the state of the filtered signal SA _ AF to change from 1 to 0.
In the above scheme, only when the rising edge trigger of the signal EN is detected, 1 is added, and a manner in which the rising edge trigger EN _ RT and the falling edge trigger EN _ FT count together may be used, that is, in addition to adding 1 to the SA _ TRUE _ CNT or the SA _ FALSE _ CNT every time the rising edge trigger is detected, the SA _ TRUE _ CNT or the SA _ FALSE _ CNT also counts 1 to the SA _ TRUE _ CNT or the SA _ FALSE _ FT every time the falling edge trigger is detected. The count value obtained in this way is equivalent to the double frequency count of the signal EN, and the control of the displacement amount is more accurate.
Example 3
The embodiment continuously samples the signal SA N times (N is an odd number, N ≧ 3) according to a fixed sampling period T0, sums the sampled values, and determines the state of the filtered signal SA _ AF by the cumulative sum of the sets of sampled data.
The SUM of the sampled samples SUM — SA _1+ SA _2+ SA _3+ … + SA _ N, where SA _1, SA _2, SA _3, …, and SA _ N represent N samples sampled in a sampling period. Signal SA has only two states, 1 and 0, and the sampled values have only two states, 1 and 0, so SUM is scoped, i.e., SUM is 0 ≦ SUM ≦ N. When the number of '1' in a group of sampling data of the signal SA exceeds half, N/2 is more than SUM and is less than or equal to N, and under the condition, the state of the filtered signal output value SA _ AF is '1'; when the number of "0" s in the sample data exceeds a half, 0 ≦ SUM < N/2, in which case the state of the filtered signal output value SA _ AF is "0".
The present embodiment determines whether the signal SA _ AF remains in the original state or changes from 0 to 1 or from 1 to 0 according to the sampling result. When the state of the SA _ AF is '0', when detecting that the rising edge of a signal SA triggers SA _ RT, a processing module continuously samples the SA for N times according to a sampling period, and calculates the value of SUM to judge whether the state of the SA _ AF can be converted into '1', namely, if N/2 is more than and less than N, the SA _ AF is converted into 1, otherwise, the SA _ AF is kept unchanged; on the contrary, when the SA _ AF state is "1", when detecting that the falling edge of the signal SA triggers SA _ FT, the sampling module continuously samples SA N times according to the sampling period, and the processing module calculates the SUM value to determine whether the SA _ AF state can be changed to "0", that is, if SUM is greater than or equal to 0 and less than N/2, the SA _ AF state is changed to 0, otherwise, the SA _ AF state is kept unchanged.
The present embodiment can be explained with reference to fig. 1 and 2. When a rising edge trigger is detected, the area corresponding to the first Δ t in fig. 1 is sampled, and if SA state 1 and SUM equals N, the state of signal SA _ AF changes from 0 to 1. When the first falling edge trigger between two deltat at the left side in fig. 1 is detected, sampling is performed, and since the duration of the interference signal is short and the SUM value is definitely greater than or equal to N/2, the SA _ AF maintains the original state 1, and the small jitter of the signal SA is not enough to affect the current state of the SA _ AF. When the last falling edge trigger between two Δ t on the left side is detected, sampling is performed, and since the state of the signal SA is 0 and SUM is 0, the state of the signal SA _ AF changes from 1 to 0.

Claims (10)

1. A method of filtering a signal, characterized by: and receiving a signal SA output by a sensor on the hanging system, wherein the signal SA has two states of 0 and 1, filtering an interference signal contained in the signal SA, and obtaining a filtered signal SA _ AF.
2. The signal filtering method of claim 1, wherein: specifically, filtering out interference signals contained in the signal SA includes detecting the signal SA, starting timing by a timer SA _ RT _ TON when detecting that a rising edge triggers SA _ RT, and changing the state of the signal SA _ AF to 1 when timing time PT reaches a set threshold; when detecting that a falling edge triggers SA _ FT, a timer SA _ FT _ TON starts to time, and when the timed time PT reaches a set threshold value, the state of a signal SA _ AF is changed into 0; in the process of timing the timer SA _ RT _ TON, if a falling edge is detected to trigger SA _ FT, the timer SA _ RT _ TON is reset, in the process of timing the timer SA _ FT _ TON, if a rising edge is detected to trigger SA _ RT, the timer SA _ FT _ TON is reset, and when the timing time PT of the timers SA _ RT _ TON and SA _ FT _ TON does not reach a set threshold value, the state of the signal SA _ AF is maintained.
3. The signal filtering method of claim 1, wherein: filtering interference signals contained in the signal SA specifically comprises detecting the signal SA, when detecting that the rising edge of the signal SA triggers SA _ RT, continuously sampling the signal SA for N times according to a sampling period, wherein N is more than or equal to 3, calculating the SUM SUM of sampling values of the N times, changing the state of the signal SA _ AF into 1 if N/2 is more than or equal to SUM and less than or equal to N, and otherwise, maintaining the state of the signal SA _ AF unchanged; when the falling edge is detected to trigger SA _ FT, continuously sampling the signal SA for N times according to the sampling period, calculating the SUM SUM of the sampling values of the N times, changing the state of the signal SA _ AF into 0 if SUM is more than or equal to 0 and less than N/2, and otherwise, maintaining the state of the signal SA _ AF unchanged.
4. The signal filtering method of claim 1, wherein: the hanging system is provided with a detection mechanism for detecting the walking distance of a transmission mechanism of the hanging system, and when the transmission mechanism walks a set distance L, the detection mechanism outputs a trigger signal EN; when the state of the signal SA is 1, every time the rising edge of the trigger signal EN is detected to trigger EN _ RT once, the counter SA _ TRUE _ CNT is added with 1, the counter SA _ FALSE _ CNT is cleared, and if the count of the SA _ TRUE _ CNT reaches a set threshold value, the state of the signal SA _ AF is changed into 1; when the state of the signal SA is 0, every time the rising edge of the trigger signal EN is detected to trigger EN _ RT once, the counter SA _ FALSE _ CNT is added with 1, the counter SA _ TRUE _ CNT is cleared, and if the count of the SA _ FALSE _ CNT reaches a set threshold value, the state of the signal SA _ AF is changed into 0; if the count of SA _ TRUE _ CNT and SA _ FALSE _ CNT does not reach the set threshold, the state of the SA _ AF signal is maintained.
5. The signal filtering method of claim 4, wherein: the rising edge of the detection trigger signal EN triggers EN _ RT, the falling edge triggers EN _ FT, and the counters SA _ TRUE _ CNT and SA _ FALSE _ CNT are all incremented by 1.
6. A filtering apparatus, characterized in that: the device comprises a receiving module, an output module and a processor, wherein the receiving module is used for receiving a signal SA output by a sensor on a hanging system, the signal SA has two states of 0 and 1, the processor is used for filtering an interference signal in the signal SA, and the output module is used for outputting a filtered signal SA _ AF.
7. The filtering apparatus of claim 6, wherein: the processor comprises a timer SA _ RT _ TON, a timer SA _ FT _ TON and a processing module, wherein the processing module is used for detecting a signal SA, the timer SA _ RT _ TON starts timing when detecting that a rising edge triggers SA _ RT, and the processing module changes the state of a signal SA _ AF into 1 when timing time PT reaches a set threshold; when detecting that a falling edge triggers SA _ FT, a timer SA _ FT _ TON starts to time, and when the timed time PT reaches a set threshold, the processing module changes the state of a signal SA _ AF into 0; in the process of timing the timer SA _ RT _ TON, if a falling edge is detected to trigger SA _ FT, the processing module resets the timer SA _ RT _ TON, in the process of timing the timer SA _ FT _ TON, if a rising edge is detected to trigger SA _ RT, the processing module resets the timer SA _ FT _ TON, and when the timing time PT of the timers SA _ RT _ TON and SA _ FT _ TON does not reach a set threshold value, the processing module maintains the state of a signal SA _ AF unchanged.
8. The filtering apparatus of claim 6, wherein: the processor comprises a sampling module and a processing module; the processing module detects the signal SA, when the rising edge of the signal SA is detected to trigger SA _ RT, the sampling module continuously samples the signal SA for N times according to the sampling period, N is more than or equal to 3, the processing module calculates the SUM SUM of the sampling values of the N times, if N/2 is more than or equal to SUM and less than or equal to N, the processing module changes the state of the signal SA _ AF into 1, otherwise, the state of the signal SA _ AF is kept unchanged; when the falling edge is detected to trigger SA _ FT, the sampling module continuously samples the signal SA for N times according to the sampling period, the processing module calculates the SUM SUM of the sampling values of the N times, if the SUM is not less than 0 and is less than N/2, the processing module changes the state of SA _ AF into 0, and otherwise, the state of the signal SA _ AF is maintained unchanged.
9. The filtering apparatus of claim 6, wherein: the processor comprises a counter SA _ TRUE _ CNT, a counter SA _ FALSE _ CNT and a processing module; the receiving module is also used for receiving a trigger signal EN output by a detection mechanism on the hanging system, and when the transmission mechanism of the hanging system moves a set distance L, the detection mechanism outputs the trigger signal EN; when the state of the signal SA is 1, the processing module triggers EN _ RT once when detecting the rising edge of the trigger signal EN, the counter SA _ TRUE _ CNT is added with 1, the counter SA _ FALSE _ CNT is cleared, and if the count of the SA _ TRUE _ CNT reaches a set threshold, the processing module changes the state of the signal SA _ AF into 1; when the state of the signal SA is 0, the processing module triggers EN _ RT once when detecting the rising edge of the trigger signal EN, the counter SA _ FALSE _ CNT is added with 1, the counter SA _ TRUE _ CNT is cleared, and if the count of the SA _ FALSE _ CNT reaches a set threshold value, the processing module changes the state of the signal SA _ AF into 0; if the counts of SA _ TRUE _ CNT and SA _ FALSE _ CNT do not reach the set threshold, the processing module maintains the state of the signal SA _ AF unchanged.
10. The filtering apparatus of claim 9, wherein: the processing module detects a rising edge trigger EN _ RT and a falling edge trigger EN _ FT of the trigger signal EN, and the counters SA _ TRUE _ CNT and SA _ FALSE _ CNT are all increased by 1.
CN202110047885.0A 2021-01-14 2021-01-14 Signal filtering method and filtering device Pending CN112910439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110047885.0A CN112910439A (en) 2021-01-14 2021-01-14 Signal filtering method and filtering device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110047885.0A CN112910439A (en) 2021-01-14 2021-01-14 Signal filtering method and filtering device

Publications (1)

Publication Number Publication Date
CN112910439A true CN112910439A (en) 2021-06-04

Family

ID=76114080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110047885.0A Pending CN112910439A (en) 2021-01-14 2021-01-14 Signal filtering method and filtering device

Country Status (1)

Country Link
CN (1) CN112910439A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765505A (en) * 2021-08-05 2021-12-07 天津市山石机器人有限责任公司 Key signal jitter elimination method with feedback correction, device, equipment and storage medium
CN115290149A (en) * 2022-10-08 2022-11-04 青岛鼎信通讯股份有限公司 Metering signal filtering method applied to electronic remote water meter

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001214663A (en) * 2000-02-04 2001-08-10 Niles Parts Co Ltd Pulse signal detection device
CN206117612U (en) * 2016-09-22 2017-04-19 北京精密机电控制设备研究所 Digital signal anti interference filtration circuit
CN109213130A (en) * 2018-11-14 2019-01-15 苏州绿控传动科技股份有限公司 The method that burr signal in a kind of pair of fault-signal is filtered

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001214663A (en) * 2000-02-04 2001-08-10 Niles Parts Co Ltd Pulse signal detection device
CN206117612U (en) * 2016-09-22 2017-04-19 北京精密机电控制设备研究所 Digital signal anti interference filtration circuit
CN109213130A (en) * 2018-11-14 2019-01-15 苏州绿控传动科技股份有限公司 The method that burr signal in a kind of pair of fault-signal is filtered

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113765505A (en) * 2021-08-05 2021-12-07 天津市山石机器人有限责任公司 Key signal jitter elimination method with feedback correction, device, equipment and storage medium
CN115290149A (en) * 2022-10-08 2022-11-04 青岛鼎信通讯股份有限公司 Metering signal filtering method applied to electronic remote water meter

Similar Documents

Publication Publication Date Title
CN112910439A (en) Signal filtering method and filtering device
FI85917B (en) FOERFARANDE FOER SAMLING AV TILL EN BRAND RELATERADE DATA OCH BRANDDETEKTOR SAMT BRANDALARMSYSTEM SOM UTNYTTJAR FOERFARANDET.
US9036760B2 (en) Receiving apparatus and method for detecting the number of bits of the same value in a received bit stream
EP2965458B1 (en) Dithering circuit for sampling serial data transmission
EP2912773A1 (en) Pulse frequency measurement device and method and control system
CN104345918A (en) Sensor, clock frequency adjusting system and method thereof
US20110013689A1 (en) Digital signal receiver
CN108549024B (en) Predictive M/T speed measurement system and method
US7802030B2 (en) Interrupt generation circuit for intermediate response to edge detection signal, when count value of main timer is less than pre-stored value
JP6609411B2 (en) Displacement measuring apparatus and displacement measuring method
US7827377B2 (en) Method for reading out sensor data
US8943303B2 (en) Monitoring circuit with a window watchdog
CN110879298A (en) Speed acquisition method based on communication type encoder
KR950011796B1 (en) Speed detector device for elevator
CN102792167A (en) Speed detection device
US8775852B2 (en) Method for sensing input signal changes
CN101228753B (en) Communication apparatus
CN106482753B (en) The driver and control system of position accumulated error can be eliminated automatically
US8315292B2 (en) Communication apparatus
JP4651984B2 (en) Encoder counter
CN111722012B (en) Pulse counting frequency measurement method and device
CN1127803C (en) Bit synchronizing circuit having high synchronization characteristics
CN107121949B (en) Signal check device, signal check system and signal check method
CN104635532A (en) Mobile acquisition synchronization control device and method
RU140746U1 (en) ALARM DEVICE UNDER PERMISSION CONTROL

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210604