Code Monkey home page Code Monkey logo

grwebsdr's Introduction

GrWebSDR

GrWebSDR is a web SDR receiver.

Build requirements

On Fedora (tested on F25), you will need the following packages:

  • gnuradio-devel
  • boost-devel
  • libvorbis-devel
  • libogg-devel
  • libwebsockets-devel
  • json-c-devel
  • gr-osmosdr-devel
  • openssl-devel
  • sqlite-devel (version 3)

Build instructions

$ autoreconf --install
$ ./configure
$ make

How to run it

$ cd src/cpp
$ ./grwebsdr

You will be asked to enter some parameters for your tuner. If you don't want to fill in the parameters each time you run the server, you can create a configuration file (see the file sample_config.json) and run it as

$ ./grwebsdr -f <config file>

You will also be asked to enter a new admin user name + password for the web UI.

Now visit http://localhost:8080/ in your browser.

For more options see the output of

$ ./grwebsdr -h

Creating a user database

If you don't want to type in the admin credentials each time you run GrWebSDR, or if you want to have more than one privileged user, you can create a user database. GrWebSDR uses sqlite3 as the database backend.

To create a new user database and add a new user 'admin' with password 'secret', do the following:

$ sqlite3 users.db
SQLite version 3.14.2 2016-09-12 18:50:49
Enter ".help" for usage hints.
sqlite> CREATE TABLE users(user VARCHAR, pass);
sqlite> INSERT INTO users VALUES ('admin', 'secret');
sqlite> .quit

You can now pass the created database file to GrWebSDR using the '-d' option.

Managing the database through GrWebSDR itself is planned, but not yet implemented.

Known bugs

  1. When using a RTL-SDR tuner then sometimes upon loading the web UI, or when changing some receiver parameter, the server hangs, printing 'O' characters to stderr. This is caused by a race condition originating in rtl-sdr and gr-osmosdr. A patch for rtl-sdr is available from https://pastebin.com/5ykfNvdp (SHA-1: 9e8f0bc2d4955b9a86003ecf88d51c0021aa5a9d), and for gr-osmosdr from https://pastebin.com/SCPGBGWe (SHA-1: e4c0fc1b1051d5211f02bd81d7c840e2bcc04f7b). The fix isn't complete, but it mostly works. Note that the patch for rtl-sdr adds a new API call, which the gr-osmosdr patch uses, so you'll need to build rtl-sdr first.

License

Copyright (C) 2017 Ondřej Lysoněk

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see the file COPYING). If not, see http://www.gnu.org/licenses/.

grwebsdr's People

Contributors

olysonek avatar xlysonek avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.