diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-28 12:36:03 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-04-28 12:36:31 +0200 |
commit | a5bdb272402fb012c0a97556cf50a69128e4c573 (patch) | |
tree | 5925f5a107df73daa5b4bf5df574098245b14cbb /grc | |
parent | 882b6da6ac42afd7381bdb89a6118d829f005a18 (diff) |
hackrf: add TX support (wip)
features:
- gain control for AMP & VGA
- frequency error correction
- automatic baseband filter
- up to 20M sampling rate
limitations:
- no DC offset correction implemented (yet)
- high sampling rates may not work on slow machines
the following TX named gain stages are available:
RF: MGA-81563, switchable 0 or 14dB
IF: MAX2837 VGA, 0 to 47dB in 1dB steps
Diffstat (limited to 'grc')
-rw-r--r-- | grc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | grc/gen_osmosdr_blocks.py | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/grc/CMakeLists.txt b/grc/CMakeLists.txt index 0f253b5..aa15df3 100644 --- a/grc/CMakeLists.txt +++ b/grc/CMakeLists.txt @@ -34,7 +34,7 @@ endmacro(GEN_BLOCK_XML) GEN_BLOCK_XML(gen_osmosdr_blocks.py rtlsdr_source_c.xml) GEN_BLOCK_XML(gen_osmosdr_blocks.py osmosdr_source_c.xml) -#GEN_BLOCK_XML(gen_osmosdr_blocks.py osmosdr_sink_c.xml) +GEN_BLOCK_XML(gen_osmosdr_blocks.py osmosdr_sink_c.xml) add_custom_target(osmosdr_grc_xml_blocks ALL DEPENDS ${xml_blocks}) diff --git a/grc/gen_osmosdr_blocks.py b/grc/gen_osmosdr_blocks.py index 84d1e15..fe083e3 100644 --- a/grc/gen_osmosdr_blocks.py +++ b/grc/gen_osmosdr_blocks.py @@ -23,7 +23,7 @@ MAIN_TMPL = """\ <block> <name>$(title) $sourk.title()</name> <key>$(prefix)_$(sourk)_c</key> - <category>Sources</category> + <category>$($sourk.title())s</category> <throttle>1</throttle> <import>import osmosdr</import> <make>osmosdr.$(sourk)_c( args="nchan=" + str(\$nchan) + " " + \$args ) @@ -104,7 +104,7 @@ self.\$(id).set_bandwidth(\$bw$(n), $n) <nports>\$nchan</nports> </$sourk> <doc> -The OsmoSDR $sourk.title() block: +The OSMOCOM block: While primarily being developed for the OsmoSDR hardware, this block as well supports: @@ -131,6 +131,7 @@ Examples: Optional arguments are placed into [] brackets, remove the brackets before using them! Specific variable values are separated with a |, choose one of them. Variable values containing spaces shall be enclosed in '' as demonstrated in examples section below. Lines ending with ... mean it's possible to bind devices together by specifying multiple device arguments separated with a space. +Source Mode: fcd=0 hackrf=0 miri=0[,buffers=32] ... @@ -143,6 +144,9 @@ Lines ending with ... mean it's possible to bind devices together by specifying osmosdr=0[,mcr=64e6][,nchan=5][,buffers=32][,buflen=N*512] ... file='/path/to/your file',rate=1e6[,freq=100e6][,repeat=true][,throttle=true] ... +Sink Mode: + hackrf=0[,buffers=32] + Num Channels: Selects the total number of channels in this multi-device configuration. Required when specifying multiple device arguments. @@ -310,10 +314,10 @@ if __name__ == '__main__': head, tail = os.path.split(file) if tail.startswith('rtlsdr'): - title = 'RTLSDR' + title = 'RTL-SDR' prefix = 'rtlsdr' elif tail.startswith('osmosdr'): - title = 'OsmoSDR' + title = 'OSMOCOM' prefix = 'osmosdr' else: raise Exception, 'file %s has wrong syntax!'%tail |