Hello,
I'm creating a GNU Radio OOT module in C++ language, in which I instantiate
an osmosdr source. The syntax is : osmosdr::source ::sptr m_source =
osmosdr::source::make();
I also implement other blocks in my design.
In CMakeLists.txt file, I specify all these components:
set(GR_REQUIRED_COMPONENTS RUNTIME BLOCKS FFT OSMOSDR)
find_package(Gnuradio-osdmosdr REQUIRED)
include_directories(
...
${GNURADIO_OSMOSDR_INCLUDE_DIRS}
)
link_directories(
...
${GNURADIO_OSMOSDR_LIBRARY_DIRS}
)
In cmake/Modules folder, I copied the FindGnuradio-osmosdr.cmake file from
gqrx project.
The logs of cmake command show that the osmosdr library is found:
-- checking for module 'gnuradio-osmosdr'
-- Found gnuradio-osmosdr, version v0.1.4-127-g4d83c606
-- Found GNURADIO_OSMOSDR: /usr/local/lib/libgnuradio-osmosdr.so
After compiling the module (cmake .. -> make -> make install -> ldconfig),
I got the error 'AttributeError: 'module' object has no attribute 'test'. I
analysed the undefined symbol, and it was due to osmosdr module.
Any suggestion to solve this problem?
PS:
- I'm working on Ubuntu 16.04 (VM), gnuradio 3.7.9, cmake 3.5.1
- In GRC, the osmosdr source and sink work fine
Thanks.
Hello! I am an undergraduate student at Oregon State University working
with RTL-SDR dongles for an academic project under supervision from
Benjamin Brewster, and I had a dev question.
I'm trying to run utilities that capture 978
<https://github.com/mutability/dump978> & 1090Mhz
<https://github.com/mutability/dump1090> traffic simultaneously, but I
can't seem to stop rtl_sdr from allocating too many zero-copy buffers and
preventing both programs from running simultaneously (I'd like to cut down
from 15). I've been through librtlsdr.c and rtl_adsb.c with the hope of
manually changing some variable that will let me accomplish this to no
avail.
Is there some line I might have overlooked, or some additional parameter(s)
I might need to enter?
Thank you for your email, and I appreciate the communication. I did have
one last question: If I were to make a change to the code and need to
recompile it, are the steps the same ones listed on the wiki under
"building the software", or is there a different make process?
On Thu, Aug 15, 2019, 10:51 AM Karl <gmkarl(a)gmail.com> wrote:
> Hi Robert,
>
> It sounds like you're looking for the `buf_num` argument to
> rtlsdr_read_async. This is in rtl-sdr.h:
> https://git.osmocom.org/rtl-sdr/tree/include/rtl-sdr.h#n362 .
>
> I run into problems like that all the time, myself. Due to my issues,
> I've found it hard to collaborate on this project myself. See mailing
> list archive of contributions that were minimally addressed. I try to
> focus around communication that's more reliable than radio now, like
> memo.cash .
>
> But I'm still passionate about helping rtl-sdr grow.
>
> Karl
>
> On 8/15/19, Hudspeth, Robert Lee <hudspero(a)oregonstate.edu> wrote:
> > Hello! I am an undergraduate student at Oregon State University working
> > with RTL-SDR dongles for an academic project under supervision from
> > Benjamin Brewster, and I had a dev question.
> >
> > I'm trying to run utilities that capture 978
> > <https://github.com/mutability/dump978> & 1090Mhz
> > <https://github.com/mutability/dump1090> traffic simultaneously, but I
> > can't seem to stop rtl_sdr from allocating too many zero-copy buffers and
> > preventing both programs from running simultaneously (I'd like to cut
> down
> > from 15). I've been through librtlsdr.c and rtl_adsb.c with the hope of
> > manually changing some variable that will let me accomplish this to no
> > avail.
> >
> > Is there some line I might have overlooked, or some additional
> parameter(s)
> > I might need to enter?
> >
>