pavel-demin / red-pitaya-notes

Notes on the Red Pitaya Open Source Instrument
http://pavel-demin.github.io/red-pitaya-notes/
MIT License
334 stars 207 forks source link

Cant connect GRC on Windows (Radioconda) #1039

Open JensZander opened 2 years ago

JensZander commented 2 years ago

Description of the setup:

Description of the problem:

The Red Pitaya Souce block is not able to connect to RP application

_Traceback (most recent call last): ..... ..... red_pitaya.py", line 44, in init fd = os.dup(self.datasock.fileno()) OSError: [Errno 9] Bad file descriptor

Connecting to Alpine (pTTy) works fine. Running PowerSDR with sdr_receiver_hpsdr_122_88 also works fine so the hardware seems OK. Is there some Linux/WIndows incompatibility ?

Steps to reproduce the problem:

  1. Compile and run trx_am.grc on GRC
pavel-demin commented 2 years ago

Is there some Linux/WIndows incompatibility ?

Yes, the way red_pitaya.py handles sockets and file descriptors is incompatible with Windows.

If you want to use the 122-16 board with GNU Radio on Windows, then I think that the easiest solution is to use the applications compatible with HPSDR and the following GNU Radio block:

https://github.com/Tom-McDermott/gr-hpsdr

Another solution is to use Windows Subsystem for Linux (WSL) to run GNU Radio:

https://wiki.gnuradio.org/index.php/WindowsInstall#WSL_|_Ubuntu

pavel-demin commented 2 years ago

I have just realized that gr-hpsdr also requires Linux.

So, looks like using WSL is the only solution.

JensZander commented 2 years ago

Thanks Pavel - will try the WSL-solution. /jens

JensZander commented 2 years ago

I went to native linux (Ubuntu 20.4) and now I got the connection working with GR 3.10.1.1.
A minor issue - there seems to be some incompatabilty in the "template" flowgraphs trx_am and trx_ssb: The resampler box could not handle float expressions för the Interpolation/Decimation parameters (fixed with int(..) ) In the trx_ssb flowgraph The FFT filter tap description 'firdes' produces an error ' type object 'gnuradio.filter.filter_python.firdes' has no attribute 'WIN_HAMMING' Looking at the Gnuradio dicussion threads this seems to be version related - will be looking to find a fix to this.

JensZander commented 2 years ago

Fixed with the new "Band-pass filter taps" block in GRC 3.9 och 3.10