righthalfplane / SdrGlut

SdrGlut is a simple software defined radio - using glut and glui for its interface
MIT License
85 stars 15 forks source link

RedPitaya Support #26

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi, using it on Mac Catalina. Works fine with RTLSDR. Just tried to add support for my RedPitaya adding the module SopayRedPitaya. I compiled it with macports and added to the folder "modules0.8" inside SDRglut package. At the start it find the module but not the board. I think I'm missing something! 😃 Thanks and have a good day!

Schermata 2021-08-25 alle 11 10 21

righthalfplane commented 3 years ago

It looks like you did everything right and it should work. I can think of a few possible problems.

1). sdrplay is screwing things up - even though you do not want it. 1). The fix - remove "../SdrGlut.app/Contents/MacOS/lib/SoapySDR/modules0.8/libsdrPlaySupport.so" 1). If the above fails - put "../SdrGlut.app/Contents/MacOS/lib/SoapySDR/modules0.8/libsdrPlaySupport.so back" and install SDRplay_RSP_API-MacOSX-3.07.3 - you can get it from - https://www.sdrplay.com/downloads/ - it should not hurt anything to have it installed and it may help.

2). Get a version of SoapySDRUtil build for modules0.8 and move it into same directory as SdrGlut.

cd ../SdrGlut.app/Contents/MacOS export DYLD_LIBRARY_PATH=. export SOAPY_SDR_ROOT=. SoapySDRUtil --info SoapySDRUtil --find

If the " --find" finds your RedPitaya, the you are left with option 3).

3). The RedPitaya driver does not return one of the 'labels' that SdrGlut is expecting (the pluto driver had this problem) to see. 3). The fix - build SdrGlut from source and have it print all of the enumeration dat.

ghost commented 3 years ago

Hi thanks for the reply. :) Tried all with no luck. Checked other apps and noted that all (gqrx, cubicsdr...) didn't have a discovery function for the RP. Network address and port is entered by the user. The only one that have discovery function is linHPSDR but work in HPSDR "emulation".

With only SoapySDRUtil --find The board is not found. if I use SoapySDRUtil --find="driver=redpitaya, addr=192.168.1.100" this is the output Schermata 2021-08-26 alle 10 53 09

Just for being sure I've replaced in SdrGlut my compiled rtlsdr module and worked. Schermata 2021-08-26 alle 10 20 14

righthalfplane commented 3 years ago

It looks like the redpitaya is a tcp/ip device.

The RSpace Netsdr is tcp/ip device, but its device driver has a auto find device option - I guess that the redpitaya driver is missing that.

I guess I will have to add the search line input as a possible option. The are some other devices that need it to set some special options - so I have been considering putting it in, but I just have not got around to doing it - yet.

righthalfplane commented 3 years ago

@effeerre75 - I added the device string to SdrGlut. Set it to -

driver=redpitaya, addr=192.168.1.100

and it should find the redpitaya. It will be in the next version of SdrGlut or you can get it now by building SdrGlut from the source at -

https://github.com/righthalfplane/SdrGlut

ghost commented 3 years ago

Had time to make a quick check! Worked fine! Thanks!

Schermata 2021-09-05 alle 22 26 30 Schermata 2021-09-05 alle 22 27 49