OpenRSP Net: the OpenRSP source for SDR++
=========================================

Streams IQ from a receiver on an OpenRSP server (the headless openrsp-iqd, or the OpenRSP Server
app on Android) into SDR++, which then shows its own spectrum and waterfall and demodulates
locally. Works in SDR++ and in SDR++ Community Edition. Ready-built for Linux (x86-64 and 64-bit
ARM) and Windows (64-bit); on macOS, build it from source/ (see source/README).


1. Put the module where SDR++ looks for modules
-----------------------------------------------

Windows
    Copy windows-x64\openrsp_net_source.dll into the "modules" folder inside the SDR++ folder
    (next to sdrpp.exe).

Linux
    sudo cp linux-x86_64/openrsp_net_source.so /usr/lib/sdrpp/plugins/
    (On a 64-bit ARM computer such as a Raspberry Pi, use linux-aarch64/ instead. If SDR++ was
    built from source into /usr/local, use /usr/local/lib/sdrpp/plugins/.)

macOS (after building it from source/: see source/README)
    Keep the built openrsp_net_source.dylib somewhere permanent, for example
    ~/Library/Application Support/sdrpp/, then quit SDR++ and add its full path to the "modules"
    list in
        ~/Library/Application Support/sdrpp/config.json
    for example:
        "modules": ["/Users/<your user name>/Library/Application Support/sdrpp/openrsp_net_source.dylib"],
    (Copying it into SDR++.app would break the app's signature.) macOS asks once whether to
    allow a module you built yourself.

    The same "modules" list works on every platform, if you would rather not copy files into the
    SDR++ install.


2. Create the source
--------------------

Start SDR++, open "Module Manager" in the side menu, type a name (for example OpenRSP Net), pick
"openrsp_net_source" from the list and press "+". It stays there from then on.


3. Use it
---------

Pick "OpenRSP Net" under Source, then the server:

    Paste the server's link    as its app or admin page shows it, for example
                               https://192.168.1.20:8073/#token=...  The token in it (the right to
                               take control of a receiver) is kept for that server and not shown.
    Type its address           192.168.1.20, openrsp.local:8073, or a tunnel's address
    Find it                    "Find servers on this network" lists the servers on your LAN

Press Connect to list the server's receivers, choose one (and the tuner, on an RSPduo), a sample
rate and the quality, then press SDR++'s Play button.

    The server's own certificate
        A server on your network presents a certificate of its own making. The first time, the
        menu shows its SHA-256 fingerprint and a "Trust this certificate" button; it is remembered
        for that server, and a changed certificate is refused until you trust it again.

    Sample rates
        The full-band rates send the receiver's whole band. The narrow rates (250 kS/s to 1 MS/s)
        send one channel of it, cut out on the server: much less data, for a server reached through
        the internet.

    Shared receivers
        Several people can use one receiver. One is in control (frequency, rate, gain); the others
        listen to the band it sends and can tune within it with a narrow rate. "Take control" moves
        control to you when the server allows it: always on a server that needs no token, otherwise
        with the link that carries the token.

    Quality
        How far below the band's own noise the samples' rounding stays; "Lossless" uses the most
        data. The server may allow less than you choose. It can be changed while streaming.

The status lines show who is in control, the connection's live throughput, and the reason when
the server refuses (a full server is tried again by itself every 15 seconds).
