nimrtlsdr

A Nim wrapper for librtlsdr


Keywords
rtl-sdr, wrapper, bindings, rtlsdr
License
BSD-3-Clause
Install
nimble install nimrtlsdr

Documentation

nimrtlsdr

A Nim wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)

Description

nimtlsdr is a simple Nim interface to devices supported by the RTL-SDR project, which turns certain USB DVB-T dongles employing the Realtek RTL2832U chipset into a low-cost, general purpose software-defined radio receiver. It wraps all the functions in the librtlsdr library (including asynchronous read support).

Supported Platforms:

  • Linux
  • OS X
  • Windows

Installation

Dependencies

Building nimrtlsdr

  • Download and install git.

  • Download and install the Nim tools.

  • Download the pre-built rtl-sdr library and install.

  • Install the nimrtlsdr package:

    Using nimble:

    $ nimble install git://github.com/jpoirier/nimrtlsdr

    $ git clone git@github.com:jpoirier/nimrtlsdr.git

    Go to the nimrtlsdr/examples folder and...

    ...if you installed using nimble:

    $ nim c rtlsdr_example.nim

    ...if you didn't install using nimble you need to provide the path to the nimrtlsdr library source:

    $ nim c --path:../src rtlsdr_example.nim

  • Insert the DVB-T/DAB/FM dongle into a USB port and run the rtlsdr_example example program.

    $ ./rtlsdr_example

Credit

-joe