Thursday, May 13, 2021

Re: HackRF and osmcom

Hi Bruce - if you only have 1 HackRF One connected the computer, then you can just leave the "Device Arguments" blank.

Otherwise, take the last 8 characters of the serial number - not the entire serial number.

-- Cinaed


On 5/13/21 1:27 PM, KG4HLZ wrote:
Gnu Radio noob here.

I am trying to get osmocom working with HckRF One. I am getting the following:


Generating: '/home/bruce/Documents/gnuRadio/testHackRF.py'

Executing: /usr/bin/python3 -u /home/bruce/Documents/gnuRadio/testHackRF.py

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
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
Traceback (most recent call last):
  File "/home/bruce/Documents/gnuRadio/testHackRF.py", line 202, in <module>
    main()
  File "/home/bruce/Documents/gnuRadio/testHackRF.py", line 180, in main
    tb = top_block_cls()
  File "/home/bruce/Documents/gnuRadio/testHackRF.py", line 133, in __init__
    self.osmosdr_source_0 = osmosdr.source(
  File "/usr/lib/python3/dist-packages/osmosdr/osmosdr_swig.py", line 1074, in make
    return _osmosdr_swig.source_make(*args, **kwargs)
RuntimeError: basic_string::compare: __pos (which is 18446744073709551614) > this->size() (which is 32)

>>> Done (return code 1)


The HackRF seems to be running ok. I can pull information from it with no problem.

I am running Ubuntu 20.04.2 LTS (Focal Fossa).

I don't know is this mailing list forwards screen shots but heer is my osmcom setup:



Thanks!!!!!
Bruce

No comments:

Post a Comment