GithubHelp home page GithubHelp logo

eat4toast / gnuradio-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcnewlin/gnuradio-web

0.0 0.0 0.0 92.52 MB

Experimental WebAssembly build of GNU Radio

License: GNU General Public License v3.0

Shell 0.11% JavaScript 36.27% C++ 1.44% Python 59.67% Makefile 0.20% HTML 0.12% Mako 1.05% Dockerfile 1.15%

gnuradio-web's Introduction

WebAssembly build of GNU Radio

what

Experimental WebAssembly build of GNU Radio that runs in a browser tab

why

For some reason I thought it would be easy

narrator: it was not, in fact, easy

but I eventually got a proof-of-concept ~working, so I thought I'd share :)

status: experimental proof-of-concept

This is a proof-of-concept WebAssembly build of GNU Radio Companion which can generate and run basic flowgraphs. It includes gr-qtgui and supports visualization using the QT GUI sink-blocks.

The GNU Radio Companion UI is running the feature-grc-qt branch of GNU Radio, which itself is a work-in-progress, so some basic capabilities (like the ability to edit block properties) are missing.

Support for USB software-defined radios is not yet implemented, but will be possible. (Earlier in the pandemic I published standalone WebUSB proof-of-concepts for USRP B210, HackRF, and PlutoSDR.)

how to run a simple flowgraph with QT GUI visualization

  1. run cd webapp && ./server.py

  2. open your web browser (and the F12 developer-tools)

  3. navigate to http://localhost:8000

    It will block on the browser UI thread while loading, which takes on the order of 15-30 seconds. If you have the developer console open, you can watch stdout/stderr while it loads.

  4. add/connect some blocks (eg. Signal Source -> Throttle -> QT GUI Sink)

  5. click Generate

  6. click Execute

how make gnuradio-web

The repo includes prebuilt binaries, but if you like watching cross-compilation marathons, you can build it from source:

  1. install docker, docker-compose, and emsdk

  2. run make base && make webapp in the repository root

    (I've only tested this on an Ubuntu 20.04 x86_64 host. It probably works in other environments but YMMV.)

simple flowgraph demo

flowgraph-demo.mp4

gnuradio-web's People

Contributors

eat4toast avatar marcnewlin 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.