{"id":790,"date":"2012-11-01T11:59:45","date_gmt":"2012-11-01T09:59:45","guid":{"rendered":"http:\/\/dh5ym.hopto.org\/wiki\/?p=790"},"modified":"2013-02-08T18:51:23","modified_gmt":"2013-02-08T18:51:23","slug":"sdr-and-rtl-sdr-under-xubuntu-12-10","status":"publish","type":"post","link":"https:\/\/dh5ym.hopto.org\/wiki\/?p=790","title":{"rendered":"SDR# and RTL-SDR under Xubuntu 12.10"},"content":{"rendered":"<p>In the CQDL edition of Nov. 2012 there was an article about a SDR software called SDR# (SDRSharp). This tool can work with the cheap so called RTLSDR sticks (for example Noxon DAB sticks and others) and runs under windows and because its written in C# under linux within the mono framework as well.<br \/>\nBecause its not that easy to get the stuff running i try to document it here. Just give me a hint if something is missing or wrong.<br \/>\nThats the status of today&#8230;<\/p>\n<p>The versions:<br \/>\nsdrsharp SVN revision 995<br \/>\nXubuntu 12.10 64bit<br \/>\nRTLSDR from git repository Nov. 1st, 2012<br \/>\nNoxon DAB stick Rev1<br \/>\n<strong><br \/>\nGetting SDR# working:<\/strong><br \/>\n\ufeffFirst you need some required packages:<br \/>\n<code>sudo apt-get install mono-complete<br \/>\nsudo apt-get install libportaudio2<\/code><\/p>\n<p>Get sdrsharp sources (and the tool to get it):<br \/>\n<code>sudo apt-get install subversion<br \/>\nsvn co https:\/\/subversion.assembla.com\/svn\/sdrsharp\/<br \/>\ncd sdrsharp\/trunk<\/code><\/p>\n<p>Build on command line:<br \/>\n<code>xbuild \/t:Rebuild \/p:Configuration=Release SDRSharp.sln<\/code><br \/>\nYou will most probably get a warning but no errors.<\/p>\n<p>Try to run the binary with mono:<br \/>\n<code>cd Release<br \/>\nmono SDRSharp.exe<\/code><br \/>\nIf you get some errors about Portaudio then try the line:<br \/>\n<code>\ufeffln -s \/usr\/lib\/x86_64-linux-gnu\/libportaudio.so.2 libportaudio.so<\/code><br \/>\nin the directory were your binary of SDRSharp is located. Then try again running the binary.<br \/>\nIf the GUI comes up quit it.<br \/>\nDownload the release package from the SDRSharp page:<br \/>\n<a href=\"http:\/\/sdrsharp.com\/index.php\/downloads\">http:\/\/sdrsharp.com\/index.php\/downloads<\/a><br \/>\nUnpack into a folder of your choice<br \/>\nGo to the binary Release path were your self-compiled binaries are and overwrite all files from the downloaded package by the self compiled. Also copy the symlink you created eventually.<br \/>\nTry to run SDRSharp from the new directory.<br \/>\nIn the left top edge of the window there should be a button named \u201ePlay\u201c. Right of this there s a selection list. There should be an entry RTL-SDR\/TCP. If not download the RTLSDR files from the SDRSharp page and copy into your SDRSharp folder. After restart of the GUI the entry should be visible.<\/p>\n<p><strong>Connecting the RTLSDR:<\/strong><br \/>\nI have a Noxon DAB Stick Rev1. This one can be tuned between 22MHz and 1100MHz.<br \/>\nThe frequency accuracy is relatively poor. I have -51ppm offset from nominal frequency.<br \/>\n<div id=\"attachment_796\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"..\/wiki\/wp-content\/uploads\/2012\/11\/IMG202.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-796\" src=\"..\/wiki\/wp-content\/uploads\/2012\/11\/IMG202-300x225.jpg\" alt=\"Noxon DAB Stick inside...\" title=\"Noxon DAB Stick inside...\" width=\"300\" height=\"225\" class=\"size-medium wp-image-796\" srcset=\"https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/IMG202-300x225.jpg 300w, https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/IMG202-1024x768.jpg 1024w, https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/IMG202-624x468.jpg 624w, https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/IMG202.jpg 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-796\" class=\"wp-caption-text\">Noxon DAB Stick inside...<\/p><\/div><br \/>\nCheck how it connects:<br \/>\nPlug the stick to the USB port, wait a few seconds, then type dmesg.<br \/>\n<code>[ 7013.844041] usb 1-1: >new high-speed USB device number 2 using ehci_hcd[ 7013.987872] usb 1-1: >New USB device found, idVendor=0ccd, idProduct=00b3[ 7013.987882] usb 1-1: >New USB device strings: Mfr=1, Product=2, SerialNumber=3[ 7013.987888] usb 1-1: >Product: DAB Stick[ 7013.987892] usb 1-1: >Manufacturer: NOXON[ 7013.987897] usb 1-1: >SerialNumber: 0<\/code><br \/>\nOn my other (Ubuntu based) PC i there get the information that some DVB-T driver get loaded automatically.<br \/>\ndmesg gives then:<br \/>\n<code>[ 7116.475304] usb 2-1.1: Product: DAB Stick<br \/>\n[ 7116.475306] usb 2-1.1: Manufacturer: NOXON<br \/>\n[ 7116.475309] usb 2-1.1: SerialNumber: 0<br \/>\n[ 7116.679026] dvb-usb: found a \u201aNOXON DAB\/DAB+ USB dongle\u2018 in warm state.<br \/>\n[ 7116.704932] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.<br \/>\n[ 7116.706616] DVB: registering new adapter (NOXON DAB\/DAB+ USB dongle)<br \/>\n[ 7116.720596] rtl28xxu: rtl2832u_frontend_attach: FC0013 tuner found<br \/>\n[ 7116.729442] DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...<br \/>\n[ 7116.759431] fc0013: Fitipower FC0013 successfully attached.<br \/>\n[ 7116.759439] Registered IR keymap rc-empty<br \/>\n[ 7116.759545] input: IR-receiver inside an USB DVB receiver as \/devices\/pci0000:00\/0000:00:1d.0\/usb2\/2-1\/2-1.1\/rc\/rc0\/input14<br \/>\n[ 7116.759946] rc0: IR-receiver inside an USB DVB receiver as \/devices\/pci0000:00\/0000:00:1d.0\/usb2\/2-1\/2-1.1\/rc\/rc0<br \/>\n[ 7116.759951] dvb-usb: schedule remote query interval to 400 msecs.<br \/>\n[ 7116.769919] dvb-usb: NOXON DAB\/DAB+ USB dongle successfully initialized and connected.<br \/>\n[ 7116.776795] usbcore: registered new interface driver dvb_usb_rtl28xxu<\/code><\/p>\n<p>lsmod shows:<br \/>\n<code>dvb_usb_rtl28xxu       26619  0<br \/>\nrtl2830                18340  1 dvb_usb_rtl28xxu<br \/>\ndvb_usb                24540  1 dvb_usb_rtl28xxu<br \/>\ndvb_core              111077  2 rtl2830,dvb_usb<\/code><\/p>\n<p>If thats the case at yours you need to remove the drivers by typing:<br \/>\n<code>sudo rmmod dvb_usb_rtl28xxu<br \/>\nsudo rmmod rtl2830<\/code><br \/>\nThis needs to be done everytime you plug the stick to the PC in case the driver is loaded automatically.<\/p>\n<p>Get the binaries for the RTLSDR:<br \/>\nthis is the project page: <a href=\"http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr\">http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr<\/a><br \/>\nyou need to use git for checkout<br \/>\n<code>sudo apt-get install git<\/code><br \/>\nThen get the code:<br \/>\n<code>git clone git:\/\/git.osmocom.org\/rtl-sdr.git<br \/>\ncd rtl-sdr<br \/>\nsudo apt-get install autoconf2.13<br \/>\nsudo apt-get install libtool<br \/>\nsudo apt-get install libusb-1.0-0-dev<\/code><br \/>\nfollow the instructions for building with autotools:<br \/>\n<code>autoreconf -i<br \/>\n.\/configure<br \/>\nmake<br \/>\nsudo make install<br \/>\nsudo ldconfig<\/code><br \/>\nIf you do not want to access the dongle as root user you need to install udev rules:<br \/>\n<code>sudo make install-udev-rules<\/code><br \/>\n<strong><br \/>\nRun the whole thing:<\/strong><br \/>\nYou need to reconnect the RTLSDR stick to the usb before you are able to run the server application.<br \/>\nYou can start it with:<br \/>\n<code>rtl_tcp<\/code><br \/>\nIf that does not work start it with sudo.<br \/>\nThen you can start SDRSharp again.<br \/>\nIn the GUI press configure and type localhost in the field \u201eHostname\u201c.<br \/>\nKeep the other settings for the moment. Press update and close the configuration window.<br \/>\nThen you can start the reception pressing the \u201ePlay\u201c button.<br \/>\nThe waterfall window migh look strange. This seems to be a bug. If you rescale the window it should work (at least for a while) afterwards.<br \/>\nThe tune frequency can be entered in the field \u201eCenter\u201c. Attention: If you invalid frequencies the stick may hook up and you cannot tune anymore. Then you have to replug the stick and start all applications again.<br \/>\nUnfortunately the processor load is extremely high under linux-mono. I get 100% CPU usage on a 2.4GHz AMD64 CPU. This leads to audio stutters. On my I7-2600 i get around 180% load compared to one of the 3GHz cores when decoding FM-stereo with 2MSpl\/s and IQ correction switched on.<br \/>\nYou could reduce the datarate by starting the rtl_tcp server with option -s 1024000. 512kSpl\/s did not work correctly at my side. You need to set the correct rate also in the sdrsharp configuration. If it still stutters switch IQ correction and FM Stereo off to reduce the CPU load.<br \/>\nThis screenshot shows SDRSharp receiving a wideband FM broadcast signal. It also features a RDS decoder.<br \/>\n<div id=\"attachment_798\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"..\/wiki\/wp-content\/uploads\/2012\/11\/SDRSharp.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-798\" src=\"..\/wiki\/wp-content\/uploads\/2012\/11\/SDRSharp-300x183.png\" alt=\"SDRSharp\" title=\"SDRSharp\" width=\"300\" height=\"183\" class=\"size-medium wp-image-798\" srcset=\"https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/SDRSharp-300x183.png 300w, https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/SDRSharp-624x381.png 624w, https:\/\/dh5ym.hopto.org\/wiki\/wp-content\/uploads\/2012\/11\/SDRSharp.png 1022w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-798\" class=\"wp-caption-text\">SDRSharp<\/p><\/div><\/p>\n<p>Thats it. Probably it runs smoother under windows. There the installation should be also a bit easier. Unfortunately i do not have any windows system available.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the CQDL edition of Nov. 2012 there was an article about a SDR software called SDR# (SDRSharp). This tool can work with the cheap so called RTLSDR sticks (for example Noxon DAB sticks and others) and runs under windows &hellip; <a href=\"https:\/\/dh5ym.hopto.org\/wiki\/?p=790\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8,17],"tags":[],"class_list":["post-790","post","type-post","status-publish","format-standard","hentry","category-amateur-radio","category-linuxandcomputer","category-software-defined-radio"],"_links":{"self":[{"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=790"}],"version-history":[{"count":2,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":872,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions\/872"}],"wp:attachment":[{"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dh5ym.hopto.org\/wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}