[MacPorts] #48451: sdrplay support for gr-osmosdr
#48451: sdrplay support for gr-osmosdr -------------------------------------------------+------------------------- Reporter: fjturk@… | Owner: macports- Type: update | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: sdrplay, gnuradio, gqrx, gr-osmosdr | Version: 2.3.3 | Port: gr-osmosdr -------------------------------------------------+------------------------- Currently, gr-osmosdr has support for the SDRplay functionality, see [http://sdr.osmocom.org/trac/wiki/GrOsmoSDR] But the current build of gr-osmosdr (20150716) on macports and its variants, at least from what I can see, does not offer the option for -DENABLE_NONFREE=TRUE which would look for the SDRplay lib and include (which are available from http://www.sdrplay.com/mac.html). From SDRplay community forums, see [http://www.sdrplay.com/community/viewtopic.php?f=5&t=99], For gr-osmosdr to find the API, the .so and .h will need to be in /usr/local/lib and /usr/local/include and be called /usr/local/lib/libmirsdrapi-rsp-1.1.so with symbolic links to /usr/local/lib/libmirsdrapi-rsp.so and /usr/local/lib/libmir_sdr.so /usr/local/include/mirsdrapi-rsp.h I tried building gr-osmosdr manually with the gr-osmosdr code build: [http://sdr.osmocom.org/trac/wiki/GrOsmoSDR] and it worked (from the output of cmake ../ -DENABLE_NONFREE=TRUE below): {{{ -- Configuring SDRplay RSP (NONFREE) support... -- Dependency LIBSDRPLAY_FOUND = TRUE -- Enabling SDRplay RSP (NONFREE) support. -- Override with -DENABLE_SDRPLAY=ON/OFF -- -- ###################################################### -- # Gnuradio enabled components -- ###################################################### -- * Python support -- * FUNcube Dongle -- * FUNcube Dongle Pro+ -- * IQ File Source -- * Osmocom RTLSDR -- * RTLSDR TCP Client -- * Ettus USRP Devices -- * Osmocom MiriSDR -- * SDRplay RSP (NONFREE) -- * HackRF Jawbreaker -- * nuand bladeRF -- * RFSPACE Receivers -- * AIRSPY Receiver }}} Would it be possible for the next update to gr-osmosdr on macports be made to have the support option for SDRplay? That way everything needed for SDR radio people (gnuradio, gqrx etc) are all under macports and users don't need to maintain gr-osmosdr separately. (Or, perhaps there is an option that I have not located on the current build...?). -- Ticket URL: <https://trac.macports.org/ticket/48451> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr -------------------------+------------------------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: sdrplay, gnuradio, gqrx, gr-osmosdr Port: gr-osmosdr | -------------------------+------------------------------------------------- Changes (by khindenburg@…): * cc: fjturk@… (removed) * cc: michaelld@… (added) Comment: CC michaelld to get his opinion -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr -------------------------+------------------------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: sdrplay, gnuradio, gqrx, gr-osmosdr Port: gr-osmosdr | -------------------------+------------------------------------------------- Comment (by michaelld@…): See also: https://groups.google.com/forum/#!topic/gqrx/OtTNWVTTjFU . Looks like the SDRPlay Mac OS X drivers are not ready for prime time yet. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr -------------------------+------------------------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: sdrplay, gnuradio, gqrx, gr-osmosdr Port: gr-osmosdr | -------------------------+------------------------------------------------- Comment (by markjohnson@…): I have an SDRPlay, and I applied this diff to my Portfile, and I can confirm this allowed me to do "port install gr-osmosdr +sdrplay" and have the SDRPlay work reasonably well with gqrx, also installed via MacPorts. Regarding the Mac OS X drivers not being ready for prime time... They are outdated compared to the Windows drivers. I believe the main issue for me was actually bugs in part of the gr-osmosdr library code, which resulted in lots of pops and static. The diff that improved gr-osmosdr SDRPlay functionality greatly for me is: https://github.com/SDRplay/gr- osmosdr/commit/6b0454f6e1d8a4a8dde8956d74466b30e02b1db9 It looks like this code has not yet been added to git://git.osmocom.org /gr-osmosdr I'm also looking into fixing that code completely via a separate thread to read from the device, a FIFO circular buffer, etc. Anyway, I think even in the current state, before the above diff is applied to the main gr-osmosdr repo, this patch is still very useful. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Changes (by mf2k@…): * keywords: sdrplay, gnuradio, gqrx, gr-osmosdr => * version: 2.3.3 => * type: update => enhancement -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by michaelld@…): Thanks for the feedback. It looks like the SDRPlay folks have moved the download behind a serial # check; the actual download still works, but one cannot get new download info with a valid serial #. This move does not bode well for FOSS such as MacPorts. Does anyone know one of the SDRPlay developers with whom we can discuss this issue & try to find a reasonable compromise? I'll leave this patch here for now for folks to try out, but I can't commit in in good faith until the SDRPlay folks have told me directly that they are on board and willing to work with me to keep their software available to MacPorts users without a serial #. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by michaelld@…): New patch for SDRplay 1.7. You'll need to revert your prior patch before testing this one. A good way to do this would be: {{{ cd $(port dir gr-osmosdr) svn revert Portfile patch -p0 < PATH_TO/gr-osmosdr_sdrplay_1.7.diff }}} or the equivalent. You could also do {{{ patch -R -p0 < PATH_TO/gr-osmosdr_sdrplay.diff }}} if you've downloaded and used the prior patch. If you already have gr-osmosdr +sdrplay installed, then just do: {{{ sudo port upgrade gr-osmosdr }}} If you don't then you'll need to do: {{{ sudo port install gr-osmosdr +sdrplay }}} I don't have an SDRplay to do testing on, but this patch works for installing it with gr-osmosdr. That said, according to the SDRplay folks gr-osmosdr needs some fixes to take full advantage of the SDRplay API / ABI / hardware. I'm leaving that up to those developers, respectively, though I'm happy to play intermediary. Also: SDRplay customer support has contacted me about this ticket. We're working on it. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by markjohnson@…): Replying to [comment:8 michaelld@…]:
New patch for SDRplay 1.7. You'll need to revert your prior patch before testing this one.
I downloaded the gr-osmosdr_sdrplay_1.7.diff file and applied it and I can confirm it works for me. Marks-Mac-mini:~ mrj$ grep MIR_SDR_API_VERSION /opt/local/include/mir_sdr.h #define MIR_SDR_API_VERSION (float)(1.70) Definitely downloaded the new API version and compiled gr-osmosdr successfully using +sdrplay. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by michaelld@…): I just attached a new patch that provides the latest SDRplay ABI, 1.9.8, obtained from the PKG now provided (1.7 was a tarball). -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:11> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by k_a_i@…): Upgraded patch from michaelld to latest SDRplay API version 1.95.1. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by michaelld@…): Thanks! Question: Is 1.95.1 newer than 1.9.8? Seems like their versioning could use a little work ... -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:13> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: I added SDRplay in r150483. I then added in gr-osmosdr +sdrplay in r150484. Please note that +sdrplay is NOT enabled by default. You have to choose it. I might change this in the future to be a default variant, but for now I'd like others to try this out & verify it. You'll want to do "sudo port sync" or "sudo port selfupdate" to get the changes. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:14> MacPorts <https://www.macports.org/> Ports system for OS X
#48451: sdrplay support for gr-osmosdr --------------------------+-------------------------------- Reporter: fjturk@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: Port: gr-osmosdr | --------------------------+-------------------------------- Comment (by michaelld@…): BTW> SDRplay version is 1.95.2, which is the latest provided according to their website. -- Ticket URL: <https://trac.macports.org/ticket/48451#comment:15> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts