CN105635012A - Frequency-shift keying FSK waveform file generation method and device - Google Patents
Frequency-shift keying FSK waveform file generation method and device Download PDFInfo
- Publication number
- CN105635012A CN105635012A CN201510992503.6A CN201510992503A CN105635012A CN 105635012 A CN105635012 A CN 105635012A CN 201510992503 A CN201510992503 A CN 201510992503A CN 105635012 A CN105635012 A CN 105635012A
- Authority
- CN
- China
- Prior art keywords
- waveform
- fsk waveform
- sampling point
- amplitude
- fsk
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 108010076504 Protein Sorting Signals Proteins 0.000 claims abstract description 39
- 238000005070 sampling Methods 0.000 claims description 99
- 238000012545 processing Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 24
- 238000005516 engineering process Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000003278 mimic effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L27/00—Modulated-carrier systems
- H04L27/10—Frequency-modulated carrier systems, i.e. using frequency-shift keying
- H04L27/12—Modulator circuits; Transmitter circuits
- H04L27/122—Modulator circuits; Transmitter circuits using digital generation of carrier signals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Digital Transmission Methods That Use Modulated Carrier Waves (AREA)
Abstract
The invention discloses a frequency-shift keying FSK waveform file generation method and device. Waveform information and digital signal sequences required for generation of a FSK waveform are determined; a binary FSK waveform is generated according to the waveform information and the digital signal sequences; operation is performed on the binary FSK waveform according to a preset algorithm so that a hexadecimal FSK waveform is generated; whether the size of the hexadecimal FSK waveform is less than or equal to the size of a preset file is judged and a first judgment result is obtained; and when the first judgment result indicates that the size of the hexadecimal FSK waveform is less than or equal to the size of the preset file, a FSK waveform file is generated. The FSK waveform file generated by adopting the method and the device is suitable for various models of waveform signal generators.
Description
Technical field
The present invention relates to signal processing technology field, say more specifically, relate to generation method and the device of a kind of frequency shift keying fsk waveform file.
Background technology
FSK (Frequency-shiftkeying, frequency shift keying) waveform file is mainly used in REK (RomoteKeylessEntry, remote access control system) product waveform signal RF (RadioFrequency, radio frequency) test.
FSK waveform file of the prior art is the information of write algorithm and the corresponding FSK waveform utilizing MATLAB, is automatically generated by MATLAB. But, the waveform file adopting aforesaid method to generate only corresponding can be loaded into the waveform generator of a few models such as N5182A, and cannot be applied to the waveform generator of other types.
Consequently, it is desirable to research and develop a kind of algorithm being generated FSK waveform file by MATLAB so that the waveform file that this algorithm generates can be applicable to the waveform generator of various model.
Summary of the invention
In view of this, the present invention provides generation method and the device of a kind of frequency shift keying fsk waveform file, to overcome in prior art the information due to the write algorithm and corresponding FSK waveform that utilize MATLAB, automatically the waveform file generated by MATLAB only corresponding can be loaded into the waveform generator of a few models such as N5182A, and cannot be applied to the problem of the waveform generator of other types.
For achieving the above object, the present invention provides following technical scheme:
A generation method for frequency shift keying fsk waveform file, described method comprises:
Determine to generate the waveform information needed for FSK waveform and digital signal sequences;
Binary FSK waveform is generated according to described waveform information and described digital signal sequences;
According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform;
Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result;
When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file.
Preferably, described determine the waveform information needed for FSK waveform of generating, comprising:
Determine to generate the sample frequency fs needed for FSK waveform and sampling number N.
Preferably, described according to described waveform information and described digital signal sequences generation binary FSK waveform, comprising:
Described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB.
Preferably, described according to preset algorithm, described binary FSK waveform carried out computing and generates sexadecimal number system FSK waveform, comprising:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element;
S1032: extract the sampling point amplitude being numbered odd number;
S1033: extract the sampling point amplitude being numbered even number;
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number;
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1;
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767;
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin;
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
Preferably, described method also comprises:
When described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, repeat and described according to preset algorithm, described binary FSK waveform carried out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
A generating apparatus for frequency shift keying fsk waveform file, described device comprises:
Determining unit, generates the waveform information needed for FSK waveform and digital signal sequences for determining;
Binary FSK waveform generates unit, for generating binary FSK waveform according to described waveform information and described digital signal sequences;
Sexadecimal number system FSK waveform generates unit, for described binary FSK waveform being carried out computing according to preset algorithm, generates sexadecimal number system FSK waveform;
Whether judging unit, be less than for judging the size of described sexadecimal number system FSK waveform or equal default file size, and obtaining the first judged result;
FSK waveform file generating unit, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generating FSK waveform file.
Preferably, described determining unit specifically for:
Determine to generate the sample frequency fs needed for FSK waveform and sampling number N.
Preferably, described binary FSK waveform generate unit specifically for:
Described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB.
Preferably, described sexadecimal number system FSK waveform generate unit specifically for:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element;
S1032: extract the sampling point amplitude being numbered odd number;
S1033: extract the sampling point amplitude being numbered even number;
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number;
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1;
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767;
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin;
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
Preliminary election, described device also comprises:
Processing unit, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, trigger described sexadecimal number system FSK waveform to generate unit and repeat and described according to preset algorithm, described binary FSK waveform carries out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
Via above-mentioned technical scheme it will be seen that compared with prior art, the present invention discloses generation method and the device of a kind of frequency shift keying fsk waveform file, it is determined that generate the waveform information needed for FSK waveform and digital signal sequences; Binary FSK waveform is generated according to described waveform information and described digital signal sequences; According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform; Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result; When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file. The FSK waveform file adopting aforesaid method and device to generate can be applicable to the waveform generator of various model.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, it is briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
Fig. 1 is the schematic flow sheet of a kind of generation method of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of a kind of generation method of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of a kind of method that binary FSK waveform carries out computing generation sexadecimal number system FSK waveform according to preset algorithm disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of the generating apparatus of a kind of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the generating apparatus of disclosed another kind of frequency shift keying fsk waveform file of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Term " first " in the specification sheets of the present invention and claim book and above-mentioned accompanying drawing, " the 2nd " etc. are for distinguishing similar object, and need not be used for describing specific order or precedence. Should be appreciated that the term of use like this can exchange in the appropriate case, this is only describe in embodiments of the invention the differentiation mode adopted by the object of same alike result when describing. In addition, term " comprises " and " having " and their any distortion, intention is to cover does not arrange his comprising, to comprise the process of a series of unit, method, system, product or equipment being not necessarily limited to those unit, but can comprise that clearly do not list or for intrinsic other unit of these processes, method, product or equipment.
From background technology, due to the information of the write algorithm and corresponding FSK waveform that utilize MATLAB in prior art, automatically the waveform file generated by MATLAB only corresponding can be loaded into the waveform generator of a few models such as N5182A, and cannot be applied to the waveform generator of other types.
For this reason, the present invention discloses generation method and the device of a kind of frequency shift keying fsk waveform file, it is determined that generate the waveform information needed for FSK waveform and digital signal sequences; Binary FSK waveform is generated according to described waveform information and described digital signal sequences; According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform; Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result; When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file. The FSK waveform file adopting aforesaid method and device to generate can be applicable to the waveform generator of various model.
For enabling above-mentioned purpose, the feature and advantage of the present invention more become apparent, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Referring to accompanying drawing 1, the schematic flow sheet of a kind of generation method of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention, the method comprises the steps:
S101: determine to generate the waveform information needed for FSK waveform and digital signal sequences.
In the present embodiment, it is determined that the waveform information needed for generation FSK waveform at least comprise sample frequency fs, sampling number N and chip rate R. N=fs/R, R are steady state value, and sample frequency fs is more high, and waveform is more close to true waveform.
S102: generate binary FSK waveform according to described waveform information and described digital signal sequences.
In the present embodiment, described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB. Such as, digital signal sequences is Fd, and the FSKmode function of Calling MATLAB can be written as " S=FSKmode (Fd) ", generates binary FSK waveform by described digital signal sequences Fd.
S103: described binary FSK waveform is carried out computing according to preset algorithm, generates sexadecimal number system FSK waveform.
Sexadecimal number system FSK waveform in this step is the numerary signal of unsignshot type.
S104: judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result.
Optionally, described default file size is 1.2M.
S105: when described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generates FSK waveform file.
Present embodiment discloses a kind of generation method of frequency shift keying fsk waveform file, it is determined that generate the waveform information needed for FSK waveform and digital signal sequences; Binary FSK waveform is generated according to described waveform information and described digital signal sequences; According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform; Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result; When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file. The FSK waveform file adopting aforesaid method to generate can be applicable to the waveform generator of various model.
On the basis of above-mentioned embodiment disclosed by the invention, the invention also discloses the generation method of another kind of frequency shift keying fsk waveform file, describe especially by following embodiment.
Referring to accompanying drawing 2, the schematic flow sheet of a kind of generation method of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention, the method comprises the steps:
S201: determine to generate the waveform information needed for FSK waveform and digital signal sequences.
In the present embodiment, it is determined that the waveform information needed for generation FSK waveform at least comprise sample frequency fs, sampling number N and chip rate R. N=fs/R, R are steady state value, and sample frequency fs is more high, and waveform is more close to true waveform.
S202: generate binary FSK waveform according to described waveform information and described digital signal sequences.
In the present embodiment, described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB. Such as, digital signal sequences is Fd, and the FSKmode function of Calling MATLAB can be written as " S=FSKmode (Fd) ", generates binary FSK waveform by described digital signal sequences Fd.
S203: described binary FSK waveform is carried out computing according to preset algorithm, generates sexadecimal number system FSK waveform.
Sexadecimal number system FSK waveform in this step is the numerary signal of unsignshot type.
S204: judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result, when described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, perform S205, when described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, after then reducing described sample frequency fs and sampling number N, return and perform S203, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
S205: generate FSK waveform file.
Present embodiment discloses a kind of generation method of frequency shift keying fsk waveform file, it is determined that generate the waveform information needed for FSK waveform and digital signal sequences; Binary FSK waveform is generated according to described waveform information and described digital signal sequences; According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform; Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result; When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file; When described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, repeat and described according to preset algorithm, described binary FSK waveform carried out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size. The FSK waveform file adopting aforesaid method to generate can be applicable to the waveform generator of various model.
On the basis of above-mentioned embodiment disclosed by the invention, the invention also discloses a kind of specific implementation that according to preset algorithm, binary FSK waveform is carried out computing generation sexadecimal number system FSK waveform, will be described by following examples below.
Referring to accompanying drawing 3, the schematic flow sheet of a kind of method that binary FSK waveform carries out computing generation sexadecimal number system FSK waveform according to preset algorithm disclosed in the embodiment of the present invention, the method comprises the steps:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element.
Preferably, N number of sampling point is evenly distributed in each code element.
S1032: extract the sampling point amplitude being numbered odd number.
S1033: extract the sampling point amplitude being numbered even number.
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number.
Concrete, it is possible to being realized by function waveform=change (i, q, sampleshot), wherein, i is all variablees of odd numbered sequences, and q is all variablees in even order.
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1.
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767.
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin.
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
Above-mentioned embodiment disclosed by the invention describes method in detail, method for the present invention can adopt the device of various ways to realize, therefore the invention also discloses the generating apparatus of a kind of frequency shift keying fsk waveform file, provide specific embodiment below and be described in detail.
Referring to accompanying drawing 4, the structural representation of the generating apparatus of a kind of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention, this device comprises such as lower unit:
Determining unit 11, generates the waveform information needed for FSK waveform and digital signal sequences for determining;
Binary FSK waveform generates unit 12, for generating binary FSK waveform according to described waveform information and described digital signal sequences;
Sexadecimal number system FSK waveform generates unit 13, for described binary FSK waveform being carried out computing according to preset algorithm, generates sexadecimal number system FSK waveform;
Whether judging unit 14, be less than for judging the size of described sexadecimal number system FSK waveform or equal default file size, and obtaining the first judged result;
FSK waveform file generating unit 15, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generating FSK waveform file.
Described determining unit specifically for:
Determine to generate the sample frequency fs needed for FSK waveform and sampling number N.
Described binary FSK waveform generate unit specifically for:
Described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB.
Described sexadecimal number system FSK waveform generate unit specifically for:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element;
S1032: extract the sampling point amplitude being numbered odd number;
S1033: extract the sampling point amplitude being numbered even number;
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number;
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1;
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767;
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin;
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
It should be noted that, the concrete function of each unit above-mentioned realizes describing in embodiment of the method, and the present embodiment repeats no more.
Referring to accompanying drawing 5, the structural representation of the generating apparatus of another kind of frequency shift keying fsk waveform file disclosed in the embodiment of the present invention, this device, except comprising each unit disclosed in above-described embodiment, also comprises such as lower unit:
Processing unit 16, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, trigger described sexadecimal number system FSK waveform to generate unit and repeat and described according to preset algorithm, described binary FSK waveform carries out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
It should be noted that, the concrete function of each unit above-mentioned realizes describing in embodiment of the method, and the present embodiment repeats no more.
In sum:
The present invention discloses generation method and the device of a kind of frequency shift keying fsk waveform file, it is determined that generate the waveform information needed for FSK waveform and digital signal sequences; Binary FSK waveform is generated according to described waveform information and described digital signal sequences; According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform; Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result; When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file. The FSK waveform file adopting aforesaid method and device to generate can be applicable to the waveform generator of various model.
In this specification sheets, each embodiment adopts the mode gone forward one by one to describe, and what each embodiment emphasis illustrated is the difference with other embodiments, between each embodiment identical similar portion mutually see. For device disclosed in embodiment, owing to it corresponds to the method disclosed in Example, so what describe is fairly simple, relevant part illustrates see method part.
It should be noted that in addition, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or can also be distributed on multiple NE. Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme. In addition, in device embodiment accompanying drawing provided by the invention, the connection relational table between module shows to have communication connection between them, specifically can be implemented as one or more communication bus or signal wire. Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, the technician of art can be well understood to the present invention and can realize by the mode that software adds required general hardware, naturally it is also possible to comprises application specific integrated circuit, dedicated cpu, private memory, special components and parts etc. by specialized hardware and realizes. generally, all functions completed by computer program can realize with corresponding hardware easily, and, the concrete hardware structure being used for realizing same function can also be diversified, such as mimic channel, digital circuit or special circuit etc. but, under more susceptible for the purpose of the present invention condition, software program realization is better enforcement mode. based on such understanding, the technical scheme of the present invention in essence or says that part prior art contributed can embody with the form of software product, this computer software product is stored in the storage media that can read, such as the floppy disk of computer, USB flash disk, portable hard drive, read-only storage (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc., comprise some instructions with so that a computer equipment (can be Personal Computer, server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
In sum, above embodiment only in order to the technical scheme of the present invention to be described, is not intended to limit; Although with reference to above-described embodiment to invention has been detailed description, it will be understood by those within the art that: the technical scheme described in the various embodiments described above still can be modified by it, or wherein part technology feature is carried out equivalent replacement; And these amendments or replacement, do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.
Claims (10)
1. the generation method of a frequency shift keying fsk waveform file, it is characterised in that, described method comprises:
Determine to generate the waveform information needed for FSK waveform and digital signal sequences;
Binary FSK waveform is generated according to described waveform information and described digital signal sequences;
According to preset algorithm, described binary FSK waveform is carried out computing, generate sexadecimal number system FSK waveform;
Judge whether the size of described sexadecimal number system FSK waveform is less than or equals default file size, and obtain the first judged result;
When described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generate FSK waveform file.
2. method according to claim 1, it is characterised in that, described determine the waveform information needed for FSK waveform of generating, comprising:
Determine to generate the sample frequency fs needed for FSK waveform and sampling number N.
3. method according to claim 1, it is characterised in that, described according to described waveform information and described digital signal sequences generation binary FSK waveform, comprising:
Described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB.
4. method according to claim 2, it is characterised in that, described according to preset algorithm, described binary FSK waveform carried out computing and generate sexadecimal number system FSK waveform, comprising:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element;
S1032: extract the sampling point amplitude being numbered odd number;
S1033: extract the sampling point amplitude being numbered even number;
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number;
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1;
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767;
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin;
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
5. method according to claim 2, it is characterised in that, described method also comprises:
When described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, repeat and described according to preset algorithm, described binary FSK waveform carried out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
6. the generating apparatus of a frequency shift keying fsk waveform file, it is characterised in that, described device comprises:
Determining unit, generates the waveform information needed for FSK waveform and digital signal sequences for determining;
Binary FSK waveform generates unit, for generating binary FSK waveform according to described waveform information and described digital signal sequences;
Sexadecimal number system FSK waveform generates unit, for described binary FSK waveform being carried out computing according to preset algorithm, generates sexadecimal number system FSK waveform;
Whether judging unit, be less than for judging the size of described sexadecimal number system FSK waveform or equal default file size, and obtaining the first judged result;
FSK waveform file generating unit, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is less than or equals default file size, generating FSK waveform file.
7. device according to claim 6, it is characterised in that, described determining unit specifically for:
Determine to generate the sample frequency fs needed for FSK waveform and sampling number N.
8. device according to claim 6, it is characterised in that, described binary FSK waveform generate unit specifically for:
Described waveform information and described digital signal sequences are generated binary FSK waveform by the FSKmode function of Calling MATLAB.
9. device according to claim 7, it is characterised in that, described sexadecimal number system FSK waveform generate unit specifically for:
S1031: choose N number of sampling point in each code element of described binary FSK waveform, and according to natural number from 1 to N numbering, gather the amplitude of each sampling point, and record the amplitude maximum in each code element;
S1032: extract the sampling point amplitude being numbered odd number;
S1033: extract the sampling point amplitude being numbered even number;
S1034: generate new function with the sampling point amplitude being numbered even number according to the described sampling point amplitude being numbered odd number, the absolute value of described new function real part mould is numbered the sampling point amplitude of odd number described in being, the absolute value of imaginary part mould be described in be numbered the sampling point amplitude of even number;
S1035: the amplitude maximum of sampling point each in described new function taken absolute value, then with the amplitude of each sampling point divided by described absolute value so that the amplitude span of each sampling point is between-1 to 1;
S1036: the amplitude of each sampling point obtained in step S1035 is multiplied by 32767;
S1037: the amplitude of each sampling point obtained in step S1036 is added 65536, and sets up two-dimensional direct angle coordinate system taking 65536 as true origin;
S1038: the two-dimensional direct angle coordinate system obtained by step S1037 carries out modulo operation so that the sampling point amplitude that former amplitude is less than 65536 overturns in described two-dimensional direct angle coordinate system, generates sexadecimal number system FSK waveform by described binary FSK waveform.
10. device according to claim 7, it is characterised in that, described device also comprises:
Processing unit, for when described first judged result represents that the size of described sexadecimal number system FSK waveform is greater than default file size, then reduce described sample frequency fs and sampling number N, trigger described sexadecimal number system FSK waveform to generate unit and repeat and described according to preset algorithm, described binary FSK waveform carries out the size that the step that computing generates sexadecimal number system FSK waveform adjusts described sexadecimal number system FSK waveform, till the size of described sexadecimal number system FSK waveform is less than or equals default file size.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510992503.6A CN105635012B (en) | 2015-12-24 | 2015-12-24 | A kind of generation method and device of frequency shift keying fsk wave file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510992503.6A CN105635012B (en) | 2015-12-24 | 2015-12-24 | A kind of generation method and device of frequency shift keying fsk wave file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105635012A true CN105635012A (en) | 2016-06-01 |
CN105635012B CN105635012B (en) | 2018-12-14 |
Family
ID=56049521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510992503.6A Active CN105635012B (en) | 2015-12-24 | 2015-12-24 | A kind of generation method and device of frequency shift keying fsk wave file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105635012B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111654333A (en) * | 2020-05-08 | 2020-09-11 | 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) | Wireless signal generation method and wireless signal generation device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007180940A (en) * | 2005-12-28 | 2007-07-12 | Oki Electric Ind Co Ltd | Fsk signal generating apparatus |
CN103023478A (en) * | 2012-12-05 | 2013-04-03 | 天津光电通信技术有限公司 | Digital logic circuit of multiple-phase frequency-shift keying (MPFSK), 2 continuous-phase frequency shift keying (2CPFSK) and Gaussian filtered minimum shift keying (GMSK) waveform signal generator |
CN103179063A (en) * | 2011-12-21 | 2013-06-26 | 北京普源精电科技有限公司 | Frequency-shift keying modulation device and method |
-
2015
- 2015-12-24 CN CN201510992503.6A patent/CN105635012B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007180940A (en) * | 2005-12-28 | 2007-07-12 | Oki Electric Ind Co Ltd | Fsk signal generating apparatus |
CN103179063A (en) * | 2011-12-21 | 2013-06-26 | 北京普源精电科技有限公司 | Frequency-shift keying modulation device and method |
CN103023478A (en) * | 2012-12-05 | 2013-04-03 | 天津光电通信技术有限公司 | Digital logic circuit of multiple-phase frequency-shift keying (MPFSK), 2 continuous-phase frequency shift keying (2CPFSK) and Gaussian filtered minimum shift keying (GMSK) waveform signal generator |
Non-Patent Citations (1)
Title |
---|
程铃: "基于Matlab的多进制数字调制仿真", 《现代电子技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111654333A (en) * | 2020-05-08 | 2020-09-11 | 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) | Wireless signal generation method and wireless signal generation device |
Also Published As
Publication number | Publication date |
---|---|
CN105635012B (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915306B (en) | A kind of data manipulation control method and equipment manager | |
CN108733342A (en) | volume adjusting method, mobile terminal and computer readable storage medium | |
CN105843480A (en) | Desktop icon adjustment method and apparatus | |
CN103593127A (en) | Method for selecting audio output devices and terminal | |
CN105702271A (en) | Multimedia playing method and electronic equipment | |
CN105809066B (en) | Encrypted data storage method and terminal | |
CN111076807B (en) | Method, device and equipment for processing vibration signal and readable medium | |
CN105635012A (en) | Frequency-shift keying FSK waveform file generation method and device | |
CN104216612A (en) | Information processing method and electronic equipment | |
CN109065017B (en) | Voice data generation method and related device | |
CN105740118A (en) | Chip exception detection method and apparatus as well as circuit panel exception detection method and apparatus | |
CN108777735A (en) | Display area method of adjustment and relevant device | |
CN104834549B (en) | Application program file updating method and device of mobile terminal | |
CN105551500B (en) | A kind of acoustic signal processing method and device | |
CN103631872A (en) | Method for playing multimedia files and electronic terminal | |
CN105792054A (en) | Key control circuit for headset and control method | |
CN107832623B (en) | Method and system for encrypting and decrypting coordinate track | |
CN106789602B (en) | Voice control method for playing back, terminal and mobile terminal | |
CN112945077B (en) | Twisted pair lay length detection method and device applied to twisted pair cable | |
CN105528175B (en) | A kind of method and user terminal for adding wireless sound box | |
CN103885586B (en) | Information processing method and electronic equipment | |
CN108427608A (en) | Event alarm method and event alarm device | |
CN108228250A (en) | The display methods and terminal of a kind of application interface | |
CN103399188A (en) | Abnormal waveform acquisition method and oscilloscope | |
CN104750453A (en) | Information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020 Patentee after: Beijing Jingwei Hirain Technologies Co.,Inc. Address before: 8 / F, block B, No. 11, Anxiang Beili, Chaoyang District, Beijing 100101 Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd. |
|
CP03 | Change of name, title or address |