CN104897179B - anti-interference method and device - Google Patents

anti-interference method and device Download PDF

Info

Publication number
CN104897179B
CN104897179B CN201510224956.4A CN201510224956A CN104897179B CN 104897179 B CN104897179 B CN 104897179B CN 201510224956 A CN201510224956 A CN 201510224956A CN 104897179 B CN104897179 B CN 104897179B
Authority
CN
China
Prior art keywords
interference
signal
microsystem
power frequency
measured signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510224956.4A
Other languages
Chinese (zh)
Other versions
CN104897179A (en
Inventor
江涛
沙文瀚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chery Automobile Co Ltd
Original Assignee
Chery Automobile 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 Chery Automobile Co Ltd filed Critical Chery Automobile Co Ltd
Priority to CN201510224956.4A priority Critical patent/CN104897179B/en
Publication of CN104897179A publication Critical patent/CN104897179A/en
Application granted granted Critical
Publication of CN104897179B publication Critical patent/CN104897179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Noise Elimination (AREA)

Abstract

The invention discloses an anti-interference method and device, and belongs to the technical field of electromechanical integrated automatic control. The method comprises: capturing the grid power frequency of a microcomputer system; determining a sampling cycle according to the grid power frequency; and eliminating power frequency interference signals in the microcomputer system by adopting a sampling trigger signal according to the sampling cycle, wherein the power frequency interference signals are interference signals of a forward channel of the microcomputer system. The method and the device solve the problems of high fault rate and high cost in a hardware anti-interference method, achieve the effects of reducing the fault rate and reducing the cost, and are used for anti-interference of the microcomputer system.

Description

Anti-interference method and device
Technical field
The present invention relates to the automatic control technology field of electromechanical integration, more particularly to a kind of anti-interference method and device.
Background technology
Anti-Jamming Technique is to study the generation root of interference, the circulation way of interference and avoid disturbed measure etc. from asking Topic.Used as the core of electro-mechanical system, the disturbing factor in microsystem includes electromagnetic interference, temperature interference, wet Degree interference harmony wave interference etc., wherein, electromagnetic interference is the most universal.Electromagnetic interference is referred in the course of the work by environmental factor Affect, some of appearance are unrelated with useful signal, and the electric variation phenomenon harmful to systematic function or signal transmission.This A little harmful electric variation phenomenons cause the data of signal that transient changing occurs, and increase error, illusion occur, or even make whole system There is abnormal signal and causes failure in system.The wire of such as sensor is affected the induced potential for producing to be more than survey by airborne magnetic The sensor output signal of amount, makes system judge failure.
In prior art, mainly interference is eliminated by hardware anti-interference method, specifically, two can be divided into The method of kind, one kind is to eliminate to disturb by multiple-plate hardware circuit board;A kind of disappeared by the device with antijamming capability Except interference, the device of antijamming capability has various, such as difference amplifier, transformer, relay.
Inventor has found that said method at least has following defect during the present invention is realized:Mainly by hard Part anti-interference method come to interference eliminate, because hardware anti-interference method increased the complexity of system, in microsystem During operation, the generation rate of failure is higher, and jamproof relatively costly.
The content of the invention
For the higher and relatively costly problem of the failure generation rate for solving hardware anti-interference method, the invention provides A kind of anti-interference method and device.The technical scheme is as follows:
A kind of first aspect, there is provided anti-interference method, for microsystem, methods described includes:
The electrical network power frequency of the microsystem is captured using hardware circuit;
According to the electrical network power frequency, the sampling period is determined;
According to the sampling period, the power frequency interference signals in the microsystem are disappeared using sampling trigger signal Remove, the power frequency interference signals are the interference signal of the forward path of the microsystem.
Optionally, it is described that the sampling period is determined according to the electrical network power frequency, including:
Using the corresponding value of the integral multiple of the electrical network power frequency period as the sampling period.
Optionally, the microsystem includes microcomputer,
It is described according to the sampling period, the power frequency interference signals in the microsystem are entered using sampling trigger signal Row is eliminated, including:
By periodicity to the microcomputer input sample trigger, the sampling trigger signal is made to the microsystem In power frequency interference signals eliminated, the cycle to the microcomputer input sample trigger be the sampling period.
Optionally, the microsystem includes microcomputer,
It is described according to the sampling period, the power frequency interference signals in the microsystem are entered using sampling trigger signal Row is eliminated, including:
By periodicity to the microcomputer input sample trigger, the sampling trigger signal is made to the microsystem In power frequency interference signals eliminated, the power frequency interference signals are the interference signal of the forward path of the microsystem, The cycle to the microcomputer input sample trigger is the sampling period.
Optionally, the microsystem includes at least one sensor, and methods described also includes:
The measured signal of the microsystem is obtained, the measured signal is the letter that at least one sensor is produced Number;
Interference signal in the measured signal is filtered by filtering process.
Optionally, the interference signal filtered by filtering process in the measured signal, including:
Judge that deglitch is disturbed using anti-impulse disturbances the mean filter, single order recursion digital filtering, width Any one mode in method, rechecking method and deviation determining method, is filtered process, to filter to the measured signal State the interference signal in measured signal.
A kind of second aspect, there is provided means for anti-jamming, for microsystem, described device includes:
Hardware circuit, for capturing the electrical network power frequency of the microsystem;
Determining unit, for according to the electrical network power frequency, determining the sampling period;
Unit is eliminated, for according to the sampling period, using sampling trigger signal to the power frequency in the microsystem Interference signal is eliminated, and the power frequency interference signals are the interference signal of the forward path of the microsystem.
Optionally, the determining unit, including:
Processing module, for using the integral multiple of the electrical network power frequency period it is corresponding value as the sampling period.
Optionally, the microsystem include microcomputer, the elimination unit, including:
Cancellation module, for periodicity to the microcomputer input sample trigger, makes the sampling trigger signal to institute The power frequency interference signals stated in microsystem are eliminated, and the cycle to the microcomputer input sample trigger is described Sampling period.
Optionally, the microsystem includes at least one sensor, and described device also includes:
Acquiring unit, for obtaining the measured signal of the microsystem, the measured signal is passed for described at least one The signal that sensor is produced;
Unit is filtered, for filtering the interference signal in the measured signal by filtering process.
Optionally, it is described to filter unit, including:
Module is filtered, for judging anti-using anti-impulse disturbances the mean filter, single order recursion digital filtering, width Any one mode in spike interference method, rechecking method and deviation determining method, is filtered to the measured signal Process, to filter the measured signal in interference signal.
The invention provides a kind of anti-interference method and device, can adopt hardware circuit to capture the electrical network work of microsystem Frequently;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal to the power frequency in microsystem Interference signal is eliminated, and being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference method, drop The low complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The present invention can be limited.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of flow chart of anti-interference method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another kind of anti-interference method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of anti-impulse disturbances the mean filter provided in an embodiment of the present invention;
Fig. 4 is the flow chart of single order recursion digital filtering provided in an embodiment of the present invention;
Fig. 5 is the flow chart that width provided in an embodiment of the present invention judges deglitch interference method;
Fig. 6 is the flow chart of deviation determining method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of means for anti-jamming provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another kind of means for anti-jamming provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of determining unit provided in an embodiment of the present invention;
Figure 10 is a kind of structural representation for eliminating unit provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation for filtering unit provided in an embodiment of the present invention.
By above-mentioned accompanying drawing, it has been shown that the present invention clearly embodiment, hereinafter will be described in more detail.These accompanying drawings It is not intended to limit the scope of present inventive concept by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate idea of the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
A kind of anti-interference method is embodiments provided, for microsystem, as shown in figure 1, the method includes:
Step 101, the electrical network power frequency that microsystem is captured using hardware circuit.
Step 102, according to electrical network power frequency, determine the sampling period.
Step 103, according to the sampling period, the power frequency interference signals in microsystem are disappeared using sampling trigger signal Remove, the power frequency interference signals are the interference signal of the forward path of microsystem.
In sum, anti-interference method provided in an embodiment of the present invention, can adopt hardware circuit to capture microsystem Electrical network power frequency;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal in microsystem Power frequency interference signals eliminated, being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference Method, reduces the complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
It should be noted that the frequency of the public power supply grid of electrical network industrial frequency AC is 50 hertz.
Optionally, step 102 includes:Using the corresponding value of the integral multiple of electrical network power frequency as the sampling period.
Optionally, microsystem includes microcomputer, and step 103 includes:By periodicity to microcomputer input sample trigger, Sampling trigger signal is set to eliminate the power frequency interference signals in microsystem, the power frequency interference signals are before microsystem It it is the sampling period to the cycle of microcomputer input sample trigger to the interference signal of passage.
Optionally, microsystem includes at least one sensor, and the method also includes:Obtain the tested letter of microsystem Number, measured signal is the signal that at least one sensor is produced;The interference signal in measured signal is filtered by filtering process.
Optionally, the interference signal in measured signal is filtered by filtering process, including:Using anti-impulse disturbances mean value Filter method, single order recursion digital filtering, width are judged in deglitch interference method, rechecking method and deviation determining method Any one mode, process is filtered to measured signal, to filter measured signal in interference signal.
In sum, anti-interference method provided in an embodiment of the present invention, can adopt hardware circuit to capture microsystem Electrical network power frequency;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal in microsystem Power frequency interference signals eliminated, being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference Method, reduces the complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
Another kind of anti-interference method is embodiments provided, for microsystem, as shown in Fig. 2 the method includes:
Step 201, the electrical network power frequency that microsystem is captured using hardware circuit.
Step 202, according to electrical network power frequency, determine the sampling period.
Specifically, step 202 can include:Using the corresponding value of the integral multiple of electrical network power frequency as the sampling period.
Step 203, according to the sampling period, the power frequency interference signals in microsystem are disappeared using sampling trigger signal Remove.
Power frequency interference signals are the interference signal of the forward path of microsystem.Specifically, step 203 can include:It is logical Cross periodically to microcomputer input sample trigger, make sampling trigger signal disappear the power frequency interference signals in microsystem Remove.The power frequency interference signals are the interference signal of the forward path of microsystem, to the cycle of microcomputer input sample trigger For the sampling period.
Power frequency interference signals are invaded after the forward path of microsystem, and power frequency interference signals are often superimposed upon measured signal On, the signal that measured signal is produced for the sensor of microsystem.Particularly when sensor die analog quantity interface is small voltage signal During output, this overlapped in series is submerged can measured signal.In order to eliminate this series connection interference, it is equal to can the sampling period The corresponding value of integral multiple of electrical network power frequency period, makes sampling trigger signal disappear the power frequency interference signals in microsystem Remove, power frequency interference signals self-cancelling within the sampling period.In real work, the frequency of power frequency interference signals is to change, Therefore, sampling trigger signal should capture electrical network power frequency using hardware circuit, and it is tactile to send the sampling of electrical network power frequency period integral multiple Signal, by sampling trigger signal input microcomputer, microcomputer carries out triggering sampling further according to the sampling trigger signal, so can be with Effectively improve antijamming capability of the microsystem to power frequency string mould.
Step 204, the measured signal for obtaining microsystem.
Measured signal is the signal that at least one sensor is produced.
Microsystem includes at least one sensor.Interference signal in order to eliminate pick-up passage, can be with hardware By active RLC (RLC resistance-inductance-capacitance) filter networks or passive RLC filter network, measured signal frequency filtering is realized.It is micro- Machine can be filtered using digital filtering analog hardware.Digital filtering be widely used in voice signal, image processing mode identification and It is a basic treatment technology in the fields such as analysis of spectrum.Digital filtering is the digital display circuit of filtration time discrete signal, can be with Realized with software or hardware.
Step 205, the interference signal filtered by filtering process in measured signal.
The interference signal in measured signal is filtered by filtering process, so as in the sensor passage for eliminating microsystem Interference signal.Specifically, step 205 can include:Using anti-impulse disturbances the mean filter, single order recursion digital filtering Method, width judge any one mode in deglitch interference method, rechecking method and deviation determining method, to measured signal Be filtered process, to filter measured signal in interference signal.
Wherein, anti-impulse disturbances the mean filter is also called the equal filter method of middle position horizontalization, equivalent to middle position filter method The method combined with digital averaging filtering method.When the forward path of microsystem is interfered, measured signal is often made Sampled data there is very big deviation, if the single error data in sampled data can be rejected, so that it may effectively suppressor pulse Interference.Example, process can be filtered to measured signal using anti-impulse disturbances the mean filter, to filter tested letter Interference signal in number.Fig. 3 shows the flow chart of anti-impulse disturbances the mean filter, the anti-impulse disturbances average value filtering Method can include:
Step 301, the N number of data of continuous sampling.
Optionally, N is more than or equal to 3.
Step 302, the maximum data and minimum data removed in N number of data.
Step 303, the arithmetic mean of instantaneous value for calculating remaining (N-2) individual data.
By the arithmetic mean of instantaneous value for calculating remaining (N-2) individual data, the sampled data deviation caused by impulse disturbances is eliminated.
Single order recursion digital filtering is used to realize the function of RC (resistance-capacitance) low pass filter, can effectively disappear Except periodically interference and the higher interference of frequency, it is adaptable to which the parameter slow to change procedure is sampled.Single order recursion The computing formula of digital filtering is expressed as:yn=α xn+(1-α)yn-1, wherein, α is represented to be had with the time constant of digital filter The coefficient of pass, referred to as time coefficient, and α=sampling period/(time constant filter+sampling period), α is more than 0 and less than 1;xn Represent n-th sampled data, i.e. this sampled data;ynN-th filtering output data is represented, i.e. this filtering output data; yn-1(n-1)th filtering output data is represented, i.e., last filtering output data.Fig. 4 shows single order recursion digital filtering Flow chart, the single order recursion digital filtering can include:
Step 401, obtain this sampled data and time coefficient.
Step 402, this filtering output is determined according to this sampled data, time coefficient and last filtering output data Data.
Time coefficient α is bigger, and cut-off frequency is higher, but the method can not filter frequency filtering higher than the 1/2 of sample frequency The interference signal of (i.e. nyquist frequency), and for the interference signal of nyquist frequency, can employ hardware to complete.
If measured signal is pulse signal, it is typically due to sampled signal and there is certain pulse width, and spike is dry The width very little of (i.e. interference signal) is disturbed, therefore interference signal, the method can be rejected by judging the width of sampled signal Referred to as width judges deglitch interference method.Fig. 5 shows that width judges the flow chart of deglitch interference method, the width Judge that deglitch interference method can include:
Step 501, high level is set effectively and digital input port is sampled.
Step 502, when the rising edge of measured signal arrives, connected reference numeral input mouth m time.
Optionally, m is more than or equal to 5.
Step 503, judge m time access in, whether the level of the numeral input mouth is always high level.When the numeral input When the level of mouth is always high level, execution step 504;When the level of the numeral input mouth is not always high level, hold Row step 505.
Step 504, determine measured signal do not include interference signal.
Step 505, determine measured signal include interference signal.
It should be noted that the summation of m access time should be less than the pulse width of measured signal.
Rechecking method is a kind of fault-toleranr technique, is the anti-interference energy that microsystem is improved with the method for software redundancy Power, it is adaptable to which anti-interference process is carried out to slowly varying signal.Because the power of the interference signal in measured signal does not have Uniformity, it is therefore desirable to which multiple repairing weld is carried out to measured signal.If the data of sampling are consistent, it is determined that measured signal has Effect, i.e. measured signal do not include interference signal;If double sampling data are inconsistent, or multiple repairing weld data are inconsistent, Then determine that measured signal is invalid, measured signal includes interference signal.
Affected by the precision of sensor and the state of measured signal itself, measured signal itself is sometimes in sampling week Change in phase, there is certain deviation that can be evaluated whether, referred to as calculating error then.And work as measured signal and done at random Disturb, after interference signal, the deviation of generation is typically larger than calculating error, thus judge measured signal whether comprising interference letter Number, the method is referred to as deviation determining method.Fig. 6 shows the flow chart of deviation determining method, and the deviation determining method can include:
The maximum deflection difference value that step 601, empirically determined adjacent double sampling data are allowed.Execution step 602.
Step 602, determine this sampled data with the absolute value of the difference of last sampled data.Execution step 603.
Step 603, judge this sampled data and the absolute value of the difference of last sampled data whether more than it is maximum partially Difference.When this sampled data is allowed most with the absolute value of the difference of last sampled data more than adjacent double sampling data During large deviation value, execution step 604;When this sampled data it is no more than adjacent with the absolute value of the difference of last sampled data During the maximum deflection difference value that double sampling data are allowed, execution step 607.
Step 604, determine this sampled data be interference signal data.Execution step 605.
This sampled data is that the data of interference signal, i.e. measured signal include interference signal.
Step 605, this sampled data is rejected.Execution step 606.
Step 606, using last sampled data as this sampled data.
Step 607, determine measured signal do not include interference signal.
It should be added that, process can also be filtered to measured signal using medium filtering, it is tested to filter Interference signal in signal.
Additionally, in order to avoid program operation is not normal, software trap and supervision timer (English can also be adopted: Watchdog;Referred to as:The Software Anti-interference mode such as WTD).In order in the running for preventing software, transient electromagnetic interference may Central processing unit (English can be made:Central Processing Unit;Referred to as:CPU) deviate predetermined program pointer, enter Untapped random access memory area (English:Random-Access Memory;Referred to as:) and read-only storage area (English RAM Text:Read Only Memory;Referred to as:ROM), some indescribable phenomenons, such as endless loop and program " running fast " are caused, Software trap method can be adopted.The basic thought of software trap mode is:System storage is included not make in RAM and ROM The code command of a certain restarting of unit is filled up, as " trap " of software, to capture the program of " running fast ".One As when CPU performs the order, program is just automatically brought to a certain initial address, and from the beginning of this initial address, storage one Section makes the hot startup procedure that program is resumed operation again, the hot startup procedure pass through the various states at scanning scene, and according to this A little condition adjudgement programs should go to which entrance of system program, make system normal operation input again.
WTD is used to prevent program from entering endless loop.WTD is constituted by one to several counters, and counter leans on system clock Or the pulse signal after frequency dividing is counted, when counter counts are full, a reset number is produced by counter, forces system is multiple Position, makes system restart from initialization executive.Generally per at regular intervals, program is by counter O reset.Time can Determined with the length performed according to system application.Therefore, in normal state, counter not accounting is expired, thus also not Reset can be produced.But, if program operation is abnormal, endless loop being such as absorbed in, counter accounting is full and generation is overflowed, and this overflows Going out signal will make program restart to start as systematic reset signal, so just can be efficiently against interference signal to tested The impact that signal is produced.
Anti-interference method provided in an embodiment of the present invention, software and hardware is combined, and solves hardware anti-interference method Cause system complexity high, the higher and relatively costly problem of failure generation rate improves the antijamming capability of microsystem. The Software Anti-interference of the anti-interference method is belonging to the self-defense behavior of microsystem, using Software Anti-interference is most basic must Condition is wanted to be that Anti-interference Software Based will not be damaged because of interference in system, computer hardware system will not be subject to any under interference effect Damage, or fragile part is provided with monitoring state and is available for inquiry, program area not to be interfered infringement, the program and weight of system Constant is wanted not change because interference is invaded, though the significant data in RAM areas is not destroyed or is destroyed can re-establish.
The above, specific embodiment only of the invention, anti-interference method provided in an embodiment of the present invention can be with Apply in the automatic control technology field of other electromechanical integration.Above description is only informative, people in the art Member can according to actual needs select appropriate application device, without deviating from the scope of the present invention.
It should be noted that the sequencing of anti-interference method step provided in an embodiment of the present invention can be adjusted suitably Whole, such as step 204 can simultaneously be performed with step 201.Step according to circumstances can also accordingly be increased and decreased, any to be familiar with this skill The technical staff in art field the invention discloses technical scope in, the method that can readily occur in change all should cover at this Within bright protection domain, therefore repeat no more.
In sum, anti-interference method provided in an embodiment of the present invention, can adopt hardware circuit to capture microsystem Electrical network power frequency;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal in microsystem Power frequency interference signals eliminated, being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference Method, reduces the complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
A kind of means for anti-jamming 70 is embodiments provided, for microsystem, as shown in fig. 7, the device 70 is wrapped Include:
Hardware circuit 701, for capturing the electrical network power frequency of microsystem.
Determining unit 702, for according to electrical network power frequency, determining the sampling period.
Unit 703 is eliminated, for according to the sampling period, believing the Hz noise in microsystem using sampling trigger signal Number eliminated, the power frequency interference signals for the forward path of microsystem interference signal.
In sum, means for anti-jamming provided in an embodiment of the present invention, can adopt hardware circuit to capture microsystem Electrical network power frequency;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal in microsystem Power frequency interference signals eliminated, being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference Technology, reduces the complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
Another kind of means for anti-jamming 70 is embodiments provided, for microsystem, as shown in figure 8, the device 70 Including:
Hardware circuit 701, for capturing the electrical network power frequency of microsystem.
Determining unit 702, for according to electrical network power frequency, determining the sampling period.
Unit 703 is eliminated, for according to the sampling period, believing the Hz noise in microsystem using sampling trigger signal Number eliminated, the power frequency interference signals for the forward path of microsystem interference signal.
Acquiring unit 704, for obtaining the measured signal of microsystem, the measured signal is the generation of at least one sensor Signal.
Unit 705 is filtered, for filtering the interference signal in measured signal by filtering process.
Determining unit 702 as shown in figure 9, including:
Processing module 7021, for using the integral multiple of electrical network power frequency period it is corresponding value as the sampling period.
Eliminate unit 703 as shown in Figure 10, including:
Cancellation module 7031, for periodicity to microcomputer input sample trigger, makes sampling trigger signal to microcomputer system Power frequency interference signals in system are eliminated, and are the sampling period to the cycle of microcomputer input sample trigger.
Filter unit 705 as shown in figure 11, including:
Module 7051 is filtered, for sentencing using anti-impulse disturbances the mean filter, single order recursion digital filtering, width Any one mode in disconnected deglitch interference method, rechecking method and deviation determining method, is filtered to measured signal Process, to filter measured signal in interference signal.
In sum, means for anti-jamming provided in an embodiment of the present invention, can adopt hardware circuit to capture microsystem Electrical network power frequency;According to electrical network power frequency, the sampling period is determined;According to the sampling period, using sampling trigger signal in microsystem Power frequency interference signals eliminated, being combined by software and hardware, it is anti-interference to carry out, compared to existing hardware anti-interference Technology, reduces the complexity of system, when microsystem is run, reduces the generation rate of failure, and reduces cost.
Those skilled in the art can be understood that, for convenience and simplicity of description, the device of foregoing description With the specific work process of unit, the corresponding process in preceding method embodiment is may be referred to, be will not be described here.
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (8)

1. a kind of anti-interference method, it is characterised in that for microsystem, the microsystem includes microcomputer, methods described bag Include:
The electrical network power frequency of the microsystem is captured using hardware circuit;
According to the electrical network power frequency, the sampling period is determined;
By periodicity to the microcomputer input sample trigger, the sampling trigger signal is made in the microsystem Power frequency interference signals are eliminated, and the cycle to the microcomputer input sample trigger is the sampling period, described Power frequency interference signals are the interference signal of the forward path of the microsystem.
2. method according to claim 1, it is characterised in that described that the sampling period is determined according to the electrical network power frequency, bag Include:
Using the corresponding value of the integral multiple of the electrical network power frequency period as the sampling period.
3. method according to claim 1 and 2, it is characterised in that the microsystem includes at least one sensor, institute Stating method also includes:
The measured signal of the microsystem is obtained, the measured signal is the signal that at least one sensor is produced;
Interference signal in the measured signal is filtered by filtering process.
4. method according to claim 3, it is characterised in that described to be filtered in the measured signal by filtering process Interference signal, including:
Deglitch interference method, weight are judged using anti-impulse disturbances the mean filter, single order recursion digital filtering, width Any one mode in multiple inspection technique and deviation determining method, is filtered process, to filter the quilt to the measured signal The interference signal surveyed in signal.
5. a kind of means for anti-jamming, it is characterised in that for microsystem, the microsystem includes microcomputer, described device bag Include:
Hardware circuit, for capturing the electrical network power frequency of the microsystem;
Determining unit, for according to the electrical network power frequency, determining the sampling period;
Unit is eliminated, for periodicity to the microcomputer input sample trigger, the sampling trigger signal is made to described micro- Power frequency interference signals in machine system are eliminated, and the cycle to the microcomputer input sample trigger is the sampling Cycle, the power frequency interference signals are the interference signal of the forward path of the microsystem.
6. device according to claim 5, it is characterised in that the determining unit, including:
Processing module, for using the integral multiple of the electrical network power frequency period it is corresponding value as the sampling period.
7. the device according to claim 5 or 6, it is characterised in that the microsystem includes at least one sensor, institute Stating device also includes:
Acquiring unit, for obtaining the measured signal of the microsystem, the measured signal is at least one sensor The signal of generation;
Unit is filtered, for filtering the interference signal in the measured signal by filtering process.
8. device according to claim 7, it is characterised in that described to filter unit, including:
Module is filtered, for judging anti-spike using anti-impulse disturbances the mean filter, single order recursion digital filtering, width Any one mode in impulse disturbances method, rechecking method and deviation determining method, to the measured signal process is filtered, Interference signal in filter the measured signal.
CN201510224956.4A 2015-05-05 2015-05-05 anti-interference method and device Active CN104897179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510224956.4A CN104897179B (en) 2015-05-05 2015-05-05 anti-interference method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510224956.4A CN104897179B (en) 2015-05-05 2015-05-05 anti-interference method and device

Publications (2)

Publication Number Publication Date
CN104897179A CN104897179A (en) 2015-09-09
CN104897179B true CN104897179B (en) 2017-05-10

Family

ID=54029991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510224956.4A Active CN104897179B (en) 2015-05-05 2015-05-05 anti-interference method and device

Country Status (1)

Country Link
CN (1) CN104897179B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966684A (en) * 1995-11-09 1999-10-12 Richardson; Thomas L. Method and apparatus for cancelling periodic electrical interference
CN1397806A (en) * 2002-07-30 2003-02-19 西安交通大学 Large-size magnetic core sensor and anti-interference method for discriminating directional coupling pulse
CN2586170Y (en) * 2002-11-13 2003-11-12 北京大学 Eliminator for 50 Hz industrial frequency interfrence of superconductive quantum interfrence device
CN102347705A (en) * 2011-06-14 2012-02-08 南京冠亚电源设备有限公司 Method for detecting and inhibiting direct-current component of soft hardware
CN103344287A (en) * 2013-07-15 2013-10-09 苏州通途流量仪表有限公司 Electromagnetic flow meter power frequency noise restraining method based on zero point detection
CN103487701A (en) * 2013-09-30 2014-01-01 广东电网公司韶关供电局 Intelligent system for on-line automatic detection of electricity-saving potential and rapid energy audit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5966684A (en) * 1995-11-09 1999-10-12 Richardson; Thomas L. Method and apparatus for cancelling periodic electrical interference
CN1397806A (en) * 2002-07-30 2003-02-19 西安交通大学 Large-size magnetic core sensor and anti-interference method for discriminating directional coupling pulse
CN2586170Y (en) * 2002-11-13 2003-11-12 北京大学 Eliminator for 50 Hz industrial frequency interfrence of superconductive quantum interfrence device
CN102347705A (en) * 2011-06-14 2012-02-08 南京冠亚电源设备有限公司 Method for detecting and inhibiting direct-current component of soft hardware
CN103344287A (en) * 2013-07-15 2013-10-09 苏州通途流量仪表有限公司 Electromagnetic flow meter power frequency noise restraining method based on zero point detection
CN103487701A (en) * 2013-09-30 2014-01-01 广东电网公司韶关供电局 Intelligent system for on-line automatic detection of electricity-saving potential and rapid energy audit

Also Published As

Publication number Publication date
CN104897179A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN108174296A (en) Malicious user recognition methods and device
CN109151518B (en) Stolen account identification method and device and electronic equipment
CN107436414B (en) Method and device for testing effectiveness of BBU in memory system
CN106657057A (en) Anti-crawler system and method
CN106209862A (en) A kind of steal-number defence implementation method and device
CN106685752B (en) A kind of information processing method and terminal
CN110441648A (en) A kind of electric signal method for detecting abnormality, device, equipment
CN107036672A (en) A kind of water level monitoring method and apparatus
CN103425541A (en) Electronic device, system and method for exception handling mechanism detection
CN109270482A (en) Voltage transformer accuracy of measuring on-line evaluation method and terminal device
CN109344610B (en) Method and device for detecting sequence attack
CN108306846A (en) A kind of network access exception detection method and system
CN110469496A (en) A kind of water pump intelligent early-warning method and system
CN117466153B (en) Fault detection method, device, computer equipment and readable storage medium
CN104897179B (en) anti-interference method and device
CN114338458A (en) Data security detection method and device
CN116448219B (en) Oil level abnormality detection method, apparatus, device, and computer-readable storage medium
Yang et al. An online detection system for inter-turn short circuit faults in dry-type air-core reactor based on labview
CN113123955A (en) Plunger pump abnormality detection method and device, storage medium and electronic device
CN107395450B (en) Using the monitoring method and device, storage medium, electronic device for logging in situation
CN109389100A (en) A kind of filtering noise-reduction method, device, electronic equipment and storage medium
CN105991362B (en) The fluctuation threshold range setting method and device of data traffic
CN105874393B (en) Monitoring system and method for the production system for guiding fluid
CN111176946B (en) SEL log recording method, device, equipment and storage medium
CN110442837B (en) Generation method and device of complex periodic model and detection method and device thereof

Legal Events

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