(info)
Print instruction for configuration of an SDR setup
Print instruction for configuration of an SDR setup
Print instruction for configuration of an SDR setup
def _print_sdr_instructions(info):
    """Print instruction for configuration of an SDR setup
    """
    util.print_header("SDR Setup")

    util.print_sub_header("Connections")

    print("The SDR setup is connected as follows:\n")

    print("LNB ----> Power Supply ----> RTL-SDR ----> Host\n")

    _item("Connect the RTL-SDR USB dongle to your host PC.")
    _item("Connect the **non-powered** port of the power supply (labeled as "
          "\"Signal to IRD\") to the RTL-SDR using an SMA cable and an "
          "SMA-to-F adapter.")
    _item("Connect the **powered** port (labeled \"Signal to SWM\") of the "
          "power supply to the LNB using a coaxial cable (an RG6 cable is "
          "recommended).")

    print()
    _print("IMPORTANT: Do NOT connect the powered port of the power supply "
           "to the SDR interface. Permanent damage may occur to your SDR "
           "and/or your computer.")

    util.prompt_for_enter()

    util.print_sub_header("Software Requirements")

    print("The SDR-based setup relies on the applications listed below:\n")

    _item("leandvb: a software-based DVB-S2 receiver application.")
    _item("rtl_sdr: reads samples taken by the RTL-SDR and feeds them into "
          "leandvb.")
    _item("TSDuck: unpacks the output of leandvb and produces "
          "IP packets to be fed to Bitcoin Satellite.")
    _item("Gqrx: useful for spectrum visualization during antenna pointing.")

    print("\nTo install them, run:")
    print("""
    blocksat-cli deps install
    """)

    _print("""
        NOTE: This command supports the two most recent Ubuntu LTS, Fedora, and
        CentOS releases. In case you are using another Linux distribution or
        version, please refer to the manual compilation and installation
        instructions at:""")
    print(defs.user_guide_url + "doc/sdr.html")

    util.prompt_for_enter()

    util.print_sub_header("Configuration")

    _print(
        "Next, you can generate the configurations that are needed for gqrx "
        "by running:")

    print("    blocksat-cli gqrx-conf")

    util.prompt_for_enter()

    util.print_sub_header("Running")

    _print(
        "You should now be ready to launch the SDR receiver. You can run it "
        "by executing:")

    print("    blocksat-cli sdr\n")
    print("Or, in GUI mode:\n")
    print("    blocksat-cli sdr --gui\n")

    util.prompt_for_enter()
def _print_sdr_instructions ( info ) : util . print_header ( "SDR Setup" ) util . print_sub_header ( "Connections" ) print ( "The SDR setup is connected as follows:\n" ) print ( "LNB ----> Power Supply ----> RTL-SDR ----> Host\n" ) _item ( "Connect the RTL-SDR USB dongle to your host PC." ) _item ( "Connect the **non-powered** port of the power supply (labeled as " "\"Signal to IRD\") to the RTL-SDR using an SMA cable and an " "SMA-to-F adapter." ) _item ( "Connect the **powered** port (labeled \"Signal to SWM\") of the " "power supply to the LNB using a coaxial cable (an RG6 cable is " "recommended)." ) print ( ) _print ( "IMPORTANT: Do NOT connect the powered port of the power supply " "to the SDR interface. Permanent damage may occur to your SDR " "and/or your computer." ) util . prompt_for_enter ( ) util . print_sub_header ( "Software Requirements" ) print ( "The SDR-based setup relies on the applications listed below:\n" ) _item ( "leandvb: a software-based DVB-S2 receiver application." ) _item ( "rtl_sdr: reads samples taken by the RTL-SDR and feeds them into " "leandvb." ) _item ( "TSDuck: unpacks the output of leandvb and produces " "IP packets to be fed to Bitcoin Satellite." ) _item ( "Gqrx: useful for spectrum visualization during antenna pointing." ) print ( "\nTo install them, run:" ) print ( """
    blocksat-cli deps install
    """ ) _print ( """
        NOTE: This command supports the two most recent Ubuntu LTS, Fedora, and
        CentOS releases. In case you are using another Linux distribution or
        version, please refer to the manual compilation and installation
        instructions at:""" ) print ( defs . user_guide_url + "doc/sdr.html" ) util . prompt_for_enter ( ) util . print_sub_header ( "Configuration" ) _print ( "Next, you can generate the configurations that are needed for gqrx " "by running:" ) print ( "    blocksat-cli gqrx-conf" ) util . prompt_for_enter ( ) util . print_sub_header ( "Running" ) _print ( "You should now be ready to launch the SDR receiver. You can run it " "by executing:" ) print ( "    blocksat-cli sdr\n" ) print ( "Or, in GUI mode:\n" ) print ( "    blocksat-cli sdr --gui\n" ) util . prompt_for_enter ( )