Giter Site home page Giter Site logo

Comments (22)

hsberger avatar hsberger commented on July 27, 2024 1

With that Soapy HackRF Sink is working!

Thanks for all your help!!

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

Hi! It's good that at least hackrf_info works. Unfortunately the osmosdr sink definitely won't work since that hasn't been re-compiled with HackRF support yet, so we're left with trying to get Soapy to work. What is the output of the following?:

SoapySDRUtil --info
SoapySDRUtil --find

or maybe

SoapySDRUtil --find="driver=hackrf"

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

Strange. Aside from the UHD errors (which are interesting to me but don't effect your HackRF), it looks like Soapy detects the HackRF just fine. Do you get an error if you run the following?

python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])"

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

Here is what I get when I enter that at the root directory and from the RadioConda directory:

C:>python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])"

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

C:>cd ProgramData\radioconda220207

C:\ProgramData\radioconda220207>python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])"

Traceback (most recent call last):
File "C:\ProgramData\radioconda220207\lib\site-packages\gnuradio\soapy_init_.py", line 17, in
from .soapy_python import *
ImportError: DLL load failed while importing soapy_python: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\ProgramData\radioconda220207\lib\site-packages\gnuradio\soapy_init_.py", line 21, in
from .soapy_python import *
ImportError: DLL load failed while importing soapy_python: The specified module could not be found.

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

Did you run these commands from the "Conda Prompt (radioconda)"? And if not, can you try that? Sorry for lack of clarity. The conda environment has to be "activated" for the commands to be on your path, and for Python modules to be found.

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

I am glad to try it but am not sure what you mean by "Conda Prompt (radioconda)"? Do you mean going to the directory I have RadioConda installed in?

I also am not sure how the environment is "activated"? How do I either do that or check that it was done?

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

You should have an entry in your Start menu that is called "Conda Prompt (radioconda)". It would be in the "radioconda" directory in the Start menu. Launch that to get your command line. If you don't have that entry, I'll have to look up how to activate the environment from a basic command line.

When the environment is activated, you should see the environment name at the beginning of your prompt, e.g.

(base) C:\Users\rvolz>

It will also have the %CONDA_PREFIX% environment variable defined, so that

echo %CONDA_PREFIX%

prints a path.

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

To activate from a regular command prompt, see if

conda activate

works.

If it doesn't because the conda command is unknown, then you have to cd to the directory where you installed radioconda

cd C:\ProgramData\radioconda220207

then cd to the condabin subdirectory

cd condabin

then run

conda activate

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

Either something is not right with my install or I am not understanding what you are telling me? When I go to the Windows start and enter "Conda Prompt (radioconda)" it points me to the internet and your instructions on loading RadioConda.

I have RadioConda installed in a directory C://ProgramData/radioconda220207.

Are you saying that I should go into the Windows Environment Variables and add this path there?

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

To activate from a regular command prompt, see if

conda activate

works.

If it doesn't because the conda command is unknown, then you have to cd to the directory where you installed radioconda

cd C:\ProgramData\radioconda220207

then cd to the condabin subdirectory

cd condabin

then run

conda activate

Let's forget about "Conda Prompt" for now and try my quoted comment from a regular command prompt.

As an aside, do you remember changing any of the default selections when installing radioconda? Maybe you chose not to add icons to the Start menu? How have you been running GNU Radio Companion if not from a Start menu icon or the Conda Prompt?

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

That didn't work from the default directory but it did after I changed directories. Below is the command and the response:

C:\ProgramData\radioconda220207\condabin>conda activate

(base) C:\ProgramData\radioconda220207\condabin>

I don't remember changing any of the default values but I did not get an icon on the desktop. The 'target' for the desktop icon I use to start GRC is:

C:\ProgramData\radioconda220207\python.exe C:\ProgramData\radioconda_2\cwp.py C:\ProgramData\radioconda_2 C:\ProgramData\radioconda220207\Scripts\gnuradio-companion.exe

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

C:\ProgramData\radioconda220207\python.exe C:\ProgramData\radioconda_2\cwp.py C:\ProgramData\radioconda_2 C:\ProgramData\radioconda220207\Scripts\gnuradio-companion.exe

The potential issue with this is that it seems to refer to two separate installations, one at C:\ProgramData\radioconda220207 and one at C:\ProgramData\radioconda_2. You should modify those paths so that they all refer to the same installation directory, whichever it is that you want to use. Other than that, I think that should work for starting GRC.

Back to the Soapy debugging, now try running

python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])"

from the activated environment, i.e. after

C:\ProgramData\radioconda220207\condabin>conda activate

(base) C:\ProgramData\radioconda220207\condabin>

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

I noticed something and found a way to get the HackRF to work. I have an installation of RadioConda for GRC 3.8. The desktop icon for that has:
"C:\Program Files\GNURadio-3.8\bin\run_GRC.bat"

The install for the 2/7/22 release doesn't have a bin directory. Should it?

Using that GRC and Osmocom the HackRF works just find and transmits the simulated ATSC signal.

I would still like to get the 2/7/22 release working with the Soapy HackRF Sink, but at least there is a point of comparison.

Going to your last note, here is what I get when I enter the command now:

(base) C:\ProgramData\radioconda220207\condabin>python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])"
[INFO] Opening HackRF One #0 a06063c825555c5f...

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

I have an installation of RadioConda for GRC 3.8. The desktop icon for that has:
"C:\Program Files\GNURadio-3.8\bin\run_GRC.bat"

Sorry to say that's not radioconda, but rather Geof Nieboer's Windows installer: http://www.gcndevelopment.com/gnuradio/index.htm. It's a different beast, so that explains the different directory structure, etc. At least it can confirm that your device works with some version of GNU Radio.

Going to your last note, here is what I get when I enter the command now:

(base) C:\ProgramData\radioconda220207\condabin>python -c "from gnuradio import soapy; soapy.sink('driver=hackrf', 'fc32', 1, '', '', [''], [''])" [INFO] Opening HackRF One #0 a06063c825555c5f...

So that finds and opens your HackRF One as desired, which means that your GNU Radio Companion flowgraph should work. The fact it doesn't means that GRC is being launched without a properly activated environment. You should be able to get it to work if you run gnuradio-companion from the same activated prompt that you ran that last command.

Other than that, I'd suspect that the mixed paths from your GRC icon are to blame:

C:\ProgramData\radioconda220207\python.exe C:\ProgramData\radioconda_2\cwp.py C:\ProgramData\radioconda_2 C:\ProgramData\radioconda220207\Scripts\gnuradio-companion.exe

The potential issue with this is that it seems to refer to two separate installations, one at C:\ProgramData\radioconda220207 and one at C:\ProgramData\radioconda_2. You should modify those paths so that they all refer to the same installation directory, whichever it is that you want to use.

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

ryanvolz avatar ryanvolz commented on July 27, 2024

Yes, I agree that improving the documentation will help. There is some mention of activation in the README, but clearly it's not prominent enough. What docs did you read (the README here, GNU Radio wiki, etc.)? How far did you get before your eyes glazed over with too much information? Where would it be helpful to mention activation so that you would have caught it?

I would hope most users would avoid this specific problem because they get a Start Menu icon and just use that, and I don't know why the installation failed to do that for you. But that's a mystery that I doubt we'll be able to figure out.

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

hsberger avatar hsberger commented on July 27, 2024

from radioconda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.