You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.