CN106990288A - High speed signal frequency spectrum analysis method based on stm32f4 - Google Patents

High speed signal frequency spectrum analysis method based on stm32f4 Download PDF

Info

Publication number
CN106990288A
CN106990288A CN201710165055.1A CN201710165055A CN106990288A CN 106990288 A CN106990288 A CN 106990288A CN 201710165055 A CN201710165055 A CN 201710165055A CN 106990288 A CN106990288 A CN 106990288A
Authority
CN
China
Prior art keywords
high speed
speed signal
signal
stm32f4
carried out
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710165055.1A
Other languages
Chinese (zh)
Inventor
余仪琳
张德鑫
徐镜媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Feng Feng Communication Technology Co Ltd
Original Assignee
Chengdu Feng Feng Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Feng Feng Communication Technology Co Ltd filed Critical Chengdu Feng Feng Communication Technology Co Ltd
Priority to CN201710165055.1A priority Critical patent/CN106990288A/en
Publication of CN106990288A publication Critical patent/CN106990288A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/16Spectrum analysis; Fourier analysis
    • G01R23/165Spectrum analysis; Fourier analysis using filters
    • G01R23/167Spectrum analysis; Fourier analysis using filters with digital filters

Landscapes

  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a kind of high speed signal frequency spectrum analysis method based on stm32f4, including the analog signal for the high speed signal that need to be analyzed is gathered, and pretreatment filtering is carried out to the analog signal of collection;The steps such as analog-to-digital conversion are carried out to pre-processing filtered analog signal.The present invention realizes high speed signal spectrum analysis, solves the inconvenience of high speed signal spectrum analysis.

Description

High speed signal frequency spectrum analysis method based on stm32f4
Technical field
The invention belongs to wireless communication technology field.Specifically related to a kind of high speed signal spectrum analysis based on stm32f4 Method.
Background technology
STM32F4 is the newest embeded processor Cortex M4 of ARM, is usually used in control and signal processing function mixing Digital control market.The controller improves the speed of service, adds signal processing function, while adding floating-point operation list First, adaptive accelerator in real time, 32 multiple ahb bus matrixes and multi-channel DMA controller, digital signal controller etc. are multiple New features.Its integrated level is higher, and power consumption is relatively low, Flash on built-in highest 1MB pieces, 192KB SRAM, and normal working frequency is 168MHz, therefore be widely used.
It is entitled《High speed signal spectrum analyzer based on stm32f4》Paper, be using STM32F407 as core, it is main Cache is done using FIFO.High speed signal first passes through AD samplings, then first first caches the data after sampling to FIFO Processing, then carries out Blackman pretreatments by STM32F407 again, then is 1024 point FFT to carry out spectrum analysis, finally will Data display is on LCD12864, to carry out man-machine interaction!The system can realize that the frequency spectrum of random waveform signal is shown, and It can be shown with the amplitude of each harmonic component of Automatic-searching, frequency and phase and 8 valid data of progress.Although STM32F407 Chip data illustrates that port can stand+5V voltage, but this does not represent it can recognize+5 high level, therefore in reading+5V Input port level, it is necessary to+5V is converted into+3.3V with electrical level transferring chip, during the data otherwise read one it is wrong. But 3.3V belongs to high level, therefore it can drive the chip that+5V works.But, it is entitled《High speed based on stm32f4 Signal spectral analysis instrument》Paper, complicated, fault rate is too high, and inconvenience is brought to high speed signal spectrum analysis.
The content of the invention
The invention aims to overcome a kind of above-mentioned not enough high speed signal spectrum analysis side based on stm32f4 of offer Method.
A kind of high speed signal frequency spectrum analysis method based on stm32f4, including step:
The analog signal for the high speed signal that need to be analyzed is gathered, and pretreatment filtering is carried out to the analog signal of collection;
Analog-to-digital conversion is carried out to pre-processing filtered analog signal, sampled data is obtained;
FFT processing is carried out to obtained sampled data, high speed signal spectrum information is obtained;
Peak value searching is carried out to obtained high speed signal spectrum information, peak signal is obtained;
Orthogonal digital down-converted is carried out to sampled data and produces orthogonal signalling;
The orthogonal signalling are mixed with the peak signal, broadband complex base band high speed signal is obtained;
Spectrum Correction processing is carried out to broadband complex base band high speed signal, the frequency of signal, amplitude is respectively obtained and just believes Breath.
Further, the analog signal for the high speed signal that the collection need to be analyzed, and the analog signal of collection is located in advance What reason was filtered concretely comprises the following steps:
Input analog signal;
The input of the analog signal is received, and sets up notation index;
Lookup table is set up according to the notation index;
Flank speed in database in lookup table searching data storehouse, is then exported;
Perform digital-to-analogue conversion to the sampling output to be converted into analog signal with flank speed;And pass through low pass Analog filter handles the analog signal to be transferred to stm32f4.
Further, described pair of obtained sampled data carries out FFT processing, obtains the specific steps of high speed signal spectrum information For:
Sampled data is extracted
Receive the data after extracting;
The extraction data of reception are copied as 2 parts, and are stored on two different addresses;
Carry out data storage;
Data to storage carry out FFT;
Export FFT result;
Final result output is carried out according to FFT output datas order.
Further, described pair of obtained high speed signal spectrum information carries out peak value searching, obtains the specific step of peak signal Suddenly it is:
System is started power up;
Channel gain is set;
Detect whether obtained high speed signal spectrum information transfinites, if transfiniting, channel gain is switched;If not transfiniting, Then turn next step;
Detect that obtained high speed signal signal is normal, carry out next step digital-to-analogue conversion;
Normal data is exported to stm32f4;
Detection collection signal peak.
Further, it is described to detect whether obtained high speed signal spectrum information transfinites, if transfiniting, channel gain is switched The step of in:
Detect whether obtained high speed signal spectrum information transfinites again, if transfiniting, turn next step;
Channel gain switching is still transfinited, therefore is judged as outranging, detection terminates.
The present invention is pre-processed by gathering the analog signal for the high speed signal that need to be analyzed to the analog signal of collection Filtering, carries out analog-to-digital conversion to pre-processing filtered analog signal, obtains sampled data, and obtained sampled data is carried out FFT processing, obtains high speed signal spectrum information, and peak value searching is carried out to obtained high speed signal spectrum information, obtains peak value letter Number, orthogonal digital down-converted is carried out to sampled data and produces orthogonal signalling, by the orthogonal signalling and the peak signal It is mixed, obtains broadband complex base band high speed signal, Spectrum Correction processing is carried out to broadband complex base band high speed signal, respectively obtained Frequency, amplitude and the first phase information of signal.It is achieved thereby that high speed signal spectrum analysis, solves high speed signal spectrum analysis Inconvenience.
Brief description of the drawings
Fig. 1 is the inventive method schematic flow sheet.
Embodiment
Below in conjunction with specific embodiment, the present invention is further illustrated:
The analog signal for the high speed signal that need to be analyzed is gathered, and pretreatment filtering is carried out to the analog signal of collection;
Analog-to-digital conversion is carried out to pre-processing filtered analog signal, sampled data is obtained;
FFT processing is carried out to obtained sampled data, high speed signal spectrum information is obtained;
Peak value searching is carried out to obtained high speed signal spectrum information, peak signal is obtained;
Orthogonal digital down-converted is carried out to sampled data and produces orthogonal signalling;
The orthogonal signalling are mixed with the peak signal, broadband complex base band high speed signal is obtained;
Spectrum Correction processing is carried out to broadband complex base band high speed signal, the frequency of signal, amplitude is respectively obtained and just believes Breath.
The analog signal for the high speed signal that the collection need to be analyzed, and the analog signal of collection is carried out pre-processing filtering Concretely comprise the following steps:
Input analog signal;
The input of the analog signal is received, and sets up notation index;
Lookup table is set up according to the notation index;
Flank speed in database in lookup table searching data storehouse, is then exported;
Perform digital-to-analogue conversion to the sampling output to be converted into analog signal with flank speed;And pass through low pass Analog filter handles the analog signal to be transferred to stm32f4.
Described pair of obtained sampled data carries out FFT processing, obtains concretely comprising the following steps for high speed signal spectrum information:
Sampled data is extracted
Receive the data after extracting;
The extraction data of reception are copied as 2 parts, and are stored on two different addresses;
Carry out data storage;
Data to storage carry out FFT;
Export FFT result;
Final result output is carried out according to FFT output datas order.
Described pair of obtained high speed signal spectrum information carries out peak value searching, obtains concretely comprising the following steps for peak signal:
System is started power up;
Channel gain is set;
Detect whether obtained high speed signal spectrum information transfinites, if transfiniting, channel gain is switched;If not transfiniting, Then turn next step;
Detect that obtained high speed signal signal is normal, carry out next step digital-to-analogue conversion;
Normal data is exported to stm32f4;
Detection collection signal peak.
It is described to detect whether obtained high speed signal spectrum information transfinites, if transfiniting, the step of channel gain is switched In:
Detect whether obtained high speed signal spectrum information transfinites again, if transfiniting, turn next step;
Channel gain switching is still transfinited, therefore is judged as outranging, detection terminates.

Claims (5)

1. a kind of high speed signal frequency spectrum analysis method based on stm32f4, it is characterised in that including step:
The analog signal for the high speed signal that need to be analyzed is gathered, and pretreatment filtering is carried out to the analog signal of collection;
Analog-to-digital conversion is carried out to pre-processing filtered analog signal, sampled data is obtained;
FFT processing is carried out to obtained sampled data, high speed signal spectrum information is obtained;
Peak value searching is carried out to obtained high speed signal spectrum information, peak signal is obtained;
Orthogonal digital down-converted is carried out to sampled data and produces orthogonal signalling;
The orthogonal signalling are mixed with the peak signal, broadband complex base band high speed signal is obtained;
Spectrum Correction processing is carried out to broadband complex base band high speed signal, the frequency, amplitude and first phase information of signal is respectively obtained.
2. the high speed signal frequency spectrum analysis method according to claim 1 based on stm32f4, it is characterised in that the collection The analog signal for the high speed signal that need to be analyzed, and the analog signal of collection is carried out pre-processing concretely comprising the following steps for filtering:
Input analog signal;
The input of the analog signal is received, and sets up notation index;
Lookup table is set up according to the notation index;
Flank speed in database in lookup table searching data storehouse, is then exported;
Perform digital-to-analogue conversion to the sampling output to be converted into analog signal with flank speed;And pass through low-passed analog Analog signal described in filter process is to be transferred to stm32f4.
3. the high speed signal frequency spectrum analysis method according to claim 2 based on stm32f4, it is characterised in that described pair The sampled data arrived carries out FFT processing, obtains concretely comprising the following steps for high speed signal spectrum information:
Sampled data is extracted
Receive the data after extracting;
The extraction data of reception are copied as 2 parts, and are stored on two different addresses;
Carry out data storage;
Data to storage carry out FFT;
Export FFT result;
Final result output is carried out according to FFT output datas order.
4. the high speed signal frequency spectrum analysis method according to claim 2 based on stm32f4, it is characterised in that described pair The high speed signal spectrum information arrived carries out peak value searching, obtains concretely comprising the following steps for peak signal:
System is started power up;
Channel gain is set;
Detect whether obtained high speed signal spectrum information transfinites, if transfiniting, channel gain is switched;If not transfiniting, turn Next step;
Detect that obtained high speed signal signal is normal, carry out next step digital-to-analogue conversion;
Normal data is exported to stm32f4;
Detection collection signal peak.
5. the high speed signal frequency spectrum analysis method according to claim 4 based on stm32f4, it is characterised in that the detection Whether obtained high speed signal spectrum information transfinites, if transfiniting, in the step of channel gain is switched:
Detect whether obtained high speed signal spectrum information transfinites again, if transfiniting, turn next step;
Channel gain switching is still transfinited, therefore is judged as outranging, detection terminates.
CN201710165055.1A 2017-03-20 2017-03-20 High speed signal frequency spectrum analysis method based on stm32f4 Pending CN106990288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710165055.1A CN106990288A (en) 2017-03-20 2017-03-20 High speed signal frequency spectrum analysis method based on stm32f4

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710165055.1A CN106990288A (en) 2017-03-20 2017-03-20 High speed signal frequency spectrum analysis method based on stm32f4

Publications (1)

Publication Number Publication Date
CN106990288A true CN106990288A (en) 2017-07-28

Family

ID=59413319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710165055.1A Pending CN106990288A (en) 2017-03-20 2017-03-20 High speed signal frequency spectrum analysis method based on stm32f4

Country Status (1)

Country Link
CN (1) CN106990288A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112505414A (en) * 2020-12-15 2021-03-16 成都九华圆通科技发展有限公司 Data processing system and method based on handheld electromagnetic spectrum monitoring equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176261A (en) * 2005-01-14 2008-05-07 马维尔国际贸易有限公司 Method and apparatus for a transmission signal up-converting filter
CN103454495A (en) * 2013-09-13 2013-12-18 电子科技大学 Self-adaptive high-precision fast spectral analysis method
CN104122444A (en) * 2014-08-06 2014-10-29 石家庄数英仪器有限公司 All-digital intermediate frequency spectrum analyzer and spectrum analyzing method
CN104301052A (en) * 2014-10-20 2015-01-21 中国电子科技集团公司第四十一研究所 Seamless collecting and real-time frequency spectrum monitoring implementation method based on FPGA

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101176261A (en) * 2005-01-14 2008-05-07 马维尔国际贸易有限公司 Method and apparatus for a transmission signal up-converting filter
CN103454495A (en) * 2013-09-13 2013-12-18 电子科技大学 Self-adaptive high-precision fast spectral analysis method
CN104122444A (en) * 2014-08-06 2014-10-29 石家庄数英仪器有限公司 All-digital intermediate frequency spectrum analyzer and spectrum analyzing method
CN104301052A (en) * 2014-10-20 2015-01-21 中国电子科技集团公司第四十一研究所 Seamless collecting and real-time frequency spectrum monitoring implementation method based on FPGA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐萍: ""宽带数字接收机算法研究及FPGA实现"", 《CNKI中国硕士学位论文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112505414A (en) * 2020-12-15 2021-03-16 成都九华圆通科技发展有限公司 Data processing system and method based on handheld electromagnetic spectrum monitoring equipment

Similar Documents

Publication Publication Date Title
CN101662328A (en) Performance detector of portable ultrashort wave frequency hopping station
CN103063922A (en) Resistor-capacitor measurement module applied to flying probe tests
CN104202101A (en) Short wave/ultra-short wave instant dynamic spectrum sensing system and method
CN104361374A (en) Collecting and processing system and method of radio-frequency signals
CN104717026A (en) Anti-interference single-channel direction-finding processing device and method
CN104408213B (en) A kind of portable data acquisition card
CN106990288A (en) High speed signal frequency spectrum analysis method based on stm32f4
CN106226665A (en) High-voltage transmission line insulator distributed electric field detector and detecting system
CN105611018B (en) A kind of MIPI LP signal test systems and method
CN204795452U (en) Can realize gesture, voice interaction's TV set system
CN104361373A (en) Collecting and processing method of radio-frequency signals
CN102087308A (en) Electric quantity acquisition and test analyzer and method for power system
CN207926605U (en) A kind of multi-path radio signal monitoring device
CN106680584A (en) All-digital portable spectrum analysis system
CN203596041U (en) Wireless fingerprint attendance checking system
CN105610530A (en) Satellite data acquisition and analysis method and system
CN204302410U (en) The automatic measuring and analysing meter of a kind of intelligent wave shape parameter
CN106021181B (en) The consecutive points correlation mean value noise-reduction method that a kind of pair of FFT data is implemented
CN204347132U (en) A kind of Real-time Spectrum Analyzer based on the direct bandpass sampling of radio frequency
CN203616000U (en) Frequency conversion sampling device for hydraulic pump vibration signal
CN203014827U (en) General reception excitation module tester
CN205246643U (en) Portable river lake online water -quality monitor table
CN108776259A (en) Power analyzer based on digital bandwidth restriction technologies
CN203224596U (en) Partial discharge tester
CN205230581U (en) Semantic discernment type speech recognition system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170728

RJ01 Rejection of invention patent application after publication