2017-04-12 13:11:43
来源:安全客 作者:结冰的雪碧
阅读:561次
点赞(0)
收藏
作者:雪碧 0xroot@360 Unicorn Team
作者博客:www.cn0xroot.com
预估稿费:500RMB
投稿方式:发送邮件至linwei#360.cn,或登陆网页版在线投稿
0x00 概览
LimeSDR部分特性:
USB 3.0 ;
4 x Tx 发射天线接口 6 x Rx 接收天线接口;
可用于Wi-Fi, GSM, UMTS, LTE, LoRa, Bluetooth, Zigbee, RFID等开发测试环境中。
RTL电视棒、HackRF、BladeRF、USRP、LimeSDR参数对比表:
HackRF One的价格,性能参数却能跟BladeRF甚至USRP媲美!
LimeSDR核心组件:
先上几张特写:
主板长10cm,算上USB接口11.5cm:
主板宽5.7cm:
相对于HackRF、BladeRF、USRP这三款主流SDR硬件(USRP mini除外),体积已经很小巧了。LimeSDR其体积实测只有一个iPhone5s的体积大小!
当插上USB供电后,除了上图显示的两颗绿色LED灯,还有一颗一闪一闪的红色LED灯也在工作。
接下来将分一键快速安装和源码编译安装来使用LimeSDR硬件,推荐使用源码编译安装。
0x01 Mac OSX
1.1 搭建开发环境
Mac OSX当中强烈推荐通过Mac Port 搭建SDR环境,配合源码编译达到最佳效果。
1.通过AppStore安装:Xcode
2.下载安装:XQuartz/X11
3.下载安装:MacPorts
sudoportsearchsdrsudoportinstallrtl-sdrhackrfbladeRFuhdgnuradiogqrxgr-osmosdrgr-fosphor
完成之后便可从GayHub上clone源码并进行编译安装。
1.2 源码编译LimeSuite
gitclonehttps://github.com/myriadrf/LimeSuite.git cdLimeSuite mkdirbuilddir&&cdbuilddir cmake../ make-j4 sudomakeinstall1.3 源码编译UHD驱动&&增加UHD对LimeSDR的支持
jocover基于UHD给LimeSDR开发了LimeSDR的驱动支持OpenUSRP,把LimeSDR来模拟成USRP B210来使用。
gitclonehttps://github.com/EttusResearch/uhd.git cduhd/host/lib/usrp gitclonehttps://github.com/jocover/OpenUSRP.git echo"INCLUDE_SUBDIRECTORY(OpenUSRP)">>CMakeLists.txt cd../../../ mkdirbuild&&cdbuild cmake.. make-j4 sudomakeinstall1.4 添加环境变量
echo'exportUHD_MODULE_PATH=/usr/lib/uhd/modules'>>~/.bashrc如果用的是iTerm2+zsh则执行:
echo'exportUHD_MODULE_PATH=/usr/lib/uhd/modules'>>~/.zshrc1.5 检测LimeSDR模拟USRP是否成功:
LimeSDR模拟成USRP B210之后最终的效果跟USRP是一样的:
uhd_find_devices
uhd_usrp_probe MacOS;Clangversion8.1.0(clang-802.0.38);Boost_105900;UHD_003.010.001.001-MacPorts-Release UsingOpenUSRP [WARNING]Gatewareversionmismatch! Expectedgatewareversion2,revision8 Butfoundversion2,revision6 FollowtheFWandFPGAupgradeinstructions: http://wiki.myriadrf.org/Lime_Suite#Flashing_images Orrunupdateonthecommandline:LimeUtil--update [INFO]Estimatedreferenceclock30.7195MHz [INFO]Selectedreferenceclock30.720MHz [INFO]LMS7002Mcache/Users/cn0xroot/.limesuite/LMS7002M_cache_values.db MCUalgorithmtime:10ms MCURef.clock:30.72MHz MCUalgorithmtime:163ms MCUalgorithmtime:1ms MCURef.clock:30.72MHz MCUalgorithmtime:104ms MCUalgorithmtime:1ms MCURef.clock:30.72MHz MCUalgorithmtime:167ms MCUalgorithmtime:1ms MCURef.clock:30.72MHz MCUalgorithmtime:104ms _____________________________________________________ / |Device:B-SeriesDevice |_____________________________________________________ |/ ||Mboard:B210 ||revision:4 ||product:2 ||serial:243381F ||FWVersion:3 ||FPGAVersion:2.6 || ||Timesources:none,internal,external ||Clocksources:internal,external ||Sensors:ref_locked ||_____________________________________________________ ||/ |||RXDSP:0 ||| |||Freqrange:-10.000to10.000MHz ||_____________________________________________________ ||/ |||RXDSP:1 ||| |||Freqrange:-10.000to10.000MHz ||_____________________________________________________ ||/ |||RXDboard:A |||_____________________________________________________ |||/ ||||RXFrontend:A ||||Name:FE-RX1 ||||Antennas:TX/RX,RX2 ||||Sensors:temp,lo_locked,rssi ||||Freqrange:30.000to3800.000MHz ||||GainrangePGA:0.0to76.0step1.0dB ||||Bandwidthrange:1000000.0to60000000.0step1.0Hz ||||ConnectionType:IQ ||||UsesLOoffset:No |||_____________________________________________________ |||/ ||||RXFrontend:B ||||Name:FE-RX2 ||||Antennas:TX/RX,RX2 ||||Sensors:temp,lo_locked,rssi ||||Freqrange:30.000to3800.000MHz ||||GainrangePGA:0.0to76.0step1.0dB ||||Bandwidthrange:1000000.0to60000000.0step1.0Hz ||||ConnectionType:IQ ||||UsesLOoffset:No |||_____________________________________________________ |||/ ||||RXCodec:A ||||Name:B210RXdualADC ||||GainElements:None ||_____________________________________________________ ||/ |||TXDSP:0 ||| |||Freqrange:-10.000to10.000MHz ||_____________________________________________________ ||/ |||TXDSP:1 ||| |||Freqrange:-10.000to10.000MHz ||_____________________________________________________ ||/ |||TXDboard:A |||_____________________________________________________ |||/ ||||TXFrontend:A ||||Name:FE-TX1 ||||Antennas:TX/RX ||||Sensors:temp,lo_locked ||||Freqrange:30.000to3800.000MHz ||||GainrangePGA:0.0to89.8step0.2dB ||||Bandwidthrange:800000.0to60000000.0step1.0Hz ||||ConnectionType:IQ ||||UsesLOoffset:No |||_____________________________________________________ |||/ ||||TXFrontend:B ||||Name:FE-TX2 ||||Antennas:TX/RX ||||Sensors:temp,lo_locked ||||Freqrange:30.000to3800.000MHz ||||GainrangePGA:0.0to89.8step0.2dB ||||Bandwidthrange:800000.0to60000000.0step1.0Hz ||||ConnectionType:IQ ||||UsesLOoffset:No |||_____________________________________________________ |||/ ||||TXCodec:A ||||Name:B210RXdualADC ||||GainElements:None ~
1.6 捕获遥控信号
osmocom_fft-F-f315e6-s2e60x02 Ubuntu
2.1 更新软件包
sudoadd-apt-repository-yppa:myriadrf/drivers sudoapt-getupdate apt-cachesearchsdr2.2 安装SDR常用软件:
sudoapt-getupdate sudoapt-getinstallgit sudoapt-getinstallpython-pip pipinstall--upgradepip pipinstallgit+https://github.com/gnuradio/pybombs.git pybombsrecipesaddgr-recipesgit+https://github.com/gnuradio/gr-recipes.git pybombsrecipesaddgr-etceteragit+https://github.com/gnuradio/gr-etcetera.git pybombsprefixinit/usr/local-amyprefix-Rgnuradio-default pybombsinstallgqrxgr-osmosdruhd2.3 安装Lime_Suite所需依赖包
#packagesforsoapysdravailableatmyriadrfPPA sudoadd-apt-repository-yppa:myriadrf/drivers sudoapt-getupdate #installcorelibraryandbuilddependencies sudoapt-getinstallgitg++cmakelibsqlite3-dev #installhardwaresupportdependencies sudoapt-getinstalllibsoapysdr-devlibi2c-devlibusb-1.0-0-dev #installgraphicsdependencies sudoapt-getinstalllibwxgtk3.0-devfreeglut3-dev接下来的源码编译过程与在OSX下源码编译过程一样:
2.4 源码编译LimeSuite
gitclonehttps://github.com/myriadrf/LimeSuite.git cdLimeSuite mkdirbuilddir&&cdbuilddir cmake../ make-j4 sudomakeinstall执行LimeSuiteGUI启动LimeSDR的软件图形化界面:
2.5 源码编译UHD驱动&&增加UHD对LimeSDR的支持
源码编译UHD+OpenUSRP
gitclonehttps://github.com/EttusResearch/uhd.git cduhd/host/lib/usrp gitclonehttps://github.com/jocover/OpenUSRP.git echo"INCLUDE_SUBDIRECTORY(OpenUSRP)">>CMakeLists.txt cd../../ mkdirbuild&&cdbuild cmake.. make-j4 sudomakeinstall sudoldconfig2.6 添加环境变量
echo'exportUHD_MODULE_PATH=/usr/lib/uhd/modules'>>~/.bashrc2.7 LimeSDR+GNURadio运行demo
wgethttp://www.0xroot.cn/SDR/signal-record.grc gnuradio-companionsignal-record.grc0x03 Reference
http://www.cnx-software.com/2016/04/29/limesdr-open-source-hardware-software-defined-radio-goes-for-199-and-up-crowdfunding/
https://wiki.myriadrf.org/Lime_Suite
http://linuxgizmos.com/open-source-sdr-sbc-runs-snappy-ubuntu-on-cyclone-v/
本文由 安全客 原创发布,如需转载请注明来源及本文地址。
本文地址:http://bobao.360.cn/learning/detail/3721.html