In recent years,China’s communication industry has developed rapidly.Our country from imitating 1G.2G to developing the 3G with Germany Siemens,3G has become one of the three major global communications standards.Then China’s independent research and development of 4G became the world’s mainstream standards,the fifth generation of mobile communication technology under the impetus of global communications industry is gradually known as the world leader.As a result,the mobile communication service occupies more and more spectrum resources.Because the radio spectrum resources are non-renewable,the growing radio communication service makes our spectrum resources more and more scarce.Therefore,Spectrum detection is the precondition to solve the above problemsA spectrum analyzer is a testing instruments which is used in the field of frequency spectrum structure.Spectrum analyzers are expensive at present,inconvenience carrying and can’t test the regular time for a long time.Therefore,this paper uses HackRF to realiz a spectrum monitor in Android development platform.HackRF’s spectrum detection ranges from 10MHz to 6GHz.Not only the price is cheaper than USRP,but also the hardware and software source are open.It can receive and transmitted the signal.The Android system has a good portability so that it has more developers and users,and the development system has small size,simple interface,and easier to carry.HackRF will be processed by the USB data transmission to the Android development platform.At the same time,I built the Android development environment,wrote programs and downloaded to Android.Using FrameLayout,SurfaceView,button and controls,completed the spectrum test system interface display.The interface can be operated by buttons on the waveform,such as amplifying or reducing the waveform,saving the file and changing the center frequency.In this system,the FFT module,layout module,multi-threaded message processing module are introduced and embedded Baidu Map.According to the walking track,the value of the signal energy that can be processed on the map.Finally I compared this design with the Agilent N9342C spectrum analyzer,the measured data were analyzed by significance test,and there was no difference between the two samples.Therefore,this design of this spectrum monitoring instrument can realize the function of spectrum monitoring. |