With gr-osmosdr 0.1.1-5 (current as of April 9, 2014 on Arch Linux)
$ tpms_rx --source rtlsdr
linux; GNU C++ version 4.8.2 20140206 (prerelease); Boost_105500; UHD_003.006.002-0-unknown
gr-osmosdr v0.1.0-44-g0d10f5e9 (0.1.1git) gnuradio 3.7.2.1
built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf netsdr
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
Traceback (most recent call last):
File "/usr/local/bin/tpms_rx", line 482, in
main()
File "/usr/local/bin/tpms_rx", line 473, in main
tb = top_block(source, args)
File "/usr/local/bin/tpms_rx", line 439, in init
self.source = source_rtlsdr()
File "/usr/local/bin/tpms_rx", line 138, in init
self.source.set_gain_mode(0, 0)
File "/usr/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 1205, in set_gain_mode
return _osmosdr_swig.source_sptr_set_gain_mode(self, _args, *_kwargs)
TypeError: in method 'source_sptr_set_gain_mode', argument 2 of type 'bool'
rtlsdr_read_async returned with -5
$
At line 138 in tpms_rx, "self.source.set_gain_mode(False, 0)" appears to work.
With gr-osmosdr 0.1.1-5 (current as of April 9, 2014 on Arch Linux)
$ tpms_rx --source rtlsdr linux; GNU C++ version 4.8.2 20140206 (prerelease); Boost_105500; UHD_003.006.002-0-unknown
gr-osmosdr v0.1.0-44-g0d10f5e9 (0.1.1git) gnuradio 3.7.2.1 built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf netsdr Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner Traceback (most recent call last): File "/usr/local/bin/tpms_rx", line 482, in
main()
File "/usr/local/bin/tpms_rx", line 473, in main
tb = top_block(source, args)
File "/usr/local/bin/tpms_rx", line 439, in init
self.source = source_rtlsdr()
File "/usr/local/bin/tpms_rx", line 138, in init
self.source.set_gain_mode(0, 0)
File "/usr/lib/python2.7/site-packages/osmosdr/osmosdr_swig.py", line 1205, in set_gain_mode
return _osmosdr_swig.source_sptr_set_gain_mode(self, _args, *_kwargs)
TypeError: in method 'source_sptr_set_gain_mode', argument 2 of type 'bool'
rtlsdr_read_async returned with -5
$
At line 138 in tpms_rx, "self.source.set_gain_mode(False, 0)" appears to work.