Playing with Software Defined Radio Entry: Compiling rtl-sdr Date: Wed Nov 21 20:24:08 EST 2012 sudo apt-get install libboost-all-dev libusb-1.0.0-dev cmake python-cheetah python-qwt5-qt4 python2.7-dev swig fftw3-dev python-wxtools git libxml2-dev python-lxml libpulse-dev ~$ git clone http://gnuradio.org/git/gnuradio.git ~$ mkdir gnuradio/build && cd gnuradio/build && cmake ../ && make -j3 && sudo make install (...) ~$ git clone git://git.osmocom.org/rtl-sdr.git ~$ mkdir rtl-sdr/build && cd rtl-sdr/build && cmake ../ && make -j3 && sudo make install (...) ~$ git clone git://git.osmocom.org/gr-osmosdr.git ~$ mkdir gr-osmosdr/build && cd gr-osmosdr/build && cmake ../ && make -j3 && sudo make install (...) This is from [1] but there the order is not correct. EDIT: After installing the 3 above, just do step one again, starting at "cmake ../" After this, install GQRX[4] ~$ git clone https://github.com/csete/gqrx.git Looking at [2], this has OsmoSDR source (I can also see RTLSDR source). I tried this from [3]. $ rtl_sdr /tmp/capture.bin -s 1.8e6 -f 392e6 Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000013 Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle Found Rafael Micro R820T tuner Tuned to 392000000 Hz. Reading samples in async mode... Signal caught, exiting! Seems to work. I tried to build it again but something failed. There might be a circular dependency here: first do gnuradio, then the other stuff, then gnuradio again. raceback (most recent call last): File "/home/tom/top_block.py", line 166, in tb.start() File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/top_block.py", line 97, in start self._tb.start(max_noutput_items) File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/gnuradio_core_runtime.py", line 1972, in start return _gnuradio_core_runtime.gr_top_block_sptr_start(self, max_noutput_items) RuntimeError: resolve_port: hierarchical block 'osmosdr_source_c_impl': output 0 is not connected internally [1] http://slug.blog.aeminium.org/2012/04/21/rtlsdr/ [2] http://slug.blog.aeminium.org/files/2012/05/ezcap_wnyc_1.png [3] http://sdr.osmocom.org/trac/wiki/rtl-sdr [4] http://www.oz9aec.net/index.php/gnu-radio/gqrx-sdr Entry: Trying out rtl-sdr Date: Sun Nov 25 16:08:01 EST 2012 * FM radio demod works. (Q: how to sync the sampling rates of dongle & audio card?) * I have a Rafael Micro R820T tuner[1]: These tuners cover 24 MHz to 1766 MHz (locking again with lots of gaps from 1850-1860 and 1900-2100). They also don't have the DC spike caused by the I/Q imbalance since they use a different, non-zero, IF. On the other hand, they might have image aliasing due to being superheterodine receivers. * Did some scanning using FFT view and NBFM demod. Found a beakon at 453.433M and multiple NBFM dispatch. 453.19M Police radio? Found a reference here[3]. Real frequency seems to be at 453.21250. Error is is 50ppm. One of these constant ones is probably a DMR, probably the trunking data line[6]. There's some on 866MHz too. * Found headphones at 911.03MHz. NBFM doesn't work. WBFM? Actual chan 1,2,3: 912, 912.5, 913 MHz * How to calibrate? Maybe local broadcast FM radio is best. Tuning on 90.5 / 99.9 MHz when talk radio is on seems best, this makes the sidebands quite visible on a sharp FFT. I'm at 100ppm correction. * A bunch of narrow-spaced carriers at 149.7Mhz * Very strong blip at 433.750, 1/minute * Strong signals at 866MHz, 930MHz [1] http://superkuh.com/rtlsdr.html [2] http://discovermagazine.com/2007/jun/tireless-wireless/allochrt_lg.jpg [3] http://www.radioreference.com/apps/db/?ctid=1259 [4] http://apcointl.org/spectrum-management/resources/spectrum/low-power-450-470-mhz.html [5] http://upload.wikimedia.org/wikipedia/commons/4/45/United_States_Frequency_Allocations_Chart_2003_-_The_Radio_Spectrum.jpg [6] http://www.youtube.com/watch?v=J5lNw4F4SFQ Entry: Position / velocity measurement Date: Thu Apr 11 10:00:30 EDT 2019 RTL-SDR drivers seem to be set up properly. Apr 11 10:17:04 zoe kernel: [2049433.143961] usb 5-4: new high-speed USB device number 15 using ehci-pci Apr 11 10:17:04 zoe kernel: [2049433.309678] usb 5-4: New USB device found, idVendor=0bda, idProduct=2838 Apr 11 10:17:04 zoe kernel: [2049433.309687] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Apr 11 10:17:04 zoe kernel: [2049433.309692] usb 5-4: Product: RTL2838UHIDIR Apr 11 10:17:04 zoe kernel: [2049433.309696] usb 5-4: Manufacturer: Realtek Apr 11 10:17:04 zoe kernel: [2049433.309699] usb 5-4: SerialNumber: 00000013 Apr 11 10:17:04 zoe kernel: [2049433.319548] usb 5-4: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state Apr 11 10:17:04 zoe kernel: [2049433.394423] usb 5-4: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer Apr 11 10:17:04 zoe kernel: [2049433.394461] DVB: registering new adapter (Realtek RTL2832U reference design) Apr 11 10:17:04 zoe kernel: [2049433.399218] i2c i2c-10: Added multiplexed i2c bus 11 Apr 11 10:17:04 zoe kernel: [2049433.399222] rtl2832 10-0010: Realtek RTL2832 successfully attached Apr 11 10:17:04 zoe kernel: [2049433.399235] usb 5-4: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))... Apr 11 10:17:04 zoe kernel: [2049433.399379] r820t 11-001a: creating new instance Apr 11 10:17:04 zoe kernel: [2049433.408520] r820t 11-001a: Rafael Micro r820t successfully identified Apr 11 10:17:04 zoe kernel: [2049433.410283] rtl2832_sdr rtl2832_sdr.0.auto: Registered as swradio0 Apr 11 10:17:04 zoe kernel: [2049433.410285] rtl2832_sdr rtl2832_sdr.0.auto: Realtek RTL2832 SDR attached Apr 11 10:17:04 zoe kernel: [2049433.410286] rtl2832_sdr rtl2832_sdr.0.auto: SDR API is still slightly experimental and functionality changes may follow Apr 11 10:17:04 zoe kernel: [2049433.416921] Registered IR keymap rc-empty Apr 11 10:17:04 zoe kernel: [2049433.417106] input: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:16.2/usb5/5-4/rc/rc0/input25 Apr 11 10:17:04 zoe kernel: [2049433.417341] rc rc0: Realtek RTL2832U reference design as /devices/pci0000:00/0000:00:16.2/usb5/5-4/rc/rc0 Apr 11 10:17:04 zoe kernel: [2049433.417510] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0 Apr 11 10:17:04 zoe kernel: [2049433.417517] usb 5-4: dvb_usb_v2: schedule remote query interval to 200 msecs Apr 11 10:17:04 zoe kernel: [2049433.430640] usb 5-4: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully initialized and connected Apr 11 10:17:04 zoe mtp-probe: checking bus 5, device 15: "/sys/devices/pci0000:00/0000:00:16.2/usb5/5-4" Apr 11 10:17:04 zoe mtp-probe: bus: 5, device: 15 was not an MTP device I forgot what application I used before to just explore... GQRX apt-get install gqrx-sdr Ok it's working again on zoe.