CN109062321A - A kind of signal creating method, equipment and storage medium - Google Patents

A kind of signal creating method, equipment and storage medium Download PDF

Info

Publication number
CN109062321A
CN109062321A CN201810866620.1A CN201810866620A CN109062321A CN 109062321 A CN109062321 A CN 109062321A CN 201810866620 A CN201810866620 A CN 201810866620A CN 109062321 A CN109062321 A CN 109062321A
Authority
CN
China
Prior art keywords
signal
frequency
combination
superimposed
basis
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
Application number
CN201810866620.1A
Other languages
Chinese (zh)
Other versions
CN109062321B (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.)
Goertek Optical Technology Co Ltd
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201810866620.1A priority Critical patent/CN109062321B/en
Publication of CN109062321A publication Critical patent/CN109062321A/en
Application granted granted Critical
Publication of CN109062321B publication Critical patent/CN109062321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/02Digital function generators
    • G06F1/022Waveform generators, i.e. devices for generating periodical functions of time, e.g. direct digital synthesizers

Abstract

The embodiment of the present application provides a kind of signal creating method, equipment and storage medium, wherein method includes: that will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;On the basis of the frequency of the basis signal, the frequency of other signals to be superimposed is adjusted, so that other signals to be superimposed are aligned with the basis signal;Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, to obtain the combination signal.In the embodiment of the present application, before carrying out Signal averaging, on the basis of the frequency of the basis signal at least two signals to be superimposed, the frequency of other signals to be superimposed is adjusted, so that other signals to be superimposed are aligned with the basis signal.This can effectively avoid after Signal averaging combination signal obtained in the sign mutation of signal period delivery position.

Description

A kind of signal creating method, equipment and storage medium
Technical field
This application involves signal processing technology field more particularly to a kind of signal creating methods, equipment and storage medium.
Background technique
MEMS (MEMS, Micro-Electro-Mechanical System), also referred to as mems System, micro-system, micromechanics etc. refer to size at several millimeters or even smaller high-tech device.
The driving signal of MEMS is the combination signal by sine wave signal and sawtooth signal combination producing.In order to obtain group Signal is closed, existing processing mode is usually: according to the corresponding time relationship of two signals to be superimposed, from two signals to be superimposed It is middle to be chosen respectively with the signal segment for the signal period equal length for combining signal as basic segment, the basic piece that will be selected Section is overlapped, to obtain complete combination signal.
But the combination signal obtained by existing processing mode, in the signal period delivery position warp of combination signal It is commonly present sign mutation, and MEMS is very sensitive to signal intensity, sign mutation will lead to MEMS and be unable to operate normally.
Summary of the invention
The many aspects of the application provide a kind of signal creating method, equipment and storage medium, to solve in the prior art Often there is sign mutation in signal period delivery position in the combination signal generated after Signal averaging.
The embodiment of the present application provides a kind of signal creating method, comprising:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, the frequency of other signals to be superimposed is adjusted, so that other letters to be superimposed It number is aligned with the basis signal;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, described in obtaining Combine signal.
The embodiment of the present application also provides a kind of electronic equipment, including memory and processor;
The memory is for storing computer program;
The processor executes the computer program in the memory, to be used for:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, the frequency of other signals to be superimposed is adjusted, so that other letters to be superimposed It number is aligned with the basis signal;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, described in obtaining Combine signal.
The embodiment of the present application also provides a kind of computer readable storage medium for storing computer instruction, when the computer When instruction is executed by one or more processors, one or more of processors is caused to execute following movement:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, the frequency of other signals to be superimposed is adjusted, so that other letters to be superimposed It number is aligned with the basis signal;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, described in obtaining Combine signal.
In the embodiment of the present application, before carrying out Signal averaging, with the basis signal at least two signals to be superimposed Frequency on the basis of, the frequency of other signals to be superimposed is adjusted, so that other signals to be superimposed are aligned with the basis signal.This So that when carrying out Signal averaging according to the basis signal and frequency other signals to be superimposed adjusted, basis signal Initial signal in the arbitrary signal period by with the initial signal point alignment in a certain signal period of other signals to be superimposed, Meanwhile the end signal point in the arbitrary signal period of basis signal by in a certain signal period of other signals to be superimposed End signal point alignment, this can effectively avoid after Signal averaging combination signal obtained in the signal of signal period delivery position Mutation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of signal creating method that one embodiment of the application provides;
Fig. 2 a is a kind of exemplary waveforms of basis signal in the embodiment of the present application;
Fig. 2 b is a kind of exemplary waveforms of other signals to be superimposed in the embodiment of the present application;
Fig. 3 is the signal to be superimposed in basis signal and Fig. 2 b in Fig. 2 a, is generated according to signal provided in this embodiment The waveform diagram for the combination signal that method obtains;
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that the another embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
In the prior art, sign mutation is frequently present of in the signal period delivery position of combination signal.For the prior art The existing above problem, the embodiment of the present application provide a solution: before carrying out Signal averaging, at least two to folded On the basis of the frequency of basis signal in plus signal, adjust the frequency of other signals to be superimposed so that other signals to be superimposed with Basis signal alignment.This carrying out Signal averaging according to basis signal and frequency other signals to be superimposed adjusted When, initial signal in the arbitrary signal period of basis signal by with rising in a certain signal period of other signals to be superimposed Beginning signal point alignment, meanwhile, end signal point in the arbitrary signal period of basis signal by with other signals to be superimposed certain End signal point alignment in one signal period, this can effectively avoid after Signal averaging combination signal obtained in the signal period The sign mutation of delivery position.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is a kind of signal creating method that one embodiment of the application provides.As shown in Figure 1, this method comprises:
100, basis signal will be determined as with the signal of frequency with required combination signal at least two signals to be superimposed;
101, on the basis of the frequency of basis signal, the frequency of other signals to be superimposed is adjusted, so that other letters to be superimposed It number is aligned with basis signal;
102, Signal averaging is carried out according to basis signal and frequency other signals to be superimposed adjusted, to be combined Signal.
Signal creating method provided in this embodiment can be applied to the various scenes for needing to generate combination signal, especially right The signal intensity of signal period delivery position is than more sensitive scene.For example, can be applied to generate the scene of MEMS driving signal, Certainly, other scenes are applied also for, the present embodiment is not construed as limiting this.
Wherein, basis signal refers to a signal to be superimposed of the taking-up according to selected by the frequency of required combination signal.Base The frequency of plinth signal is identical as the frequency for combining signal, and basis signal is all the smallest signals of signal intermediate frequency rate to be superimposed. When carrying out Signal averaging, for convenience of describing, Signal averaging process is considered as folding other signals to be superimposed in the present embodiment It adds in basis signal, it will be appreciated that, between each signal to be superimposed during Signal averaging and primary and secondary, elder generation is not present Equal sequence afterwards.
It is worth noting that signal to be superimposed can be two in the present embodiment, it is also possible to three, four or other Quantity, the quantity that the present embodiment treats superposed signal are not construed as limiting.For convenience of description, hereinafter it is with signal to be superimposed by emphasis Two situations carry out the detailed description of technical solution, it will be appreciated that, in addition to basis signal, other signals to be superimposed all may be used Using processing mode identical or after being adaptively adjusted.
According to the basis signal determined, it can be aligned using other signals to be superimposed with basis signal as target, adjust it The frequency of its signal to be superimposed.Frequency other signals to be superimposed adjusted will be aligned with basis signal.Wherein, alignment refers to base Initial signal in the arbitrary signal period of plinth signal and the initial signal in a certain signal period of other signals to be superimposed Point alignment, meanwhile, a certain signal week of end signal point and other signals to be superimposed in the arbitrary signal period of basis signal End signal point alignment in phase.
According to the basis signal and frequency other signals to be superimposed adjusted after alignment, carrying out Signal averaging can be obtained Obtain required combination signal.Combination signal obtained there would not be sign mutation in signal period delivery position.
For example, adjusted for first signal period of basis signal by frequency, other signals to be superimposed certain The end signal point of one signal period by with the end signal point alignment in the first of basis signal signal period, therefore, group Close signal first signal period end signal point amplitude by for basis signal first signal period in end The sum of the amplitude of the end signal point of a certain signal period of signaling point and other signals to be superimposed.For the second of basis signal It for a signal period, is adjusted by frequency, the initial signal of a certain signal period of other signals to be superimposed will be with basis Therefore initial signal point alignment in first signal period of signal combines the starting letter of second signal period of signal The amplitude of number point will be for a certain letter of initial signal and other signals to be superimposed in second signal period of basic signal The sum of the amplitude of the starting beam signaling point in number period.In this way, first signal period and second signal period of combination signal Delivery position on signal segment will be smoother, and comply fully with basis signal signal period delivery position signal become The signal intensity trend of the signal period delivery position of change trend and other signals to be superimposed.
Example in undertaking, when according to existing Signal averaging mode, according to the frequency of each signal to be superimposed, basis signal In a certain signal period that may be other signals to be superimposed being superimposed on the end signal point of first signal period 5th signaling point (being located in preceding half period), the 10th signaling point (minimum point in the period) or the 12nd signal Point (being located in second half of the cycle) etc., and will then be opened again in the initial signal of second signal period of basis signal Begin to be superimposed the initial signal in the signal period of other signals to be superimposed.Therefore, according to existing Signal averaging mode, combination The amplitude of the end signal point of first signal period of signal may be the end in first signal period of basic signal The sum of the amplitude of the smallest signaling point of amplitude of a certain signal period of signaling point and other signals to be superimposed;Combine the of signal The amplitude of the initial signal of two signal periods is then initial signal in second signal period of basic signal and its The sum of the amplitude of initial signal of signal period of its signal to be superimposed.Obviously, it is obtained according to existing Signal averaging mode Combination signal by signal period delivery position, there are the jump of amplitude, this causes the signal period for combining signal to join position The place of setting will be frequently present of sign mutation.
Fig. 2 a is a kind of exemplary waveforms of basis signal in the embodiment of the present application.Fig. 2 b is in the embodiment of the present application A kind of exemplary waveforms of other signals to be superimposed.Fig. 3 is the signal to be superimposed in basis signal and Fig. 2 b in Fig. 2 a, is pressed According to the waveform diagram for the combination signal that signal creating method provided in this embodiment obtains.Combination signal shown in Fig. 3 is in signal week The mutation of phase delivery position no signal.
In the embodiment of the present application, before carrying out Signal averaging, with the basis signal at least two signals to be superimposed Frequency on the basis of, the frequency of other signals to be superimposed is adjusted, so that other signals to be superimposed are aligned with basis signal.This makes When carrying out Signal averaging according to basis signal and frequency other signals to be superimposed adjusted, the arbitrary signal of basis signal The initial signal in period by the initial signal point alignment of a certain signal period with other signals to be superimposed, meanwhile, basis letter Number the arbitrary signal period end signal point by the end signal point alignment of a certain signal period with other signals to be superimposed, This can effectively avoid after Signal averaging combination signal obtained in the sign mutation of signal period delivery position.
In above-mentioned or following embodiments, in order to realize that other signals to be superimposed are aligned with basis signal, it can calculate other The frequency ratio of signal to be superimposed and basis signal;If frequency ratio is non-integer, an integer value is determined based on frequency ratio; It is equal to integer value as target using frequency ratio, on the basis of the frequency of basis signal, adjusts the frequency of other signals to be superimposed.
In the present embodiment, according to the frequency ratio of other signals to be superimposed and basis signal, it may be determined that when going out Signal averaging Need to be superimposed to the signal period number on a signal period of basis signal in other signals to be superimposed.When other to be superimposed When the frequency of signal is the integral multiple of the frequency of basis signal, which will be integer, when the frequency of other signals to be superimposed When rate is not the integral multiple of the frequency of basis signal, which will be non-integer.The case where being integer for frequency ratio, Basis signal will be aligned with other signals to be superimposed, can be not necessarily to adjust the frequency of other signals to be superimposed.For frequency ratio The case where value is non-integer, other signals to be superimposed are then misaligned with basis signal, and the present embodiment can adjust other letters to be superimposed Number frequency, that is to say the time span for adjusting the signal period of other signals to be superimposed so that the frequency ratio be integer, frequency Rate other signals to be superimposed adjusted will be aligned with basis signal.
When the frequency ratio is non-integer, it can increase or reduce other signals to be superimposed according to the frequency ratio result Frequency.In an optional implementation, it can be characterized within a signal period of other signals to be superimposed with N number of signaling point Signal segment in the signal period, N number of signaling point are uniformly distributed, and can characterize a signal period of other signals to be superimposed The signal attributes such as the range value engraved when signal moment in interior signal segment, each signal.When other signals to be superimposed with When the frequency ratio of basis signal is P, the signal in a signal period of basis signal can determine that according to the product of P and N The initial number M of signaling point in segment.To M and N complementation, to obtain remainder Q, other signals to be superimposed can adjust according to remainder Q Frequency.
Two kinds of situations will be present with the remainder Q after N complementation in M:
In the first case, the M and remainder Q after N complementation is less than N/2.It in this case can be from one of basis signal Q signaling point is deleted in M signaling point in signal period, under the premise of keeping fundamental signal frequency constant, according to basis The waveform of signal walk will definitely remaining (M-Q) a signaling point rearrangement to being uniformly distributed.By (P*N) of other signals to be superimposed A signaling point is aligned with (M-Q) a signaling point of basis signal, at this point, the frequency of other signals to be superimposed will be reduced.
In second situation, M is greater than N/2 with the remainder Q after N complementation.It in this case can be at one of basis signal Increase Q signaling point on the basis of M signaling point in signal period, under the premise of keeping fundamental signal frequency constant, root According to the waveform of basis signal walk will definitely (M+Q) a signaling point rearrangement to being uniformly distributed.By (P*N) of other signals to be superimposed A signaling point is aligned with (M+Q) a signaling point of basis signal, at this point, the frequency of other signals to be superimposed will be increased.
Certainly, other frequency adjustment modes also can be used in the present embodiment, such as according to other signals to be superimposed and basis The frequency ratio of signal determines frequency scaling of other signals to be superimposed etc., and the present embodiment is not construed as limiting this.
After to other signal making frequency adjustments to be superimposed, can according to basis signal and frequency it is adjusted it is other to Superposed signal carries out Signal averaging, to obtain combination signal.Wherein, various ways can be used to carry out Signal averaging and combined Signal will be described in detail Signal averaging process in the form of multiple embodiments below.
It, can be from the signal segment selected in basis signal in a signal period as benchmark week in an alternative embodiment Phase signal, and select the signal segment in several signal periods as to folded from frequency other signals to be superimposed adjusted Plus signal segment, several signal periods are identical as the time span of the signal period of basis signal;According to signal alignment principle, Signal segment to be superimposed and reference cycle signal are subjected to Signal averaging, to obtain the combination signal segment of a signal period, And combination signal segment is stored to buffer area;According to the frequency of combination signal, circulation exports the combination signal patch in buffer area Duan Zuowei combines the combination signal segment in the follow-up signal period of signal, to generate combination signal.
In the present embodiment, reference cycle signal can be the signal segment in basis signal in any one complete cycle, Such as can be signal segment in first signal period of basis signal, it is of course also possible to be other letters of basis signal Signal segment in number period, the present embodiment are not construed as limiting this.To improve signal processing efficiency, in the present embodiment, benchmark week Phase signal is preferably the signal segment in first signal period of basis signal.Based on this, it can be achieved that from the of reference signal A cycle starts to carry out Signal averaging in a manner of Signal averaging provided in this embodiment.
Signal segment to be superimposed is to need the signal segment being superimposed on reference cycle signal in other signals to be superimposed.It is practical In, in order to save data processing amount, the signal patch in other signals to be superimposed in any one signal period can be only acquired The corresponding data of section, using the signal segment as the corresponding reference signal segment of other signals to be superimposed.It, can in Signal averaging The reference signal segment is repeatedly called, is sequentially superimposed on reference cycle signal, that is to say, signal segment to be superimposed can be one Virtual signal segment, rather than the actual signal segment acquired from other signals to be superimposed.This can effectively reduce data acquisition Amount improves conversion speed.
In the present embodiment, the signal in basis signal and other signals to be superimposed in a signal period need to be only acquired respectively Combination signal can be realized using the signal segment in a signal period in basis signal and other signals to be superimposed in segment It generates, effectively reduces data processing amount.And it need to only store in basis signal and other signals to be superimposed in a signal period Signal segment, reduce EMS memory occupation.Particularly in the very small scene of this memory size of microprocessor, can effectively delay Solve memory pressure.
Frequency other signals to be superimposed adjusted will be aligned with basis signal, therefore, reference cycle signal also will with to The alignment of superposed signal segment, that is to say the initial signal of reference cycle signal and the initial signal pair of signal segment to be superimposed Together, the end signal point alignment of the end signal point of reference cycle signal and signal segment to be superimposed.Due to reference signal and group The frequency for closing signal is identical, therefore, the time span of reference cycle signal will corresponding combination signal a signal period when Between length, in this way, can get in combination signal one after carrying out Signal averaging to reference cycle signal and signal segment to be superimposed Combination signal segment in signal period.
The combination signal segment of acquisition will be stored to buffer area, for subsequent calls.Due to basis signal, other to be superimposed Signal and combination signal are all periodic signals, and therefore, the combination signal segment combined in each signal period of signal will be identical. Based on this, in the present embodiment, the combination signal segment in buffer area can be exported according to the frequency of combination signal, circulation as combination Combination signal segment in the follow-up signal period of signal, to can produce combination signal.
Combination signal segment may include several signaling points, several signaling points combine signal segment for characterizing, and every A signaling point includes the signal attribute informations such as the amplitude at signal location and the signal location.In buffer area, signal is combined Segment can be stored in the form of the signaling point of several arranged in sequence.It accordingly, can be according to the frequency of combination signal in the present embodiment And the signal points that the combination signal segment in buffer area includes, the triggering frequency of timer is set;It is slow according to circulation output The mode of the combination signal segment in area is deposited, per when the timer is triggered, sequentially exports the combination signal segment in buffer area A signaling point for including, to obtain the combination signal segment in the follow-up signal period of combination signal.
Wherein, the frequency and the combination signal segment in buffer area that the triggering frequency of timer may be set to combination signal The product value for the signal points for including.Often when the timer is triggered, the combination signal segment packet in buffer area will sequentially be exported Next the signaling point contained exports if currently exporting is the last one signaling point for combining signal segment and including It will be first signaling point for combining signal segment and including, so circulation output can obtain the follow-up signal period of combination signal Interior combination signal segment, to can produce combination signal.When first signal period that reference cycle signal is basic signal Signal segment when, buffer area storage by be combine signal first signal period in combination signal segment, therefore, group Closing the combination signal segment in the follow-up signal period of signal can be obtained by the combination signal segment in circulation output buffer area ?.
Circulation output can be realized in such a way that timers trigger is interrupted, often when the timer is triggered, at triggering Reason device sequentially exports the signaling point that the combination signal segment in buffer area includes.But combination letter higher for frequency For number, the triggering frequency of timer will be relatively high, this causes circulation output process that will forcibly occupy processor resource, so that in this phase Between processor can not execute other operations, reduce the resource utilization of processor.In this regard, in the present embodiment, when needing to generate It, can be to DMA (Direct Memory Access) controller when combining the combination signal segment in the follow-up signal period of signal Transmission instruction is sent, is sequentially read from the combination signal segment in buffer area with controlling dma controller when timer is triggered It takes a signaling point and exports, to obtain the combination signal segment in the follow-up signal period of combination signal.
Data in buffer area directly can be carried to outside by dma controller, and therefore, circulation output process will be without processing Device participates in data and carries.After circulation output starting, dma controller can execute data according to the triggering frequency of timer and carry, It that is to say, per when the timer is triggered, dma controller reads a signaling point simultaneously from the combination signal segment in buffer area Output.In this way, during circulation output timer interruption will be no longer dependent on, data are participated in without processor and are carried, are avoided The problem that processor resource utilization rate is low caused by processor is forcibly occupied for a long time, in particular for the higher combination letter of frequency Number, by the resource occupation of effective liberation processor.
In another alternative embodiment, when the frequency for combining signal is lower than predeterminated frequency threshold value, it is preset fixed to be based on When device interruption frequency, carried out when timers trigger is interrupted according to basis signal and frequency other signals to be superimposed adjusted Signal averaging, to generate combination signal.In the present embodiment, predeterminated frequency threshold value can be set according to the processing capacity of processor, when When the processing capacity of processor can satisfy the frequency requirement of combination signal, processing mode provided in this embodiment can be used and carry out Signal averaging processing.
Combination signal may include several signaling points, several signaling points are for characterizing combination signal, and each signaling point Include the signal attribute informations such as amplitude at signal location and the signal location.In the present embodiment, timer interruption frequency can It is set as combining the product value of the signal points in a signal period of the frequency of signal and combination signal.Whenever timer touches When hair interrupts, can sequentially it be counted according to basis signal and frequency other signals to be superimposed adjusted according to signal alignment principle It calculates and exports a signaling point on combination signal, to generate combination signal.
It, accordingly, can in the present embodiment since basis signal, other signals to be superimposed and combination signal are periodic signal From the signal segment selected in basis signal in a signal period as reference cycle signal, and it is adjusted other from frequency Select signal segment in several signal periods as signal segment to be superimposed in signal to be superimposed, several signal periods with The time span of the signal period of basis signal is identical;Based on preset timer interruption frequency, according to cycle calculations and export The mode for combining several signaling points in a signal period of signal, when being interrupted timers trigger, according to benchmark week Phase signal and signal segment to be superimposed sequentially calculate according to signal alignment principle and export a signal period of combination signal An interior signaling point, to obtain combination signal.
In the present embodiment, reference cycle signal can be the signal segment in basis signal in any one complete cycle, Such as can be signal segment in first signal period of basis signal, it is of course also possible to be other letters of basis signal Signal segment in number period, the present embodiment are not construed as limiting this.To improve signal processing efficiency, in the present embodiment, benchmark week Phase signal is preferably the signal segment in first signal period of basis signal.Based on this, it can be achieved that from the of reference signal A cycle starts to carry out Signal averaging in a manner of Signal averaging provided in this embodiment.
Signal segment to be superimposed is to need the signal segment being superimposed on reference cycle signal in other signals to be superimposed.It is practical In, in order to save data processing amount, the signal patch in other signals to be superimposed in any one signal period can be only acquired The corresponding data of section, using the signal segment as the corresponding reference signal segment of other signals to be superimposed.It, can in Signal averaging The reference signal segment is repeatedly called, is sequentially superimposed on reference cycle signal, that is to say, signal segment to be superimposed can be one Virtual signal segment, rather than the actual signal segment acquired from other signals to be superimposed.This can effectively reduce data acquisition Amount improves conversion speed.
Frequency other signals to be superimposed adjusted will be aligned with basis signal, therefore, reference cycle signal also will with to The alignment of superposed signal segment, that is to say the initial signal of reference cycle signal and the initial signal pair of signal segment to be superimposed Together, the end signal point alignment of the end signal point of reference cycle signal and signal segment to be superimposed.Due to reference signal and group The frequency for closing signal is identical, therefore, the time span of reference cycle signal will corresponding combination signal a signal period when Between length.
In the present embodiment, combines in a signal period of signal comprising several signaling points, combine a letter of signal Signaling point in number period will be corresponded with the signaling point in reference cycle signal, and the signaling point in reference cycle signal is then It is corresponded with the signaling point in signal segment to be superimposed, in this way, carrying out letter to reference cycle signal and signal segment to be superimposed When number superposition, it can get several signaling points in combination signal in a signal period.In the present embodiment, whenever timer touches When hair interrupts, according to reference cycle signal and signal segment to be superimposed, is sequentially calculated according to signal alignment principle and export one A signaling point, it is next if currently calculating and exporting the last one signaling point in a signal period for being combination signal When secondary timers trigger is interrupted, then first signaling point in a signal period of combination signal is calculated and exports, with this Cycle calculations and the mode for exporting several signaling points in a signal period for combining signal, can obtain combination signal.
In the present embodiment, the signal in basis signal and other signals to be superimposed in a signal period need to be only acquired respectively Combination signal can be realized using the signal segment in a signal period in basis signal and other signals to be superimposed in segment It generates, effectively reduces data processing amount.And it need to only store in basis signal and other signals to be superimposed in a signal period Signal segment, reduce EMS memory occupation.Particularly in the very small scene of this memory size of microprocessor, can effectively delay Solve memory pressure.
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that another embodiment of the application provides.As shown in figure 4, the electronics Equipment includes: memory 40 and processor 41;
Memory 40 can be configured to store various other data to support to set in server in storage computer program Standby upper operation.The example of these data includes the finger of any application or method for operating on server apparatus It enables, contact data, telephone book data, message, picture, video etc..
Memory 40 is realized by any kind of volatibility or non-volatile memory device or their combination, such as static Random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or light Disk.
Processor 41 is coupled with memory 40, for executing the computer program in memory 40, to be used for:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of basis signal, adjust the frequency of other signals to be superimposed so that other signals to be superimposed with Basis signal alignment;
Signal averaging is carried out according to basis signal and frequency other signals to be superimposed adjusted, to obtain combination letter Number.
In the embodiment of the present application, before carrying out Signal averaging, with the basis signal at least two signals to be superimposed Frequency on the basis of, the frequency of other signals to be superimposed is adjusted, so that other signals to be superimposed are aligned with basis signal.This makes When carrying out Signal averaging according to basis signal and frequency other signals to be superimposed adjusted, the arbitrary signal of basis signal The initial signal in period by the initial signal point alignment of a certain signal period with other signals to be superimposed, meanwhile, basis letter Number the arbitrary signal period end signal point by the end signal point alignment of a certain signal period with other signals to be superimposed, This can effectively avoid after Signal averaging combination signal obtained in the sign mutation of signal period delivery position.
In an alternative embodiment, processor 41 adjusts other signals to be superimposed on the basis of by the frequency of basis signal Frequency be used for when so that other signals to be superimposed being aligned with basis signal:
Calculate the frequency ratio of other signals to be superimposed and basis signal;
If frequency ratio is non-integer, an integer value is determined based on frequency ratio;
It is equal to integer value as target using frequency ratio, on the basis of the frequency of basis signal, adjusts other signals to be superimposed Frequency.
In an alternative embodiment, processor 41 is according to basis signal and frequency other signals to be superimposed adjusted Signal averaging is carried out, when combining signal to obtain, is used for:
From the signal segment selected in basis signal in a signal period as reference cycle signal, and adjusted from frequency Select the signal segment in several signal periods as signal segment to be superimposed, several letters in other signals to be superimposed afterwards Number period is identical as the time span of the signal period of basis signal;
According to signal alignment principle, signal segment to be superimposed and reference cycle signal are subjected to Signal averaging, to obtain one The combination signal segment of a signal period, and combination signal segment is stored to buffer area;
According to the frequency of combination signal, circulation exports subsequent letter of the combination signal segment as combination signal in buffer area Combination signal segment in number period, to generate combination signal.
In an alternative embodiment, as shown in figure 4, the electronic equipment further include: timer 45;
Combination signal segment of the processor 41 in the frequency according to combination signal, circulation output buffer area is as combination letter Number the follow-up signal period in combination signal segment when, be used for:
The signal points for including according to the combination signal segment in the frequency of combination signal and buffer area, are arranged timer 45 triggering frequency;
It is sequentially defeated when being triggered timer 45 in the way of the combination signal segment in circulation output buffer area The signaling point that combination signal segment in buffer area includes out, to obtain the combination in the follow-up signal period of combination signal Signal segment;
Timer 45 is used for, and according to triggering frequency, triggering processor sequentially exports the combination signal segment packet in buffer area The signaling point contained.
In an alternative embodiment, as shown in Fig. 2, the electronic equipment further include: dma controller 46;
Processor 41 by circulation output buffer area in combination signal segment in the way of, whenever timer 45 is triggered When, the signaling point that the combination signal segment in buffer area includes is exported, sequentially to obtain the follow-up signal week of combination signal When combination signal segment in the phase, it is used for:
When the combination signal segment in the follow-up signal period for needing to generate combination signal, sent to dma controller 46 Transmission instruction;
Dma controller 46 is used for, in the way of the combination signal segment in circulation output buffer area, whenever customizer 45 When being triggered, a signaling point is sequentially read from the combination signal segment in buffer area and is exported, to obtain combination signal Combination signal segment in the follow-up signal period.
In an alternative embodiment, processor 41 is according to basis signal and frequency other signals to be superimposed adjusted Signal averaging is carried out, when combining signal to obtain, is used for:
When the frequency for combining signal is lower than predeterminated frequency threshold value, it is based on preset timer interruption frequency, in timer Signal averaging is carried out according to basis signal and frequency other signals to be superimposed adjusted when triggering is interrupted, to generate combination letter Number;Wherein, timer interruption frequency is with the frequency that combines signal and the signal that combines in signal period of signal is counted phase It closes.
In an alternative embodiment, processor 41 is being based on preset timer interruption frequency, interrupts in timers trigger When according to basis signal and frequency other signals to be superimposed adjusted carry out Signal averagings, when combining signal to generate, use In:
From the signal segment selected in basis signal in a signal period as reference cycle signal, and adjusted from frequency Select the signal segment in several signal periods as signal segment to be superimposed, several letters in other signals to be superimposed afterwards Number period is identical as the time span of the signal period of basis signal;
Based on preset timer interruption frequency, according to cycle calculations and export in a signal period for combining signal The mode of several signaling points, according to reference cycle signal and signal segment to be superimposed, is pressed when being interrupted timers trigger A signaling point in a signal period of combination signal is calculated and exports, sequentially according to signal alignment principle to obtain combination letter Number.
Further, as shown in figure 4, the control equipment further include: communication component 43, display 44, power supply module 45 etc. its Its component.Members are only schematically provided in Fig. 4, are not meant to that control equipment only includes component shown in Fig. 4.
Wherein, wired or wireless side between equipment and other equipment where communication component 42 is configured to facilitate communication component The communication of formula.Equipment where communication component can access the wireless network based on communication standard, such as WiFi, 2G or 3G or they Combination.In one exemplary embodiment, communication component 42 is received via broadcast channel from external broadcasting management system Broadcast singal or broadcast related information.In one exemplary embodiment, communication component further includes near-field communication (NFC) module, To promote short range communication.For example, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
Wherein, display 43 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).Such as Fruit screen includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel packet One or more touch sensors are included to sense the gesture on touch, slide, and touch panel.The touch sensor can not The boundary of a touch or slide action is only sensed, but also detects duration associated with the touch or slide operation and pressure Power.
Wherein, power supply module 44, the various assemblies of equipment provide electric power where power supply module.Power supply module may include Power-supply management system, one or more power supplys and other are related to electric power is generated, managed, and distributed for equipment where power supply module The component of connection.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, meter Calculation machine program, which is performed, can be realized each step that can be executed by electronic equipment in above method embodiment.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (11)

1. a kind of signal creating method characterized by comprising
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, adjust the frequency of other signals to be superimposed so that other signals to be superimposed with The basis signal alignment;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, to obtain the combination Signal.
2. the method according to claim 1, wherein described on the basis of the frequency of the basis signal, adjustment The frequency of other signals to be superimposed, so that other signals to be superimposed are aligned with the basis signal, comprising:
Calculate the frequency ratio of the other signals to be superimposed and the basis signal;
If the frequency ratio is non-integer, an integer value is determined based on the frequency ratio;
Using the frequency ratio be equal to the integer value as target, on the basis of the frequency of the basis signal, adjust it is other to The frequency of superposed signal.
3. the method according to claim 1, wherein described adjusted according to the basis signal and frequency Other signals to be superimposed carry out Signal averaging, to obtain the combination signal, comprising:
From the signal segment in a signal period is selected in the basis signal as reference cycle signal, and from the frequency Select the signal segment in several signal periods as signal segment to be superimposed in other signals to be superimposed adjusted, it is described Several signal periods are identical as the time span of the signal period of the basis signal;
According to signal alignment principle, the signal segment to be superimposed and the reference cycle signal are subjected to Signal averaging, to obtain The combination signal segment of a signal period is obtained, and the combination signal segment is stored to buffer area;
According to the frequency of the combination signal, circulation exports the combination signal segment in the buffer area as the combination signal The follow-up signal period in combination signal segment, to generate the combination signal.
4. according to the method described in claim 3, it is characterized in that, the frequency according to the combination signal, circulation output Combination signal segment in the buffer area is as the combination signal segment in the follow-up signal period of the combination signal, packet It includes:
According to the signal points that the combination signal segment in the frequency of the combination signal and the buffer area includes, setting is fixed When device triggering frequency;
In the way of the combination signal segment that circulation exports in the buffer area, per when the timer is triggered, sequentially export The signaling point that combination signal segment in the buffer area includes, to obtain in the follow-up signal period of the combination signal Combination signal segment.
5. according to the method described in claim 4, it is characterized in that, the combination letter exported according to circulation in the buffer area The mode of number segment sequentially exports one that the combination signal segment in the buffer area includes per when the timer is triggered Signaling point, to obtain the combination signal segment in the follow-up signal period of the combination signal, comprising:
When the combination signal segment in the follow-up signal period for needing to generate the combination signal, sends and pass to dma controller Defeated instruction, to control the dma controller when timer is triggered sequentially from the combination signal segment in the buffer area It reads a signaling point and exports, to obtain the combination signal segment in the follow-up signal period of the combination signal.
6. the method according to claim 1, wherein described adjusted according to the basis signal and frequency Other signals to be superimposed carry out Signal averaging, to obtain the combination signal, comprising:
When the frequency of the combination signal is lower than predeterminated frequency threshold value, it is based on preset timer interruption frequency, described fixed When device triggering carry out Signal averagings according to the basis signal and frequency other signals to be superimposed adjusted when interrupting, to produce The raw combination signal;Wherein, the one of the timer interruption frequency and the frequency for combining signal and the combination signal Signal in a signal period is counted related.
7. according to the method described in claim 6, it is characterized in that, described be based on preset timer interruption frequency, described Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted when timers trigger is interrupted, with Generate the combination signal, comprising:
From the signal segment in a signal period is selected in the basis signal as reference cycle signal, and from the frequency Select the signal segment in several signal periods as signal segment to be superimposed in other signals to be superimposed adjusted, it is described Several signal periods are identical as the time span of the signal period of the basis signal;
Based on preset timer interruption frequency, according to cycle calculations and export the combination signal a signal period group The mode for closing signal segment, when being interrupted timers trigger, according to the reference cycle signal and the signal to be superimposed Segment calculates and exports the signaling point that the combination signal segment includes, sequentially according to signal alignment principle to obtain State combination signal.
8. a kind of electronic equipment, which is characterized in that including memory and processor;
The memory is for storing computer program;
The processor executes the computer program in the memory, to be used for:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, adjust the frequency of other signals to be superimposed so that other signals to be superimposed with The basis signal alignment;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, to obtain the combination Signal.
9. electronic equipment according to claim 8, which is characterized in that the processor is according to the basis signal and frequency Rate other signals to be superimposed adjusted carry out Signal averaging, to obtain the combination signal, comprising:
From the signal segment in a signal period is selected in the basis signal as reference cycle signal, and from the frequency Select the signal segment in several signal periods as signal segment to be superimposed in other signals to be superimposed adjusted, it is described Several signal periods are identical as the time span of the signal period of the basis signal;
According to signal alignment principle, the signal segment to be superimposed and the reference cycle signal are subjected to Signal averaging, to obtain The combination signal segment of a signal period is obtained, and the combination signal segment is stored to buffer area;
According to the frequency of the combination signal, circulation exports the combination signal segment in the buffer area as the combination signal The follow-up signal period in combination signal segment, to generate the combination signal.
10. electronic equipment according to claim 9, which is characterized in that further include timer and dma controller;
The processor exports the combination signal segment conduct in the buffer area in the frequency according to the combination signal, circulation It is described combination signal the follow-up signal period in combination signal segment when, be used for:
According to the signal points that the combination signal segment in the frequency of the combination signal and the buffer area includes, work as needs When generating the combination signal segment in the follow-up signal period of the combination signal, is sent to dma controller and read instruction;
The timer is used for, and according to the triggering frequency, triggers the dma controller from the combination signal in the buffer area A signaling point is read in segment and is exported;
The dma controller is used for, in the way of the combination signal segment that circulation exports in the buffer area, whenever described fixed When device processed is triggered, a signaling point is sequentially read from the combination signal segment in the buffer area and is exported, to obtain State the combination signal segment in the follow-up signal period of combination signal.
11. a kind of computer readable storage medium for storing computer instruction, which is characterized in that when the computer instruction is by one When a or multiple processors execute, one or more of processors is caused to execute following movement:
It will be determined as basis signal with the signal of frequency with required combination signal at least two signals to be superimposed;
On the basis of the frequency of the basis signal, adjust the frequency of other signals to be superimposed so that other signals to be superimposed with The basis signal alignment;
Signal averaging is carried out according to the basis signal and frequency other signals to be superimposed adjusted, to obtain the combination Signal.
CN201810866620.1A 2018-08-01 2018-08-01 Signal generation method, equipment and storage medium Active CN109062321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866620.1A CN109062321B (en) 2018-08-01 2018-08-01 Signal generation method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866620.1A CN109062321B (en) 2018-08-01 2018-08-01 Signal generation method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109062321A true CN109062321A (en) 2018-12-21
CN109062321B CN109062321B (en) 2020-10-09

Family

ID=64832580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866620.1A Active CN109062321B (en) 2018-08-01 2018-08-01 Signal generation method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109062321B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101796575A (en) * 2007-09-06 2010-08-04 富士通株式会社 Sound signal generating method, sound signal generating device, and computer program
CN101989890A (en) * 2009-07-31 2011-03-23 华为技术有限公司 Method and device for superimposing coding
US20110153703A1 (en) * 2003-06-17 2011-06-23 Robinson Gaudino Caputo System and method of generating complex waveforms
US8575973B1 (en) * 2012-05-25 2013-11-05 Smsc Holdings S.A.R.L. Frequency synthesizer with zero deterministic jitter
CN103929173A (en) * 2014-04-11 2014-07-16 华为技术有限公司 Frequency divider and wireless communication device
CN106506872A (en) * 2016-11-02 2017-03-15 腾讯科技(深圳)有限公司 Talking state detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153703A1 (en) * 2003-06-17 2011-06-23 Robinson Gaudino Caputo System and method of generating complex waveforms
CN101796575A (en) * 2007-09-06 2010-08-04 富士通株式会社 Sound signal generating method, sound signal generating device, and computer program
CN101989890A (en) * 2009-07-31 2011-03-23 华为技术有限公司 Method and device for superimposing coding
US8575973B1 (en) * 2012-05-25 2013-11-05 Smsc Holdings S.A.R.L. Frequency synthesizer with zero deterministic jitter
CN103929173A (en) * 2014-04-11 2014-07-16 华为技术有限公司 Frequency divider and wireless communication device
CN106506872A (en) * 2016-11-02 2017-03-15 腾讯科技(深圳)有限公司 Talking state detection method and device

Also Published As

Publication number Publication date
CN109062321B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
EP3552365B1 (en) Blockchain-based data processing method and device
CN105389111B (en) A kind of operating method and electronic equipment of split screen display available
CN103366717B (en) Display packing, Apparatus and system
US20140215242A1 (en) Wearable Device-Aware Supervised Power Management for Mobile Platforms
CN104394278A (en) Method, device and mobile terminal for regulating screen brightness
KR20140113392A (en) Systems and Methods for Syncing Haptic Feedback Calls
CN107517000B (en) Method and device for controlling frequency jitter of switching signal of power circuit and readable storage medium
CN104702278A (en) Methods and device for calibrating frequencies
KR20160150100A (en) Method and apparatus for processing application installation package
CN113301075B (en) Flow control method, distributed system, device and storage medium
CN106303652B (en) A kind of method for drafting and device of interface element
CN104598034A (en) Information processing method and information processing equipment
CN113315671A (en) Flow rate limit and information configuration method, routing node, system and storage medium
CN103197754A (en) Method and device for reducing chip power consumption
CN109062321A (en) A kind of signal creating method, equipment and storage medium
CN109063645A (en) A kind of filtering method, equipment and storage medium
CN111633344B (en) Flight cutting control method, controller, device and storage medium
CN106094408B (en) Image quality parameter adaptive adjusting method, device and laser projection device
CN106850953B (en) Volume adjusting method, device and terminal
CN110968377B (en) Interface display processing method and device
CN108769152A (en) Service flushing policy registration, service refresh requests method, apparatus and equipment
CN104579211A (en) Volume control method and device
CN104581352B (en) The method and system of fast positioning in a kind of TV box
US20130223507A1 (en) Generating pulse width modulated signals
Master et al. Service rate control for jobs with decaying value

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201014

Address after: 261031 north of Yuqing street, east of Dongming Road, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronic office building)

Patentee after: GoerTek Optical Technology Co.,Ltd.

Address before: 261031 No. 268 Dongfang Road, Weifang hi tech Industrial Development Zone, Shandong, Weifang

Patentee before: GOERTEK Inc.