Skip to content

Instantly share code, notes, and snippets.

View sam210723's full-sized avatar

Sam sam210723

View GitHub Profile
@sam210723
sam210723 / gnuradio-wsl2.md
Last active November 2, 2024 06:23
Install GNU Radio 3.8 in WSL2 (Ubuntu 20.04)

Setup Xming X Server in Windows

Download and install Xming with all default settings. Uncheck "Launch Xming" on the last setup screen.

Start "XLaunch" from the Start Menu and click next until the "Specify parameter settings" screen. Check "No Access Control" then click next, then finish.

Setup GNU Radio

Launch a WSL2 instance and run the following commands:

@sam210723
sam210723 / dmr_demod_lpf_iq.grc
Last active March 20, 2024 19:07
DMR Demodulator in GNU Radio 3.10
options:
parameters:
author: sam210723
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
@sam210723
sam210723 / install.sh
Last active February 3, 2023 05:00
GNURadio + gr-iio + gr-osmosdr-gqrx + gqrx + SoapySDR + SoapyRemote + SoapyPlutoSDR install on fresh Ubuntu 16.04.3 LTS
# GNURadio + gr-iio setup (ADALM-PLUTO plugged in)
cd ~/Documents
mkdir PlutoSDR
cd PlutoSDR/
sudo apt-get install git python-pip
pip install --upgrade pip
pip install setuptools
sudo pip install git+https://github.com/gnuradio/pybombs.git
pybombs auto-config
pybombs recipes add-defaults
@sam210723
sam210723 / README.md
Last active May 7, 2022 07:47
Script to personalise a Debian-based distro (tested with Ubuntu 20.04)
wget -q -O - https://gist.github.com/sam210723/2422e56cd42593aeb49d23c512320888/raw/personalise-debian.sh | bash
@sam210723
sam210723 / adsbx-feeder-connection.py
Created March 29, 2022 01:20
Check the status of your ADS-B Exchange feeder
"""
adsbx-feeder-connection.py
Check the status of your ADS-B Exchange feeder
"""
import sys
import urllib.request
json_output = "json" in sys.argv
@sam210723
sam210723 / tsduck-himawari.sh
Last active March 23, 2022 00:17
Demodulate HimawariCast carrier with TSDuck and handle Multi-Protocol Encapsulation wrapping
tsp -I dvb --device-name /dev/dvb/adapter0:1 --lnb 5150 --delivery-system "DVB-S2" --frequency 4148000000 --modulation QPSK --symbol-rate 2586148 --fec-inner "3/5" --roll-off 0.2 --polarity "horizontal" -P mpe --pid 0x03E9 --udp-forward --log -O drop
@sam210723
sam210723 / nerfnet-install.sh
Last active December 19, 2021 08:51
Setup nRF24L01 and nerfnet on Raspberry Pi Zero W (Raspbian Buster)
#!/bin/bash
# Prepare for installation
cd ~
mkdir nrf
cd nrf
sudo apt update
sudo apt install -y git cmake build-essential libtclap-dev
echo "Enable SPI in raspi-config"
sudo raspi-config
@sam210723
sam210723 / glscopeclient-install.sh
Last active November 2, 2021 23:20
Install scopehal and scopehal-apps (glscopeclient)
# Install dependencies
sudo apt-get install -y build-essential git cmake pkg-config libglm-dev libgtkmm-3.0-dev libsigc++-2.0-dev libyaml-cpp-dev liblxi-dev texlive texlive-fonts-extra libglew-dev
# Install Catch2 v2
git clone https://github.com/catchorg/Catch2
cd Catch2
git checkout v2.x
git fetch
git pull
mkdir build
@sam210723
sam210723 / ffmpeg-waveform-vectorscope.bat
Last active June 13, 2021 12:27
Waveform and Vectorscope monitor using FFmpeg video filters
@echo off
REM https://ffmpeg.org/ffmpeg-filters.html
REM https://trac.ffmpeg.org/wiki/FancyFilteringExamples
ffplay -window_title "FFmpeg Waveform and Vectorscope" -i %1 -vf "split=4[vid][vec][wavh][wavv],[vec]vectorscope=mode=color3:graticule=green[vec],[wavh]waveform=mode=column:graticule=green:components=1:display=overlay[wavh],[wavv]waveform=mode=row:components=1:display=overlay[wavv],[vid][wavh]vstack[s1],[wavv][vec]vstack[s2],[s1][s2]hstack[out]"
@sam210723
sam210723 / iridium-setup.sh
Last active June 1, 2021 02:32
Install gr-iridium and iridium-toolkit for receiving and decoding frames from Iridium NEXT satellites
# Install dependencies (GNURadio 3.9.1)
sudo apt update
sudo apt install -y build-essential cmake git gnuradio gr-osmosdr swig3.0 libsndfile1-dev pybind11-dev python-tk
sudo apt install -y --no-install-recommends mplayer
volk_profile
# Install gr-iridium OOT
git clone https://github.com/muccc/gr-iridium
cd gr-iridium
git checkout maint-3.9