CN107579734A - Signal processing method, device, storage medium and processor - Google Patents
Signal processing method, device, storage medium and processor Download PDFInfo
- Publication number
- CN107579734A CN107579734A CN201710905904.2A CN201710905904A CN107579734A CN 107579734 A CN107579734 A CN 107579734A CN 201710905904 A CN201710905904 A CN 201710905904A CN 107579734 A CN107579734 A CN 107579734A
- Authority
- CN
- China
- Prior art keywords
- data
- signal
- accumulator
- sampled
- destination
- 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.)
- Granted
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of signal processing method, device, storage medium and processor.This method includes:Obtain the sampled data of echo signal, and the destination sample data in sampled data per continuous first quantity are defined as set of group data, obtain the grouped data of the second quantity, wherein, echo signal is periodic signal, and the product of the first quantity and the second quantity is the sampling number in the integer cycle in periodic signal;Detect whether every group of grouped data has noise signal;After whether every group of grouped data of detection has noise signal, the accumulation result of multigroup destination packet data is obtained respectively, obtains multiple accumulation results, wherein, destination packet data is the grouped data in addition to the grouped data with noise signal in the grouped data of the second quantity;By the average value of multiple accumulation results, it is defined as the demodulation result of echo signal.By the present invention, the accuracy that signal demodulates is improved.
Description
Technical field
The present invention relates to field of signal processing, in particular to a kind of signal processing method, device, storage medium and
Processor.
Background technology
At present, in touch control detection, D/A converting circuit (Analog-to-Digital Converter, referred to as ADC)
The induction electrode RX sine waves received are sampled, obtained sample sequence is that sine wave sequence is x (n), demodulated sequence
For sin (ω n) and cos (ω n), demodulation computing can be expressed as ((∑ x (n) sin (ω n))2+(∑x(n)cos(ωn))2
)1/2。
Above-mentioned demodulating process can effectively eliminate the noise jamming of the continued presence differed with signal frequency, but such as
Fruit has been superimposed the discontinuous discontinuity time domain mutation as caused by external disturbance in sample sequence, will be to the knot of demodulation computing
Fruit brings strong influence.Fig. 1 is a kind of schematic diagram of noise in correlation technique, if the noise shown in Fig. 1 folded
It is added in the sinusoidal signal of ADC samplings, the signal waveform shown in Fig. 2 will be obtained.Wherein, Fig. 2 is according in correlation technique
A kind of schematic diagram of signal waveform, the burr of the mutation shown in Fig. 2 can cause demodulation result deviation occur, in turn result in touch inspection
Existing deviation is measured, setting causes touch detection to be failed.
For signal in the prior art demodulation accuracy it is low the problem of, not yet propose effective solution at present.
The content of the invention
It is a primary object of the present invention to provide a kind of signal processing method, device, storage medium and processor, with least
Solve the problems, such as that the accuracy of signal demodulation is low.
To achieve these goals, according to an aspect of the invention, there is provided a kind of signal processing method.This method bag
Include:The sampled data of echo signal is obtained, and the destination sample data in sampled data per continuous first quantity are defined as one
Group grouped data, obtains the grouped data of the second quantity, wherein, echo signal is periodic signal, the first quantity and the second quantity
Product be periodic signal in the integer cycle sampling number;Detect whether every group of grouped data has noise signal;
Every group of grouped data is detected whether with after noise signal, the accumulation result of multigroup destination packet data is obtained respectively, obtains
Multiple accumulation results, wherein, destination packet data is in the grouped data of the second quantity, except the grouped data with noise signal
Outside grouped data, each accumulation result is that the destination sample data of the first quantity in every group of destination packet data are carried out
Cumulative obtained result;By the average value of multiple accumulation results, it is defined as the demodulation result of echo signal.
Alternatively, obtaining the sampled data of echo signal includes:The sampled data of echo signal is added to the first accumulator,
And the quantity for the sampled data added from the first counter records into the first accumulator;In the hits of the first counter records
According to quantity be less than the first quantity in the case of, continue obtain sampled data.
Alternatively, after sampled data is added to the first accumulator, this method also includes:In the first counter records
In the case that the quantity of sampled data is not less than the first quantity, added to the second accumulator to continuous first in the first accumulator
The destination sample data of quantity are added up obtained accumulation result, and remove the accumulation result in the first accumulator and the first meter
The quantity of the sampled data recorded in number device, wherein, the quantity of the accumulation result in the second accumulator is carried out by the second counter
Record;In the case that the quantity of the accumulation result recorded in the second counter is less than the second quantity, continue to obtain echo signal
Sampled data;In the case that the quantity of the accumulation result recorded in the second counter is not less than the second quantity, terminate to obtain
Sampled data.
Alternatively, detect whether every group of grouped data includes with noise signal:In the hits of the first counter records
According to quantity be not less than the first quantity in the case of, detect the first accumulator in sampled data whether there is noise signal, its
In, the sampled data composition set of group data of continuous first quantity in the first accumulator.
Alternatively, after whether the sampled data in detecting the first accumulator has noise signal, this method also includes:
In the case where the sampled data in detecting the first accumulator has noise signal, the accumulation result in the first accumulator is removed
With the quantity of sampled data recorded in the first counter;Sampled data in the first accumulator is detected does not have noise signal
In the case of, added into the second accumulator and the destination sample data of continuous first quantity in the first accumulator are added up
The accumulation result of obtained destination packet data, and remove what is recorded in the accumulation result and the first counter in the first accumulator
The quantity of sampled data, wherein, the quantity of the accumulation result of the destination packet data added into the second accumulator is by the 3rd meter
Number device is recorded.
Alternatively, the destination sample data to continuous first quantity in the first accumulator are being added into the second accumulator
After being added up the obtained accumulation result of destination packet data, this method also includes:The second of the second counter records
In the case that the quantity of the accumulation result of destination packet data in accumulator is less than the second quantity, continue to obtain echo signal
Sampled data;The quantity of the accumulation result of destination packet data in the second accumulator of the second counter records is not less than the
In the case of two quantity, terminate to obtain sampled data.
Alternatively, before the sampled data of echo signal is obtained, this method also includes:The target of echo signal is set to adopt
Sample frequency, wherein, destination sample frequency is the integral multiple of the frequency of echo signal, and the cycle of echo signal includes destination number
Sampled point, destination number are integral multiple.
Alternatively, obtaining the sampled data of echo signal includes:Pass through the signal of sinusoidal sequence and the signal of cosine sequences
Echo signal is demodulated, obtains sampled data, wherein, each cycle of the signal of sinusoidal sequence and the signal of cosine sequences
In include the sampled point of destination number.
Alternatively, the first quantity is the integral multiple of half period sampling number.
To achieve these goals, according to another aspect of the present invention, a kind of signal processing method is additionally provided.This method
Including:The grouped data of the second quantity is obtained, wherein, every group of grouped data is by the target in sampled data per continuous first quantity
Sampled data forms, and the product of the first quantity and the second quantity is the sampling number in the integer cycle in echo signal;Respectively
The accumulation result of multiple destination packet datas in the grouped data of the second quantity is obtained, obtains multiple accumulation results, wherein, mesh
Mark in the grouped data that grouped data is the second quantity, the grouped data in addition to the grouped data with noise signal, each
Accumulation result is to be added up obtained result to the destination sample data of the first quantity in every group of destination packet data;To be more
The average value of individual accumulation result, it is defined as the demodulation result of echo signal.
To achieve these goals, according to another aspect of the present invention, a kind of signal processing apparatus is additionally provided.The device
Including:First acquisition unit, for obtaining the sampled data of echo signal, and by the mesh in sampled data per continuous first quantity
Mark sampled data is defined as set of group data, obtains the grouped data of the second quantity, wherein, echo signal is periodic signal,
The product of first quantity and the second quantity is the sampling number in the integer cycle in periodic signal;Detection unit, for detecting
Whether every group of grouped data has noise signal;Second acquisition unit, for detecting whether every group of grouped data has noise
After signal, the accumulation result of multigroup destination packet data is obtained respectively, obtains multiple accumulation results, wherein, targeted packets number
According in the grouped data for the second quantity, the grouped data in addition to the grouped data with noise signal, each accumulation result
To be added up obtained result to the destination sample data of the first quantity in every group of destination packet data;Determining unit, use
In the demodulation result for by the average value of multiple accumulation results, being defined as echo signal.
To achieve these goals, according to another aspect of the present invention, a kind of signal processing apparatus is additionally provided.The device
Including:First acquisition unit, for obtaining the grouped data of the second quantity, wherein, every group of grouped data is by every in sampled data
The product of the destination sample data composition of continuous first quantity, the first quantity and the second quantity is the integer week in echo signal
The sampling number of phase;Second acquisition unit, multiple destination packet datas in grouped data for obtaining the second quantity respectively
Accumulation result, obtain multiple accumulation results, wherein, destination packet data is in the grouped data of the second quantity, except with making an uproar
Grouped data outside the grouped data of acoustical signal, each accumulation result are to the first quantity in every group of destination packet data
Destination sample data are added up obtained result;Determining unit, for by the average value of multiple accumulation results, being defined as target
The demodulation result of signal.
To achieve these goals, according to another aspect of the present invention, a kind of storage medium is additionally provided.The storage medium
Program including storage, wherein, equipment is performed at the signal of the embodiment of the present invention where controlling storage medium when program is run
Reason method.
To achieve these goals, according to another aspect of the present invention, a kind of storage medium is additionally provided.The processor is used
In operation program, wherein, the signal processing method of execution embodiment of the present invention when program is run.
By the present invention, using the sampled data for obtaining echo signal, and by sampled data per continuous first quantity
Destination sample data are defined as set of group data, obtain the grouped data of the second quantity, wherein, echo signal is believed for the cycle
Number, the product of the first quantity and the second quantity is the sampling number in the integer cycle in periodic signal;Detect every group of packet count
According to whether there is noise signal;After whether every group of grouped data of detection has noise signal, multigroup target point is obtained respectively
The accumulation result of group data, obtains multiple accumulation results, wherein, destination packet data is in the grouped data of the second quantity, is removed
Grouped data outside grouped data with noise signal, each accumulation result are to first in every group of destination packet data
The destination sample data of quantity are added up obtained result;By the average value of multiple accumulation results, it is defined as echo signal
Demodulation result.Because in periodic signal, only statistics does not detect the number of the grouped data of noise, and its result is being entered
Row is cumulative, and obtains average value as demodulation result, can effectively eliminate the influence that discontinuous discontinuity time domain is mutated noise,
Solve the problems, such as that the accuracy of signal demodulation is low, and then improve the effect of the accuracy of signal demodulation.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention
Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of noise in correlation technique;
Fig. 2 is a kind of schematic diagram of signal waveform in correlation technique;
Fig. 3 is a kind of flow chart of signal processing method according to embodiments of the present invention;
Fig. 4 is the flow chart of another signal processing method according to embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of the data processing path of quadrature demodulation according to embodiments of the present invention;
Fig. 6 is a kind of schematic diagram of generator according to embodiments of the present invention;
Fig. 7 is the structured flowchart of another signal transacting according to embodiments of the present invention;
Fig. 8 is the flow chart of another signal transacting according to embodiments of the present invention;
Fig. 9 is the flow chart of the method for another signal transacting according to embodiments of the present invention;
Figure 10 is a kind of schematic diagram of signal processing apparatus according to embodiments of the present invention;And
Figure 11 is the schematic diagram of another signal processing apparatus according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
Embodiment 1
The embodiments of the invention provide a kind of signal processing method.
Fig. 3 is a kind of flow chart of signal processing method according to embodiments of the present invention.As shown in figure 3, this method includes
Following steps:
Step S302, the sampled data of echo signal is obtained, and the target in sampled data per continuous first quantity is adopted
Sample data are defined as set of group data, obtain the grouped data of the second quantity.
In the technical scheme that the application above-mentioned steps S302 is provided, the sampled data of echo signal is obtained, and will sampling
Destination sample data in data per continuous first quantity are defined as set of group data, obtain the grouped data of the second quantity,
Wherein, echo signal is product the adopting for the integer cycle in periodic signal of periodic signal, the first quantity and the second quantity
Number of samples.
In this embodiment, echo signal can be the touch signal in mutual capacitance detection, and the echo signal is believed for the cycle
Number, such as, it is sine wave signal.The sampled data of echo signal is obtained, can be obtained by D/A converting circuit to induction electrode
The sine wave signal that RX is received is sampled obtained sampled data, that is, obtaining adc data.To often it connect in sampled data
The destination sample data of continuous first quantity are defined as set of group data, that is, set of group data are a summing elements, should
First quantity can be represented with N1, can be the integral multiple of the sampling number of half of sine wave period, can be for half just
Sampling number in string wave period, or the sampling number in a sine wave period.Per continuous first in sampled data
The destination sample data of quantity are defined as set of group data, can obtain the grouped data of the second quantity, and second quantity can
To be represented with N2, wherein, the product of the first quantity and the second quantity is the sampling number in a sine wave period.
Alternatively, the embodiment can store sampled data by the first accumulator, when the sampled data of storage is more than the
During the sampled data of one quantity, the sampled data of the first quantity is the destination sample data of the first quantity, by first quantity
Destination sample data are defined as set of group data, and the accumulation result of the destination sample data in the set of group data is stored
Into the second accumulator, until it is the second quantity to store to the quantity of the accumulation result in the second accumulator.
Step S304, detects whether every group of grouped data has noise signal.
In the technical scheme that the application above-mentioned steps S304 is provided, detect whether every group of grouped data has noise letter
Number.
The sampled data of echo signal is being obtained, and the destination sample data in sampled data per continuous first quantity are true
It is set to set of group data, when obtaining the grouped data of the second quantity, noise measuring is carried out in units of every group of grouped data, can
To detect whether every group of grouped data has noise signal, the noise signal can be that discontinuous time domain is mutated noise, that is, inspection
Survey whether every group of grouped data has discontinuous time domain mutation noise.In this embodiment, according to the periodicity of sinusoidal signal,
In the case of muting, the accumulation result of every group of grouped data should be identical;In the case where there is noise situations, a part is by noise
The operation result of the grouped data of influence has deviation.
Alternatively, the embodiment detects whether every group of grouped data there is noise signal can include maximin inspection
Survey, the various schemes such as neighbouring sample point maximum variable quantity detection, do not do any restriction herein.
Step S306, after whether every group of grouped data of detection has noise signal, multigroup targeted packets are obtained respectively
The accumulation result of data, obtain multiple accumulation results.
In the technical scheme that the application above-mentioned steps S306 is provided, detecting whether each grouped data has noise letter
After number, the accumulation result of multigroup destination packet data is obtained respectively, obtains multiple accumulation results, wherein, destination packet data
In grouped data for the second quantity, the grouped data in addition to the grouped data with noise signal, each accumulation result is
Obtained result is added up to the destination sample data of the first quantity in every group of destination packet data.
After whether every group of grouped data of detection has noise signal, the cumulative of multigroup destination packet data is obtained respectively
As a result, multiple accumulation results are obtained.The destination packet data has point of noise signal to be removed in the grouped data of the second quantity
Grouped data outside group data, that is, the destination packet data is the grouped data for not detecting noise signal, it is effective
Grouped data.Alternatively, in the grouped data of the second quantity, the output of all grouped datas for detecting noise signal is lost
Abandon, only statistics does not detect the number of the grouped data of noise signal, and the grouped data that will not detect noise signal
Number recorded in the 3rd counter.
Step S308, by the average value of multiple accumulation results, it is defined as the demodulation result of echo signal.
In the technical scheme that the application above-mentioned steps S308 is provided, the cumulative of multigroup destination packet data is being obtained respectively
As a result, after obtaining multiple accumulation results, by the average value of multiple accumulation results, it is defined as the demodulation result of echo signal.
The destination sample data of the embodiment are the sampled data of no noise signal, in multigroup destination packet data
The accumulation result of destination sample data is averaging computing, obtains the average value of multiple accumulation results, and then obtain echo signal
Demodulation result.The average value of multiple accumulation results is defined as to the demodulation result of echo signal, avoids and is folded in sample sequence
When having added the discontinuous discontinuity time domain mutation as caused by external disturbance, cause demodulation result the problem of deviation occur, improve
The accuracy of signal demodulation.
The embodiment using obtain echo signal sampled data, and by sampled data per continuous first quantity target
Sampled data is defined as set of group data, obtains the grouped data of the second quantity, wherein, echo signal is periodic signal, the
The product of one quantity and the second quantity is the sampling number in the integer cycle in periodic signal;Whether detect every group of grouped data
With noise signal;After whether every group of grouped data of detection has noise signal, multigroup destination packet data is obtained respectively
Accumulation result, obtain multiple accumulation results, wherein, destination packet data is in the grouped data of the second quantity, except with making an uproar
Grouped data outside the grouped data of acoustical signal, each accumulation result are to the first quantity in every group of destination packet data
Destination sample data are added up obtained result;By the average value of multiple accumulation results, it is defined as the demodulation knot of echo signal
Fruit.Because in periodic signal, only statistics does not detect the number of the grouped data of noise, and its result is being tired out
Add, and obtain average value as demodulation result, can effectively eliminate the influence of discontinuous discontinuity time domain mutation noise, solve
The problem of accuracy of signal demodulation is low, and then improve the effect of the accuracy of signal demodulation.
As an alternative embodiment, step S302, obtaining the sampled data of echo signal includes:It is cumulative to first
Device adds the sampled data of echo signal, and the number for the sampled data added from the first counter records into the first accumulator
Amount;In the case where the quantity of the sampled data of the first counter records is less than the first quantity, continue to obtain sampled data.
The demodulator circuit that the embodiment is demodulated to signal includes the first accumulator and the first counter, the first counter
The quantity of sampled data to be added in the first accumulator is counted, and first accumulator can be indicated with INT1, the
One counter can be indicated with CNT1.Alternatively, default accumulative frequency is the first quantity N1 in the first accumulator.To
One accumulator adds the sampled data of echo signal, and the sampled data added from the first counter records into the first accumulator
Quantity.Whether the quantity for the sampled data for judging to record in the first counter is less than the first quantity, in the first counter records
Sampled data quantity be less than the first quantity in the case of, continue to obtain sampled data, until first counter records are adopted
The quantity of sample data is equal to the first quantity.
As an alternative embodiment, after sampled data is added to the first accumulator, this method also includes:
It is tired to first to the addition of the second accumulator in the case that the quantity of the sampled data of first counter records is not less than the first quantity
Add the destination sample data of continuous first quantity in device to be added up obtained accumulation result, and remove in the first accumulator
The quantity of the sampled data recorded in accumulation result and the first counter, wherein, the quantity of the accumulation result in the second accumulator
Recorded by the second counter, alternatively, the second accumulator records the group number that the accumulation result in the first accumulator is completed,
In the absence of noise, just equal to the quantity of the accumulation result recorded in the second accumulator;Recorded in the second counter
Accumulation result quantity be less than the second quantity in the case of, continue obtain echo signal sampled data;In the second counter
In the case that the quantity of the accumulation result of middle record is not less than the second quantity, terminate to obtain sampled data.
After sampled data is added to the first accumulator, it is not less than in the quantity of the sampled data of the first counter records
In the case of first quantity, that is, the quantity in the sampled data of the first counter records is default more than the first accumulator secondary
During number, a grouped data being made up of to the addition of the second accumulator the sampled data of the first quantity in the first accumulator it is tired
Add result, that is, the grouped data being made up of the sampled data per continuous first quantity that added up in the second accumulator, and clearly
It is cumulative to continue through first except the quantity of the sampled data recorded in the accumulation result in the first accumulator and the first counter
The sampled data of cumulative first quantity of device, continue to record the quantity of the sampled data in the first accumulator by the first counter.
The quantity of accumulation result in second accumulator is recorded by the second counter, and second counter can carry out table by CNT2
Show.Whether the quantity for the accumulation result for judging to record in the second counter is less than the second quantity, is recorded in the second counter
In the case that the quantity of accumulation result is less than the second quantity, continue to obtain the sampled data of echo signal, until the second counter
The quantity of the accumulation result of middle record is the second quantity;The quantity of the accumulation result recorded in the second counter is not less than second
In the case of quantity, terminate to obtain sampled data.
As an alternative embodiment, step S304, detects whether every group of grouped data includes with noise signal:
In the case where the quantity of the sampled data of the first counter records is not less than the first quantity, the sampling in the first accumulator is detected
Whether data have noise signal, wherein, the sampled data composition set of group number of continuous first quantity in the first accumulator
According to.
The embodiment, can adopting in the first counter records when whether every group of grouped data of detection has noise signal
In the case that the quantity of sample data is not less than the first quantity, detect whether the sampled data in the first accumulator has noise letter
Number, such as, whether the sampled data detected in the first accumulator has a big noise, and the first quantity in first accumulator is adopted
Sample data form set of group data, and the accumulation result of grouped data is added into the second accumulator.
As an alternative embodiment, in step S304, whether the sampled data detected in the first accumulator has
After noise signal, this method also includes:In the case where the sampled data in detecting the first accumulator has noise signal,
Remove the quantity of the sampled data recorded in the accumulation result in the first accumulator and the first counter;Detecting the first accumulator
In sampled data do not have noise signal in the case of, into the second accumulator addition to continuous first in the first accumulator
The destination sample data of quantity are added up the accumulation result of obtained destination packet data, and are removed tired in the first accumulator
Add the quantity of the sampled data recorded in result and the first counter, wherein, the targeted packets number added into the second accumulator
According to the quantity of accumulation result recorded by the 3rd counter.
After whether the sampled data in detecting the first accumulator has noise signal, if detecting the first accumulator
In sampled data there is noise signal, then the grouped data including the noise signal is invalid Packet Data, now removes
The quantity of the sampled data recorded in accumulation result and the first counter in one accumulator, so that the first accumulator is cumulative follow-up
Sampled data, make the quantity of the follow-up sampled data of the first counter records.If detect the sampling in the first accumulator
Data do not have noise signal, that is, the grouped data being made up of the sampled data of the first quantity in the first accumulator is mesh
Grouped data is marked, that is, being efficient packet data, the efficient packet data is added into the second accumulator, and it is tired to remove first
Add the quantity of the sampled data recorded in the accumulation result in device and the first counter, adopted so that the first accumulator is cumulative follow-up
Sample data, make the quantity of the follow-up sampled data of the first counter records.The destination packet data added into the second accumulator
The quantity of accumulation result recorded by the 3rd counter, the 3rd counter can be represented with CNTD.
As an alternative embodiment, added into the second accumulator to continuous first number in the first accumulator
After the destination sample data of amount are added up the accumulation result of obtained destination packet data, this method also includes:Second
In the case that the quantity of the accumulation result of destination packet data in second accumulator of counter records is less than the second quantity, after
The continuous sampled data for obtaining echo signal;The cumulative knot of destination packet data in the second accumulator of the second counter records
In the case that fruit quantity is not less than the second quantity, terminate to obtain sampled data.
The destination sample data of continuous first quantity in the first accumulator are tired out being added into the second accumulator
After adding the obtained accumulation result of destination packet data, the targeted packets in the second accumulator of the second counter records are judged
Whether the quantity of the accumulation result of data is less than the second quantity N2.If it is judged that the destination packet data of the second counter records
The quantity of accumulation result be less than the second quantity N2, then can continue to obtain the sampled data of echo signal, by the first accumulator
Storage continues the sampled data of the echo signal got, and adopting in the first accumulator is added to again by the first counter records
The quantity of sample data, and in the case that the quantity of the sampled data in the first accumulator is not less than the first quantity, judge the
The sampled data of the first quantity in one accumulator whether there is noise signal, the sampling of the first quantity in the first accumulator
In the case that noise signal is not present in data, the sampled data of the first quantity in the first accumulator is formed into a targeted packets
Data, the accumulation result of destination packet data are added in the second accumulator, and continue record target point in the second counter
The quantity of the accumulation result of group data.
Alternatively, the quantity of the accumulation result of the destination packet data recorded in the second counter is not less than the second quantity
In the case of, then directly terminate to obtain sampled data.
As an alternative embodiment, before the sampled data of echo signal is obtained, this method also includes:Set
The destination sample frequency of echo signal, wherein, destination sample frequency for echo signal frequency integral multiple, the week of echo signal
Phase includes the sampled point of destination number, and destination number is integral multiple.
The embodiment sets the destination sample frequency of echo signal before the sampled data of echo signal is obtained, such as,
ADC sample frequencys are set.The destination sample frequency of the embodiment for echo signal frequency integral multiple, the sine in each cycle
Ripple includes the sampled point of destination number, such as, destination number M, the M can be the natural number more than or equal to 2, and ADC samplings are frequently
Rate is to touch the integral multiple of scanning sine wave freuqency, so that the sine wave in each cycle just includes M sampled point.
As an alternative embodiment, obtaining the sampled data of echo signal includes:Pass through the signal of sinusoidal sequence
Echo signal is demodulated with the signal of cosine sequences, obtains sampled data, wherein, the signal and cosine sequences of sinusoidal sequence
Signal each cycle in include the sampled point of destination number.
When obtaining the sampled data of echo signal, the forcing function generator and cosine that set demodulator circuit occur the embodiment
Device, echo signal is demodulated by the signal of sinusoidal sequence and the signal of cosine sequences, that is, the signal of sinusoidal sequence and
The signal of cosine sequences carries out multiplying with echo signal respectively, obtains sampled data.Wherein, the signal of sinusoidal sequence and remaining
Also the sampled point of destination number is included in each cycle of the signal of string sequence, such as, including M sampled point.
As an alternative embodiment, the first quantity of the embodiment is the integral multiple of half period sampling number,
It can be the sampling number in half of sine wave period, or the sampling number in a sine wave period.
Fig. 4 is the flow chart of another signal processing method according to embodiments of the present invention.As shown in figure 4, this method bag
Include following steps:
Step S402, obtain the grouped data of the second quantity.
The grouped data of the second quantity is obtained in the technical scheme that the application above-mentioned steps S402 is provided, wherein, every group
Grouped data is made up of the destination sample data in sampled data per continuous first quantity, the product of the first quantity and the second quantity
For the sampling number in the integer cycle in echo signal.
In this embodiment, the destination sample data in sampled data per continuous first quantity are defined as set of group number
According to, the grouped data of the second quantity can be obtained, first quantity can represent that the second quantity can be represented with N2 with N1, its
In, the product of the first quantity and the second quantity is the sampling number in the integer cycle in echo signal.
Alternatively, the embodiment can store sampled data by the first accumulator, when the sampled data of storage is more than the
During the sampled data of one quantity, the sampled data of the first quantity is the destination sample data of the first quantity, by first quantity
Destination sample data are defined as set of group data, and the accumulation result of grouped data is stored into the second accumulator, until
It is the second quantity to store to the quantity of the accumulation result of the grouped data in the second accumulator.
Step S404, the accumulation result of multiple destination packet datas in the grouped data of the second quantity is obtained respectively, is obtained
To multiple accumulation results.
In the technical scheme that the application above-mentioned steps S404 is provided, obtain respectively more in the grouped data of the second quantity
The accumulation result of individual destination packet data, multiple accumulation results are obtained, wherein, destination packet data is the packet count of the second quantity
In, the grouped data in addition to the grouped data with noise signal, each accumulation result is to every group of destination packet data
In the destination sample data of the first quantity added up obtained result.
When obtaining the grouped data of the second quantity, noise measuring is carried out in units of every group of grouped data, can be detected
Whether every group of grouped data has noise signal, and the noise signal can be that discontinuous time domain is mutated noise, that is, detecting every group
Whether grouped data has discontinuous time domain mutation noise.In this embodiment, according to the periodicity of sinusoidal signal, in noiseless
In the case of, the accumulation result of every group of grouped data should be identical;It is a part of affected by noise in the case where there is noise situations
The operation result of grouped data has deviation.
Alternatively, the embodiment detects whether every group of grouped data there is noise signal can include maximin inspection
Survey, the various schemes such as neighbouring sample point maximum variable quantity detection, do not do any restriction herein.
After whether every group of grouped data of detection has noise signal, destination packet data, the targeted packets number are obtained
According to the grouped data in the grouped data for the second quantity in addition to the grouped data with noise signal, that is, the target point
Group data are not detect the grouped data of noise signal, are efficient packet data.Alternatively, the grouped data of the second quantity
In, by the output drops of all grouped datas for detecting noise signal, only count the packet count for not detecting noise signal
According to number, and will not detect the grouped data of noise signal accumulation result be added to the second accumulator in, by the 3rd
The quantity for the accumulation result that counter records are added in the second accumulator.
Step S406, by the average value of multiple accumulation results, it is defined as the demodulation result of echo signal.
In the technical scheme that the application above-mentioned steps S406 is provided, obtaining respectively from the grouped data of the second quantity
Multiple destination packet datas accumulation result, after obtaining multiple accumulation results, by the average value of multiple accumulation results, it is determined that
For the demodulation result of echo signal.
The destination sample data of the embodiment are the sampled data of no noise signal, to cumulative in destination packet data
As a result averaging computing is carried out, obtains multiple accumulation results, average value is defined as to the demodulation result of echo signal, avoided
When being superimposed the discontinuous discontinuity time domain mutation as caused by external disturbance in sample sequence, demodulation result is caused deviation occur
The problem of, improve the accuracy that signal demodulates.
The embodiment by obtain the second quantity grouped data, wherein, every group of grouped data in sampled data by often connecting
The product of the destination sample data composition of continuous first quantity, the first quantity and the second quantity is the integer cycle in echo signal
Sampling number;The accumulation result of multiple destination packet datas in the grouped data of the second quantity is obtained respectively, is obtained multiple
Accumulation result, wherein, destination packet data is in the grouped data of the second quantity, in addition to the grouped data with noise signal
Grouped data;, each accumulation result is that the destination sample data of the first quantity in every group of destination packet data are tired out
Add obtained result;By the average value of multiple accumulation results.Because in periodic signal, only statistics does not detect point of noise
The number of group data, and its result is being added up, and average value is obtained as demodulation result, can effectively it eliminate discontinuous
Discontinuity time domain mutation noise influence, solve the problems, such as that the accuracy of signal demodulation is low, and then raising signal
The effect of the accuracy of demodulation.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not
The order being same as herein performs shown or described step.
Embodiment 2
Technical scheme is illustrated with reference to preferred embodiment.
Apply a sine wave exciting signal at driving electrodes TX ends, receive corresponding signal at induction electrode RX ends, pass through
Filter and amplification, ADC samplings, demodulation obtain the touch data for reflecting mutual capacitance size to be detected.Sine wave exciting signal is from each
Driving electrodes TX, which is transferred to each induction electrode RX, can produce different phase delays, to ensure demodulation accuracy, it is necessary to disappear
Except the influence of phase delay, phase effect can be eliminated using quadrature demodulation.
Fig. 5 is a kind of schematic diagram of the data processing path of quadrature demodulation according to embodiments of the present invention.As shown in figure 5,
AFE is analog front circuit, is analog-digital converter comprising filtering and signal amplifier, ADC, will be added up corresponding to forcing function generator
Square of the phase of device output, the phase of corresponding with cosine generator accumulator output square carry out extraction of square root computing, obtained
To touch data.
Fig. 6 is a kind of schematic diagram of generator according to embodiments of the present invention.As shown in fig. 6, the generator includes adding up
Device, register, look-up table.Wherein, the initial value of registerIt can set, work as initial valueFor 0 degree when, the generator is exactly
One forcing function generator, works as initial valueFor 90 degree when, the generator is a cosine generator, works as initial valueFor arbitrary value
When, the generator is exactly a random initial phase forcing function generator, by look-up table, and then is exported
In this embodiment, ADC sample frequencys are set, touch the sine wave freuqency of scanning, it is necessary to meet following two bar
Part:
The ADC sample frequencys of the embodiment are the integral multiples for the sine wave freuqency for touching scanning, to cause each cycle
Sine wave all just includes M sampled point, wherein, M is the natural number more than 2;
The sine and cosine generator of demodulator circuit is set, and in the sine and cosine sequence for making their outputs, each cycle also just wraps
Containing M sampled point.The sine and cosine sequence that the sine and cosine of demodulator circuit exports by the signal of ADC outputs with carrying out multiplication fortune
Calculate, to obtain the intensity of ADC signal, belong to the process being demodulated to signal.
Accumulator is divided into two-stage, including accumulator 1 (INT1) and accumulator 2 (INT2) by the embodiment, if INT1 is pre-
If accumulative frequency be N1, the default accumulative frequencies of INT2 are N2, wherein, N1, N2 are the integer more than or equal to 1, N1*N2 etc.
In ADC sampling numbers, that is, being total accumulative frequency.It is respectively in INT1 and INT2 to set two counter cnts 1 and CNT2
The data of storage are counted.
Fig. 7 is the structured flowchart of another signal transacting according to embodiments of the present invention.As shown in fig. 7, the signal transacting
Structured flowchart include:Accumulator 1, accumulator 2, counting in path where forcing function generator A, and forcing function generator A
Device 3, counter 4, counter 5 and noise detection unit 6, in addition to:It is logical where cosine generator B, and cosine generator B
Accumulator 1 ', accumulator 2 ', counter 3 ', counter 4 ', counter 5 ' and noise detection unit 6 ' in road.
Apply a sine wave exciting signal at driving electrodes end, receive corresponding signal at induction electrode end, after filtering
Amplification, ADC samplings, the sine and cosine sequence exported by forcing function generator and cosine generator, and then demodulate, obtain hits
According to.
The embodiment is in the path where forcing function generator A, the output of noise detection unit 6, counter 3 and multiplier
End, the input of accumulator 1 are connected, and counter 5 is connected with noise detection unit 6, the output of counter 4 and accumulator 1
End, the input of accumulator 2 are connected.The embodiment can be detected by noise detection unit 6 and is added into accumulator 1
Whether sampled data has noise signal, and is to be counted added to the sampled data in accumulator 1 by counter 3,
It is to be counted added to the accumulation result in accumulator 2 by counter 4, effective accumulation result is counted by counter 5
Number, that is, statistics accumulator 1 in do not have noisy summing elements accumulation result number.
The embodiment in the path where cosine generator B, noise detection unit 6 ', counter 3 ' and multiplier it is defeated
Go out end, the input of accumulator 1 ' is connected, counter 5 ' is connected with noise detection unit 6 ', counter 4 ' and accumulator 1 '
Output end, the input of accumulator 2 ' is connected.The embodiment can be detected by noise detection unit 6 ' and is added into tired
Add whether the sampled data in device 1 ' has noise signal, and be added to the hits in accumulator 1 ' by counter 3 '
According to being counted, it is to be counted added to the accumulation result in accumulator 2 ' by counter 4 ', is counted by counter 5 '
The number of effective accumulation result, that is, not having the number of the accumulation result of noisy summing elements in statistics accumulator 1 '.
Fig. 8 is the flow chart of another signal transacting according to embodiments of the present invention.As shown in figure 8, this method include with
Lower step:
Step S801, the accumulation result in accumulator 1, accumulator 2 is removed, and recorded in counter 1 and counter 2
Quantity.
Induction electrode RX ends start, and remove the accumulation result in accumulator 1, accumulator 2, and counter 1 and counter 2
The quantity of middle record.
Step S802, receive ADC sampled datas.
Removing accumulator 1, the accumulation result in accumulator 2, and the quantity recorded in counter 1 and counter 2 it
Afterwards, ADC sampled datas are received.
Step S803, the quantity cumulative 1 of the sampled data recorded in counter 1, and store ADC hits to accumulator 1
According to.
After ADC sampled datas are received, the quantity of the sampled data recorded in counter 1 cumulative 1, and to accumulator 1
Store ADC sampled datas.
Step S804, judges whether the quantity of the sampled data in counter 1 is less than 1 default accumulative frequency of accumulator
N1。
In counter 1 cumulative 1, and after storing ADC sampled datas to accumulator 1, the sampled data in counter 1 is judged
Quantity whether be less than the default accumulative frequency N1 of accumulator 1.If it is judged that the quantity of the sampled data in counter 1 is less than
The default accumulative frequency N1 of accumulator 1, continues executing with step S802, if it is judged that the quantity of the sampled data in counter 1
Accumulative frequency N1 default not less than accumulator 1, perform step S805.
Step S805, the accumulation result of N1 data in accumulator 1 is added to accumulator 2, and makes counter 1, is added up
Device 1 is reset, the quantity cumulative 1 of the accumulation result in counter 2.
After whether the quantity of the sampled data in judging counter 1 is less than the default accumulative frequency N1 of accumulator 1, such as
Fruit judges that the quantity of the sampled data in counter 1 is not less than the default accumulative frequency N1 of accumulator 1, is added to accumulator 2
The accumulation result of N1 data in accumulator 1, such as, Add INT1to INT2, this N1 sampled data is one cumulative single
Member, and make counter 1, accumulator 1 is reset, the quantity cumulative 1 of the accumulation result in counter 2.
Step S806, judges whether the quantity of accumulation result in counter 2 is less than the default accumulative frequency N2 of accumulator 2.
Data in accumulator 1 is added to accumulator 2, and make counter 1, and accumulator 1 is reset, counter 2 cumulative 1 it
Afterwards, judge whether the quantity of accumulation result in counter 2 is less than the default accumulative frequency N2 of accumulator 2.If it is judged that count
The quantity of accumulation result is less than the default accumulative frequency N2 of accumulator 2 in device 2, then continues executing with step S802.If it is judged that
The quantity of accumulation result is not less than the default accumulative frequency N2 of accumulator 2 in counter 2, then terminates to obtain ADC sampled datas.
In this embodiment, the sampling number in half of sine wave period that N1 is integral multiple is set, such as, for one just
Sampling number in sampling number in string wave period, or half of sine wave period etc..Will per continuous N1 groups of samples into
One summing elements, can there is altogether N2 summing elements, wherein, common N1*N2 sampled point must be a sine wave period
In sampling number.According to the periodicity of sinusoidal signal, in the case of muting, the accumulation result of each summing elements should
It is identical, the output of these summing elements is averaged in accumulator INT2, using the average value obtained as demodulation result,
The demodulation result is inputted again and handled into squarer, obtains final demodulation result;In the presence of noise, one
Divide the operation result of summing elements affected by noise, deviation be present.
Alternatively, noise measuring is carried out to sampled data in units of each summing elements, noise has been detected by all
Summing elements output drops, as long as that is, the data in summing elements have noise, just the summing elements are abandoned, only
Statistics does not detect the quantity of the summing elements of noise, and will not detect the summing elements of noise in accumulator INT2
It is cumulative, and then the summing elements for not detecting noise are obtained into average value, using the average value as demodulation result.
Alternatively, the method for the embodiment noise measuring can include maximin detection, the maximum change of neighbouring sample point
The various schemes such as change amount detection, are not limited herein.
Alternatively, the embodiment counts the number of effective summing elements by counter cnt D, and effective summing elements are
Muting summing elements.After a touch detection, the number of effective unit of counter cnt D statistics is 0, then illustrates this
When noise jamming it is extremely strong, effective touch data can not be obtained, now can be to micro-control unit (Micro by touch modules
Controller Unit, referred to as MCU) send one and interrupt or Status Flag, with show now to disturb it is very strong, it is necessary to by
Micro-control unit is further handled.
Fig. 9 is the flow chart of the method for another signal transacting according to embodiments of the present invention.As shown in figure 9, this method
Comprise the following steps:
Step S901, the accumulation result in accumulator 1, accumulator 2 is removed, and recorded in counter 1 and counter 2
Data.
Induction electrode RX ends start.Remove the accumulation result in accumulator 1, accumulator 2, counter 1, and counter 2
The data of middle record.
Step S902, receive ADC sampled datas.
Removing accumulator 1, the accumulation result in accumulator 2, and the data recorded in counter 1 and counter 2 it
Afterwards, ADC sampled datas are received.
Step S903, counter 1 cumulative 1, and store ADC sampled datas to accumulator 1.
After ADC sampled datas are received, counter 1 cumulative 1, and store ADC sampled datas to accumulator 1.
Step S904, judges whether the quantity of the sampled data in counter 1 is less than 1 default accumulative frequency of accumulator
N1。
In counter 1 cumulative 1, and after storing ADC sampled datas to accumulator 1, it is cumulative to judge whether counter 1 is less than
The default accumulative frequency N1 of device 1.If it is judged that counter 1 is less than the default accumulative frequency N1 of accumulator 1, then step is continued executing with
Rapid S903;If it is judged that counter 1 is not less than the default accumulative frequency N1 of accumulator 1, then step S904 is performed.
Whether step S905, the sampled data for judging to be stored in accumulator 1 have big noise.
Judge whether the quantity of the sampled data in counter 1 is less than after the default accumulative frequency N1 of accumulator 1, if
Judge that counter 1 is not less than the default accumulative frequency N1 of accumulator 1, whether the sampled data for judging to be stored in accumulator 1 has
Big noise.If it is judged that the sampled data in deposit accumulator 1 has big noise, step S907 is performed;If it is judged that deposit
Sampled data in accumulator 1 does not have big noise, performs step S906.
Step S906, the accumulation result of N1 sampled data in counter 1 is added into counter 2, counter
The quantity of effective summing elements in CNTD adds 1.
If it is judged that the sampled data in deposit accumulator 1 does not have big noise, by N1 sampled data in counter 1
Accumulation result added into counter 2, the quantity of effective summing elements in counter cnt D adds 1.
Step S907, counter 1, accumulator 1 are reset, the quantity cumulative 1 of the accumulation result in counter 2.
If it is judged that the sampled data in deposit accumulator 1 has a big noise, or by the sampled data in counter 1
Added into counter 2, it is after the quantity of effective summing elements in counter cnt D adds 1, counter 1, accumulator 1 is clear
Zero, the quantity cumulative 1 of the accumulation result in counter 2.
Step S908, judges whether the quantity of the accumulation result in counter 2 is less than 2 default accumulative frequency of accumulator
N2。
Reset by counter 1, accumulator 1, after the quantity in counter 2 cumulative 1, judge cumulative in counter 2
Whether quantity as a result is less than the default accumulative frequency N2 of accumulator 2.If it is judged that the quantity of the summing elements in counter 2
Accumulative frequency N2 default less than accumulator 2, perform step S902;If it is judged that the quantity of the accumulation result in counter 2
Accumulative frequency N2 default not less than accumulator 2, then terminate.
After finalization, standardize accumulator 2, can be by the summing elements divided by counter that are stored in accumulator 2
The quantity of the effective summing elements recorded in CNTD is standardized to accumulator 2.
The embodiment can effectively eliminate the shadow of discontinuous discontinuity time domain mutation noise when carrying out touch control detection
Ring, improve the accuracy of signal demodulation.
Embodiment 3
The embodiment of the present invention additionally provides a kind of signal processing apparatus.
Figure 10 is a kind of schematic diagram of signal processing apparatus according to embodiments of the present invention.It should be noted that the implementation
The signal processing apparatus of example can be used for the signal processing method for performing embodiment illustrated in fig. 3.As shown in Figure 10, the signal transacting
Device includes:First acquisition unit 10, detection unit 20, second acquisition unit 30 and determining unit 40.
First acquisition unit 10, for obtaining the sampled data of echo signal, and it will be counted in sampled data per continuous first
The destination sample data of amount are defined as set of group data, obtain the grouped data of the second quantity, wherein, echo signal is the cycle
The product of signal, the first quantity and the second quantity is the sampling number in the integer cycle in periodic signal.
Detection unit 20, for detecting whether every group of grouped data has noise signal;
Second acquisition unit 30, for it whether there is noise signal in every group of grouped data of detection after, obtain respectively more
The accumulation result of group destination packet data, obtains multiple accumulation results, wherein, destination packet data is the packet count of the second quantity
In, the grouped data in addition to the grouped data with noise signal, each accumulation result is to every group of destination packet data
In the destination sample data of the first quantity added up obtained result.
Determining unit 40, for by the average value of multiple accumulation results, being defined as the demodulation result of echo signal.
Figure 11 is the schematic diagram of another signal processing apparatus according to embodiments of the present invention.It should be noted that the reality
The signal processing apparatus for applying example can be used for the signal processing method for performing embodiment illustrated in fig. 4.As shown in figure 11, at the signal
Reason device includes:First acquisition unit 50, second acquisition unit 60 and determining unit 70.
First acquisition unit 50, for obtaining the grouped data of the second quantity, wherein, every group of grouped data is by sampled data
In destination sample data per continuous first quantity form, the product of the first quantity and the second quantity is the integer in echo signal
The sampling number in individual cycle.
Second acquisition unit 60, multiple destination packet datas in grouped data for obtaining the second quantity respectively it is tired
Add result, obtain multiple accumulation results, wherein, destination packet data is in the grouped data of the second quantity, except believing with noise
Number grouped data outside grouped data, each accumulation result is to the target of the first quantity in every group of destination packet data
Sampled data is added up obtained result.
Determining unit 70, for by the average value of multiple accumulation results, being defined as the demodulation result of echo signal.
Embodiment 4
The embodiment of the present invention additionally provides a kind of storage medium.The storage medium includes the program of storage, wherein, in program
Equipment performs the signal processing method of the embodiment of the present invention where controlling storage medium during operation.
Embodiment 5
The embodiment of the present invention additionally provides a kind of processor.The processor is used for operation program.The program performs when running
The signal processing method of the embodiment of the present invention.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the receivable program code of computing device, it is thus possible to which they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (14)
- A kind of 1. signal processing method, it is characterised in that including:The sampled data of echo signal is obtained, and the destination sample data in the sampled data per continuous first quantity are determined For set of group data, the grouped data of the second quantity is obtained, wherein, the echo signal is periodic signal, first number The product of amount and second quantity is the sampling number in the integer cycle in the periodic signal;Detect whether grouped data described in every group has noise signal;After detecting grouped data described in every group and whether there is the noise signal, multigroup destination packet data is obtained respectively Accumulation result, multiple accumulation results are obtained, wherein, the destination packet data is the grouped data of second quantity In, the grouped data in addition to the grouped data with the noise signal, each accumulation result is to mesh described in every group The destination sample data of first quantity in mark grouped data are added up obtained result;By the average value of the multiple accumulation result, it is defined as the demodulation result of the echo signal.
- 2. according to the method for claim 1, it is characterised in that obtaining the sampled data of the echo signal includes:The sampled data of the echo signal is added to the first accumulator, and is tired out from the first counter records to described first Add the quantity for the sampled data added in device;In the case where the quantity of the sampled data of first counter records is less than first quantity, continue to obtain The sampled data.
- 3. according to the method for claim 2, it is characterised in that to first accumulator add the sampled data it Afterwards, methods described also includes:In the case where the quantity of the sampled data of first counter records is not less than first quantity, to second Accumulator adds to be added up to obtain to the destination sample data of continuous first quantity in first accumulator Accumulation result, and remove recorded in the accumulation result in first accumulator and first counter described and adopt The quantity of sample data, wherein, the quantity of the accumulation result in second accumulator is recorded by the second counter;In the case that the quantity of the accumulation result recorded in second counter is less than second quantity, continue to obtain Take the sampled data of the echo signal;In the case that the quantity of the accumulation result recorded in second counter is not less than second quantity, terminate Obtain the sampled data.
- 4. according to the method for claim 2, it is characterised in that detect whether grouped data described in every group has the noise Signal includes:In the case where the quantity of the sampled data of first counter records is not less than first quantity, institute is detected State whether the sampled data in the first accumulator has the noise signal, wherein, it is continuous in first accumulator The sampled data of first quantity forms grouped data described in one group.
- 5. according to the method for claim 4, it is characterised in that the sampled data in first accumulator is detected After whether having the noise signal, methods described also includes:In the case where the sampled data in detecting first accumulator has the noise signal, described the is removed The quantity of the sampled data recorded in the accumulation result and first counter in one accumulator;It is cumulative to second in the case where the sampled data in detecting first accumulator does not have the noise signal Addition is added up what is obtained to the destination sample data of continuous first quantity in first accumulator in device The accumulation result of the destination packet data, and remove the accumulation result in first accumulator and described first and count The quantity of the sampled data recorded in device, wherein, the destination packet data added into second accumulator The quantity of accumulation result is recorded by the 3rd counter.
- 6. according to the method for claim 5, it is characterised in that tired to described first being added into second accumulator The destination sample data of continuous first quantity in device are added to be added up the tired of the obtained destination packet data After adding result, methods described also includes:The quantity of the accumulation result of the destination packet data in second accumulator of the second counter records is less than In the case of second quantity, continue to obtain the sampled data of the echo signal;The quantity of the destination packet data accumulation result in second accumulator of second counter records is not In the case of second quantity, terminate to obtain the sampled data.
- 7. method as claimed in any of claims 1 to 6, it is characterised in that obtaining the institute of the echo signal Before stating sampled data, methods described also includes:The destination sample frequency of the echo signal is set, wherein, the destination sample frequency is the frequency of the echo signal Integral multiple, the cycle of the echo signal includes the sampled point of destination number, and the destination number is the integral multiple.
- 8. according to the method for claim 7, it is characterised in that obtaining the sampled data of the echo signal includes:The echo signal is demodulated by the signal of sinusoidal sequence and the signal of cosine sequences, obtains the hits According to, wherein, the destination number is included in each cycle of the signal of the signal of the sinusoidal sequence and the cosine sequences Sampled point.
- 9. method as claimed in any of claims 1 to 6, it is characterised in that first quantity is half period The integral multiple of sampling number.
- A kind of 10. signal processing method, it is characterised in that including:The grouped data of the second quantity is obtained, wherein, grouped data described in every group is by every continuous first quantity in sampled data Destination sample data form, and the product of first quantity and second quantity is adopting for the integer cycle in echo signal Number of samples;The accumulation result of multiple destination packet datas in the grouped data of second quantity is obtained respectively, is obtained multiple Accumulation result, wherein, the destination packet data is in the grouped data of second quantity, except with noise signal Grouped data outside grouped data, each accumulation result are to first number in destination packet data described in every group The destination sample data of amount are added up obtained result;By the average value of the multiple accumulation result, it is defined as the demodulation result of the echo signal.
- A kind of 11. signal processing apparatus, it is characterised in that including:First acquisition unit, for obtaining the sampled data of echo signal, and by the sampled data per continuous first quantity Destination sample data be defined as set of group data, obtain the grouped data of the second quantity, wherein, the echo signal for week The product of phase signal, first quantity and second quantity is the sampled point in the integer cycle in the periodic signal Number;Detection unit, for detecting whether grouped data described in every group has noise signal;Second acquisition unit, for after detecting grouped data described in every group and whether there is the noise signal, obtaining respectively The accumulation result of multigroup destination packet data, multiple accumulation results are obtained, wherein, the destination packet data is the described second number In the grouped data of amount, the grouped data in addition to the grouped data with the noise signal, each cumulative knot Fruit is to be added up obtained result to the destination sample data of first quantity in destination packet data described in every group;Determining unit, for by the average value of the multiple accumulation result, being defined as the demodulation result of the echo signal.
- A kind of 12. signal processing apparatus, it is characterised in that including:First acquisition unit, for obtaining the grouped data of the second quantity, wherein, grouped data is by sampled data described in every group Destination sample data per continuous first quantity form, and the product of first quantity and second quantity is in echo signal The integer cycle sampling number;Second acquisition unit, multiple destination packet datas in the grouped data for obtaining second quantity respectively Accumulation result, multiple accumulation results are obtained, wherein, the destination packet data is the grouped data of second quantity In, the grouped data in addition to the grouped data with noise signal, each accumulation result is to target described in every group point The destination sample data of first quantity in group data are added up obtained result;Determining unit, for by the average value of the multiple accumulation result, being defined as the demodulation result of the echo signal.
- A kind of 13. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where signal processing method in equipment perform claim requirement 1 to 10 described in any one.
- A kind of 14. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the signal processing method described in any one in 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710905904.2A CN107579734B (en) | 2017-09-28 | 2017-09-28 | Signal processing method, signal processing device, storage medium and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710905904.2A CN107579734B (en) | 2017-09-28 | 2017-09-28 | Signal processing method, signal processing device, storage medium and processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107579734A true CN107579734A (en) | 2018-01-12 |
CN107579734B CN107579734B (en) | 2020-12-29 |
Family
ID=61040393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710905904.2A Active CN107579734B (en) | 2017-09-28 | 2017-09-28 | Signal processing method, signal processing device, storage medium and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107579734B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117020A (en) * | 2018-07-19 | 2019-01-01 | 北京集创北方科技股份有限公司 | Localization method and device, storage medium, the electronic device of position of touch |
CN111649786A (en) * | 2020-06-03 | 2020-09-11 | 东莞深证通信息技术有限公司 | Data accumulation method and device, terminal equipment and storage medium |
CN112860417A (en) * | 2019-11-27 | 2021-05-28 | 马上消费金融股份有限公司 | Data processing method, device, equipment, system and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272286A (en) * | 1998-05-22 | 2000-11-01 | 松下电器产业株式会社 | Block noise detector and block noise eliminator |
CN1774689A (en) * | 2003-04-16 | 2006-05-17 | 索尼爱立信移动通讯股份有限公司 | Direct digital frequency synthesizer for cellular wireless communication systems based on fast frequency-hopped spread spectrum technology |
US8325704B1 (en) * | 2007-05-16 | 2012-12-04 | Dust Networks, Inc. | Time correction and distance measurement in wireless mesh networks |
CN103457638A (en) * | 2013-09-11 | 2013-12-18 | 大连理工大学 | Device and method for suppressing burst noise in power line communication channel |
CN105591990A (en) * | 2016-03-14 | 2016-05-18 | 电子科技大学 | Method for suppressing impulse interference |
-
2017
- 2017-09-28 CN CN201710905904.2A patent/CN107579734B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1272286A (en) * | 1998-05-22 | 2000-11-01 | 松下电器产业株式会社 | Block noise detector and block noise eliminator |
CN1774689A (en) * | 2003-04-16 | 2006-05-17 | 索尼爱立信移动通讯股份有限公司 | Direct digital frequency synthesizer for cellular wireless communication systems based on fast frequency-hopped spread spectrum technology |
US8325704B1 (en) * | 2007-05-16 | 2012-12-04 | Dust Networks, Inc. | Time correction and distance measurement in wireless mesh networks |
CN103457638A (en) * | 2013-09-11 | 2013-12-18 | 大连理工大学 | Device and method for suppressing burst noise in power line communication channel |
CN105591990A (en) * | 2016-03-14 | 2016-05-18 | 电子科技大学 | Method for suppressing impulse interference |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117020A (en) * | 2018-07-19 | 2019-01-01 | 北京集创北方科技股份有限公司 | Localization method and device, storage medium, the electronic device of position of touch |
CN112860417A (en) * | 2019-11-27 | 2021-05-28 | 马上消费金融股份有限公司 | Data processing method, device, equipment, system and storage medium |
CN111649786A (en) * | 2020-06-03 | 2020-09-11 | 东莞深证通信息技术有限公司 | Data accumulation method and device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107579734B (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107579734A (en) | Signal processing method, device, storage medium and processor | |
CN104006962A (en) | Gear fault feature extraction method and system | |
CN111024650B (en) | Method and device for detecting gas concentration in glass medicine bottle based on signal sparse reconstruction | |
CN107561357A (en) | A kind of high-precision instantaneous frequency measurement method and apparatus based on channelizing | |
CN106767745A (en) | A kind of signal processing method of photoelectric sensor angle measuring system | |
CN114576568A (en) | Pipeline leakage detection method and device based on infrasonic waves | |
EP3462292B1 (en) | Method for determining touch position and touch control chip | |
CN104502701A (en) | Method and system for detecting electric power signal frequency based on phase modulation | |
CN107361763A (en) | Method and device for detecting R wave of electrocardiogram data | |
CN102792167A (en) | Speed detection device | |
CN102323481B (en) | Measuring apparatus for unstable harmonics and interharmonics | |
JP4789189B2 (en) | Emergency warning signal receiving apparatus and method | |
JP2003242130A (en) | Method of synchronizing collected data and data processing system | |
US9264277B2 (en) | Apparatus and method for detecting null symbols | |
CN110297127B (en) | Alternating current signal filtering method and device | |
CN104019844A (en) | Meter pointer jitter detection method based on fast Fourier transform | |
RU2522854C1 (en) | Method of demodulating minimum frequency-shift keying signals and apparatus for realsing said method | |
CN117713695A (en) | Signal detection method and system | |
US11372036B2 (en) | Sensor device | |
KR19990043005A (en) | Motor speed detection device using incremental encoder | |
TWI650945B (en) | Noise cancellation device | |
JP3036985B2 (en) | Spectrum calculation device | |
JPH073705Y2 (en) | Delay detection circuit | |
JP2556369B2 (en) | Overshoot position detection method for analog waveforms | |
CN118660246A (en) | Oversampling method, device, electronic device and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |