Project

General

Profile

GrOsmoSDR » History » Version 54

horiz0n, 02/19/2016 10:50 PM

1 1 horiz0n
[[PageOutline]]
2
3 47 horiz0n
= osmocom Gnu Radio Blocks =
4 1 horiz0n
5 20 horiz0n
While primarily being developed for the OsmoSDR hardware, this block as well supports:
6 1 horiz0n
7 20 horiz0n
 * [http://tetra.osmocom.org/trac/wiki/Funcube_Dongle FunCube Dongle] through libgnuradio-fcd
8 50 horiz0n
 * [http://www.funcubedongle.com/?page_id=1073 FUNcube Dongle Pro+] through [https://github.com/dl1ksv/gr-fcdproplus gr-fcdproplus]
9 44 horiz0n
 * [http://sdr.osmocom.org/trac/ sysmocom OsmoSDR] Devices through [http://cgit.osmocom.org/osmo-sdr/ libosmosdr]
10 51 horiz0n
 * [http://nuand.com/ Nuand LLC bladeRF] through [https://github.com/Nuand/bladeRF libbladeRF library]
11 20 horiz0n
 * [http://greatscottgadgets.com/hackrf/ Great Scott Gadgets HackRF] through [https://github.com/mossmann/hackrf libhackrf]
12 22 horiz0n
 * [https://www.ettus.com/product Ettus USRP] Devices through [http://files.ettus.com/uhd_docs/manual/html/build.html Ettus UHD library]
13 20 horiz0n
 * RTL2832U based DVB-T dongles through [http://sdr.osmocom.org/trac/wiki/rtl-sdr librtlsdr]
14
 * RTL-TCP spectrum server (see librtlsdr project)
15
 * MSi2500 based DVB-T dongles through [http://cgit.osmocom.org/libmirisdr/ libmirisdr]
16 42 horiz0n
 * gnuradio .cfile input through libgnuradio-blocks
17 20 horiz0n
18
By using the OsmoSDR block you can take advantage of a common software api in your application(s) independent of the underlying radio hardware.
19
20 1 horiz0n
== Build process ==
21
22 48 horiz0n
'''The Gnu Radio block requires a recent gnuradio (>= v3.7 if building master branch or 3.6.5 when building gr3.6 branch) to be installed.'''
23 20 horiz0n
24 43 horiz0n
Before building the block you have to make sure that all the dependencies (see list of supported devices above) you are intend to work with are properly installed. The build system of gr-osmosdr will recognize them and enable specific source/sink components thereafter.
25 1 horiz0n
26
Please note: prior pulling a new version from git and compiling it, please do a "make uninstall" first to properly remove the previous version.
27
28
Building with cmake:
29 30 horiz0n
30 1 horiz0n
{{{
31
git clone git://git.osmocom.org/gr-osmosdr
32
cd gr-osmosdr/
33 48 horiz0n
}}}
34
35
If you are building for gnuradio 3.6 series, you have to switch to the gr3.6 branch as follows
36
{{{
37
git checkout gr3.6
38
}}}
39
40 51 horiz0n
then continue with
41 48 horiz0n
{{{
42 1 horiz0n
mkdir build
43
cd build/
44 14 horiz0n
cmake ../
45 30 horiz0n
}}}
46
47 34 horiz0n
Now cmake should print out a summary of enabled/disabled components. You may disable certain components by following guidelines shown by cmake. Make sure the device of your interest is listed here. Check your dependencies and retry otherwise.
48 30 horiz0n
{{{
49
-- ######################################################
50
-- # gr-osmosdr enabled components                         
51
-- ######################################################
52
--   * Python support
53
--   * Osmocom IQ Imbalance Correction
54 1 horiz0n
--   * sysmocom OsmoSDR
55 51 horiz0n
--   * FUNcube Dongle
56
--   * FUNcube Dongle Pro+
57 30 horiz0n
--   * IQ File Source
58
--   * Osmocom RTLSDR
59
--   * RTLSDR TCP Client
60
--   * Ettus USRP Devices
61
--   * Osmocom MiriSDR
62 1 horiz0n
--   * HackRF Jawbreaker
63 51 horiz0n
--   * nuand bladeRF
64 30 horiz0n
-- 
65
-- ######################################################
66
-- # gr-osmosdr disabled components                        
67 1 horiz0n
-- ######################################################
68 30 horiz0n
-- 
69 51 horiz0n
-- Building for version: v0.1.0-4-g37aba331 / 0.1.1git
70 30 horiz0n
-- Using install prefix: /usr/local
71
}}}
72
73
Now build & install
74
{{{
75 1 horiz0n
make
76
sudo make install
77
sudo ldconfig
78
}}}
79
80 44 horiz0n
NOTE: The osmocom source/sink blocks will appear under 'Sources' and 'Sinks' categories in GRC menu.
81 1 horiz0n
82 10 horiz0n
To build the API documentation:
83
{{{
84
cd build/
85 1 horiz0n
cmake ../ -DENABLE_DOXYGEN=1
86
make -C docs
87 14 horiz0n
}}}
88 44 horiz0n
89 1 horiz0n
== Automated installation ==
90
91
Marcus D. Leech has kindly integrated the forementioned build steps into his gnuradio installation script at [http://www.sbrac.org/files/build-gnuradio]. This is the most user-friendly option so far.
92 7 horiz0n
93 11 horiz0n
== Device specification ==
94 33 horiz0n
You can specify the source or sink device using a comma separated string of argument=value pairs. The always-up-to-date block documentation with examples is available [http://cgit.osmocom.org/gr-osmosdr/tree/grc/gen_osmosdr_blocks.py#n100 right here].
95 19 horiz0n
96 18 horiz0n
=== FCD Source ===
97
||Argument||Notes||
98 54 horiz0n
||fcd=<device-index>|| 0-based device identifier, optional||
99
||device=hw:2|| overrides the audio device||
100
||type=2|| selects the dongle type, 1 for Classic, 2 for Pro+||
101 50 horiz0n
102
The "device" argument overrides the audio device used by the underlying driver to access the dongle's IQ sample stream.
103
104
The "type" argument selects the dongle type, 1 for Classic, 2 for Pro+.
105 18 horiz0n
106 1 horiz0n
=== OsmoSDR Source ===
107 28 horiz0n
||Argument||Notes||
108
||osmosdr=<device-index>|| 0-based device identifier||
109 1 horiz0n
||buffers=<number-of-buffers>|| Default is 32||
110 28 horiz0n
||buflen=<length-of-buffer>|| Default is 256kB, must be multiple of 512||
111 1 horiz0n
112 11 horiz0n
=== RTL-SDR Source ===
113 28 horiz0n
||Argument||Notes||
114
||rtl=<device-index>|| 0-based device identifier OR serial number||
115
||rtl_xtal=<frequency>|| Frequency (Hz) used for the RTL chip, accepts eng notation||
116
||tuner_xtal=<frequency>|| Frequency (Hz) used for the tuner chip, accepts eng notation||
117 1 horiz0n
||buffers=<number-of-buffers>|| Default is 32||
118 28 horiz0n
||buflen=<length-of-buffer>|| Default is 256kB, must be multiple of 512||
119 29 horiz0n
||direct_samp=0|1|2|| Enable direct sampling mode on the RTL chip. 0: Disable, 1: use I channel, 2: use Q channel||
120
||offset_tune=0|1|| Enable offset tune mode for E4000 tuners||
121 28 horiz0n
122
NOTE: use rtl_eeprom -s to program your own serial number to the device
123 32 horiz0n
124 11 horiz0n
NOTE: if you don't specify rtl_xtal/tuner_xtal, the underlying driver will use 28.0MHz
125 1 horiz0n
126
=== RTL-SDR TCP Source ===
127 28 horiz0n
||Argument||Notes||
128 1 horiz0n
||rtl_tcp=<hostname>:<port>|| hostname defaults to "localhost", port to "1234"||
129
||psize=<payload-size>|| Default is 16384 bytes||
130 29 horiz0n
||direct_samp=0|1|2|| Enable direct sampling mode on the RTL chip 0=Off, 1=I-ADC input enabled, 2=Q-ADC input enabled||
131
||offset_tune=0|1|| Enable offset tune mode for E4000 tuners||
132 1 horiz0n
133 28 horiz0n
=== Miri Source ===
134
||Argument||Notes||
135
||miri=<device-index>|| 0-based device identifier||
136
||buffers=<number-of-buffers>|| Default is 32||
137
138 1 horiz0n
=== UHD Source / Sink ===
139 28 horiz0n
||Argument||Notes||
140
||uhd|| Use this argument without a value||
141
||nchan=<channel-count>|| For multichannel USRP configurations use the subdev parameter to specify stream mapping||
142
||subdev=<subdev-spec>|| Examples: "A:0", "B:0", "A:0 B:0" when nchan=2. Refer original ettus documentation on this||
143
||lo_offset=<frequency>|| Offset frequency in Hz, must be within daughterboard bandwidth. Accepts eng notation||
144 1 horiz0n
145
Additional argument/value pairs will be passed to the underlying driver, for more information see
146
[http://files.ettus.com/uhd_docs/manual/html/general.html#specifying-the-subdevice-to-use specifying the subdevice] and 
147
[http://files.ettus.com/uhd_docs/manual/html/identification.html#common-device-identifiers common device identifiers] in the Ettus documentation.
148 54 horiz0n
149
=== bladeRF Source / Sink ===
150
||Argument||Notes||
151
||bladerf[=0]|| 0-based device identifier (optional)||
152
||fw='/path/to/the/firmware.img'|| program MCU firmware. usually not needed. power cycle required.||
153
||fpga='/path/to/the/bitstream.rbf'|| load FPGA bitstream from given file, required only at first run at the moment.||
154 1 horiz0n
155
=== HackRF Source / Sink ===
156 28 horiz0n
||Argument||Notes||
157
||hackrf|| Use this argument without a value||
158 24 horiz0n
||buffers=<number-of-buffers>|| Default is 32||
159
160 28 horiz0n
Only the first device found may be used at the moment because of libhackrf limitation.
161
162 38 horiz0n
Transmit support has been verified by using the [http://sdr.osmocom.org/trac/attachment/wiki/GrOsmoSDR/hackrf-dab.jpg crc-mmbTools DAB sdr transmitter].
163
164 24 horiz0n
=== IQ File Source ===
165 28 horiz0n
||Argument||Notes||
166 24 horiz0n
||file=<path-to-file-name>||||
167 28 horiz0n
||freq=<frequency>|| Center frequency in Hz, accepts eng notation||
168 31 horiz0n
||rate=<sampling-rate>|| Mandatory, in samples/s, accepts eng notation||
169 7 horiz0n
||repeat=true|false|| Default is true||
170 28 horiz0n
||throttle=true|false|| Throttle flow of samples, default is true||
171 7 horiz0n
172 35 horiz0n
== Included Apps ==
173
174
=== Spectrum Browser ===
175
176 45 horiz0n
[[Image(fft-lte.png)]]
177
178 35 horiz0n
usage examples:
179 36 horiz0n
{{{
180 35 horiz0n
osmocom_fft -a rtl=0 -v -f 100e6 -s 2.4e6 -g 15
181
osmocom_fft -a hackrf -v
182
osmocom_fft -a uhd -v
183 36 horiz0n
}}}
184 35 horiz0n
=== Signal generator ===
185 1 horiz0n
186 45 horiz0n
[[Image(siggen-gsm.png)]]
187 37 horiz0n
188 35 horiz0n
usage examples:
189 36 horiz0n
{{{
190 49 horiz0n
osmocom_siggen -a hackrf -f 100e6 --sine
191
osmocom_siggen -a hackrf -f 100e6 --sweep -x 2M -y 1 -c34
192 39 horiz0n
osmocom_siggen_nogui -a hackrf -f 100e6 --sweep -x 2e6 -y 10 -v
193
osmocom_siggen_nogui -a uhd,subdev=A:0 -f 100e6 --sweep -x 2e6 -y 10 -s 4e6 -v
194 36 horiz0n
}}}
195 35 horiz0n
=== Spectrum sensing ===
196
197
TODO: document
198
199 7 horiz0n
== Known Apps ==
200
201
The following 3rd party applications are successfully using gr-osmosdr:
202
203
||'''Name'''||'''Type'''||'''Author'''||'''URL'''||
204
||gr-pocsag||GRC Flowgraph||Marcus Leech||[https://www.cgran.org/browser/projects/gr-pocsag/trunk]||
205 15 horiz0n
||multimode RX||GRC Flowgraph||Marcus Leech||[https://www.cgran.org/browser/projects/multimode/trunk]||
206 8 horiz0n
||simple_fm_rvc||GRC Flowgraph||Marcus Leech||[https://www.cgran.org/browser/projects/simple_fm_rcv/trunk]||
207 16 horiz0n
||Wireless Temp. Sensor RX||Gnuradio App||Kevin Mehall||[https://github.com/kevinmehall/rtlsdr-433m-sensor]||
208 1 horiz0n
||gqrx||SDR GUI||Alexandru Csete||[https://github.com/csete/gqrx]||
209
||tetra_demod_fft||Trunking RX||osmocom team||[http://cgit.osmocom.org/cgit/osmo-tetra/tree/src/demod/python/osmosdr-tetra_demod_fft.py osmosdr-tetra_demod_fft.py] and the [http://tetra.osmocom.org/trac/wiki/osmo-tetra#Quickexample HOWTO] ||
210
||airprobe||GSM sniffer||osmocom team et al||[http://git.gnumonks.org/cgi-bin/gitweb.cgi?p=airprobe.git]||
211
||gr-smartnet (WIP)||Trunking RX||Nick Foster||[http://www.reddit.com/r/RTLSDR/comments/us3yo/rtlsdr_smartnet/][[br]][http://www.reddit.com/r/RTLSDR/comments/vbxl0/attention_grsmartnet_users_or_attempted_users/ Notes from the author]||
212
||gr-air-modes||ADS-B RX||Nick Foster||[https://www.cgran.org/wiki/gr-air-modes] call with --rtlsdr option||
213 16 horiz0n
||gr-ais (fork)||AIS RX||Nick Foster[[br]]Antoine Sirinelli[[br]]Christian Gagneraud||[https://github.com/chgans/gr-ais]||
214
||GNSS-SDR ||GPS RX (Realtime!)||Centre Tecnològic de[[br]]Telecomunicacions de Catalunya||[http://www.gnss-sdr.org/documentation/gnss-sdr-operation-realtek-rtl2832u-usb-dongle-dvb-t-receiver Documentation] and [http://www.gnss-sdr.org]||
215 15 horiz0n
||gr-scan ||Scanner||techmeology||[http://www.techmeology.co.uk/gr-scan/]||
216
||pocsag-mrt||Multichannel Realtime[[br]]Decoder||iZsh||[https://github.com/iZsh/pocsag-mrt]||
217
||osmo-gmr-rtl||GMR1 RX||Dimitri Stolnikov||[http://gmr.osmocom.org/trac/wiki/GettingStarted#RTLSDRdongles]||
218
||simple_ra '''(NEW)'''||Radio Astronomy App||Marcus Leech||[https://cgran.org/wiki/simple_ra]||
219
||FS20_decode '''(NEW)'''||FS20 Decoder||Thomas Frisch||[https://github.com/eT0M/rtl_sdr_FS20_decoder]||
220
||OpenLTE '''(NEW)'''||LTE Toolkit||Ben Wojtowicz||[http://sourceforge.net/p/openlte/home/Home/]||
221 28 horiz0n
222
223
== Credits ==
224
225 53 horiz0n
gr-osmosdr is developed by Dimitri Stolnikov with contributions from Hoernchen, Steve Markgraf and Nuand LLC folks.
Add picture from clipboard (Maximum size: 48.8 MB)