[Hackrf-dev] (no subject)

will_cummings at mindspring.com will_cummings at mindspring.com
Thu Dec 31 20:49:42 EST 2020


Hi,

I just purchased the HackRF One.

I am trying to follow the lesson in "Software Defined Radio with HackRF, Lesson 1" 

I can get it to work on Pentoo, but I'd really like to be able to run on Ubuntu 20.04.1.   

On Ubuntu, hackrf is version (2018.01.1-2)

When I enter "hackrf_info", I get:

hackrf_info version: unknown
libhackrf version: unknown (0.5)
Found HackRF
Index: 0
Serial number: 0000000000000000088869dc35a1531b
Board ID Number: 2 (HackRF One)
Firmware Version: 2018.01.1 (API:1.02)
Part ID Number: 0xa000cb3c 0x00584358

The command "hackrf_transfer -r /dev/null" works as expected.


I found the gr-osmosdr and installed it.

Since wxgui is deprecated in GRC 3.8 I'm using the QT GUI Frequency Sink block.

When I try to run, I get the errors below.  I am attaching the py and grc files.

Any help or suggestions would be much appreciated.

Thanks,

Will Cummings


This is what I'm seeing:
__________________________________________________________________________________________ 

Generating: '/home/will/GNURadio/top_block.py'

Executing: /usr/bin/python3 -u /home/will/GNURadio/top_block.py

Warning: failed to XInitThreads()
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.


RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,1), Invalid argument.


RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,1), Invalid argument.

Using HackRF One with firmware 2018.01.1
Traceback (most recent call last):
  File "/home/will/GNURadio/top_block.py", line 188, in <module>
    main()
  File "/home/will/GNURadio/top_block.py", line 166, in main
    tb.start(1)
  File "/usr/lib/python3/dist-packages/gnuradio/gr/top_block.py", line 111, in start
    top_block_start_unlocked(self._impl, max_noutput_items)
  File "/usr/lib/python3/dist-packages/gnuradio/gr/runtime_swig.py", line 4832, in top_block_start_unlocked
    return _runtime_swig.top_block_start_unlocked(r, max_noutput_items)
RuntimeError: list contains invalid format!

>>> Done (return code 1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: first_try.grc
Type: application/gnuradio-grc
Size: 9502 bytes
Desc: not available
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20201231/455a9b22/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: top_block.py
Type: text/x-python
Size: 6127 bytes
Desc: not available
URL: <https://pairlist9.pair.net/pipermail/hackrf-dev/attachments/20201231/455a9b22/attachment.py>


More information about the HackRF-dev mailing list