MCPcopy Create free account
hub / github.com/30hours/blah2

github.com/30hours/blah2 @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
613 symbols 1,449 edges 58 files 21 documented · 3% updated 4mo ago★ 4677 open issues

Browse by type

Functions 552 Types & classes 61
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

blah2

A real-time radar which can support various SDR platforms. See a live instance at http://radar4.30hours.dev.

blah2 example display

Features

  • 2 channel processing for a reference and surveillance signal.
  • Designed to be used with external RF source (for passive radar or active radar).
  • Outputs delay-Doppler maps to a web front-end.
  • Record raw IQ data by pressing spacebar on the web front-end.
  • Saves delay-Doppler maps in a JSON array.

SDR Support

Services

The build environment consists of a docker-compose.yml file running the following services;

  • The radar processor responsible for IQ capture and processing.
  • The API middleware responsible for reading TCP ports for delay-Doppler map data, and exposing this on a REST API.
  • The web front-end displaying processed radar data.

Usage

Building the code using the following instructions;

  • Install docker and docker-compose on the host machine.
  • Clone this repository to some directory.
  • Install SDRplay API to run service on host.
  • Edit the config/config.yml for desired processing parameters.
  • Run the docker-compose command.
sudo git clone http://github.com/30hours/blah2 /opt/blah2
cd /opt/blah2
sudo chown -R $USER .
sudo chmod a+x ./lib/sdrplay-3.15.2/SDRplay_RSP_API-Linux-3.15.2.run
sudo ./lib/sdrplay-3.15.2/SDRplay_RSP_API-Linux-3.15.2.run --tar -xvf -C ./lib/sdrplay-3.15.2
cd lib/sdrplay-3.15.2/ && sudo ./install_lib.sh && cd ../../
sudo docker network create blah2
sudo systemctl enable docker
sudo docker compose up -d --build

Alternatively avoid building and use the pre-built Docker packages;

sudo docker pull ghcr.io/30hours/blah2:latest
vim docker-compose.yml
--- build: .
+++ image: ghcr.io/30hours/blah2:latest
sudo docker compose up -d

The radar processing output is available on http://localhost:49152.

Documentation

Future Work

  • Add a tracker in delay-Doppler space.
  • Support for the HackRF/RTL-SDR using a front-end mixer, to sample 2 RF channels in 1 stream.
  • Support for the Kraken SDR with all 5 channels.
  • Add SoapySDR support for the C++ API to include a wide range of SDR platforms.

FAQ

  • If the SDRplay RSPduo does not capture data, restart the API service (on the host) using the script sudo ./script/blah2_rspduo_restart.bash.

Contributing

Pull requests are welcome - especially for adding support for a new SDR.

  • Currently have an issue where the USRP B210 is timing out after 5-10 mins and crashes the code. Convinced it's an issue with my usage of the API - contact me for more info.

Links

  • Join the Discord chat for sharing results and support.

  • Watch a Youtube video showing the hardware and software setup.

License

MIT

Core symbols most depended-on inside this repo

Shape

Method 404
Function 148
Class 61

Languages

TypeScript72%
C++28%

Modules by API surface

html/lib/bootstrap-5.2.3.min.js348 symbols
html/lib/jquery-3.6.4.min.js81 symbols
src/data/Track.cpp17 symbols
src/data/Map.cpp16 symbols
src/capture/rspduo/RspDuo.cpp14 symbols
src/data/IqData.cpp13 symbols
src/process/ambiguity/Ambiguity.cpp10 symbols
src/blah2.cpp9 symbols
src/data/Detection.cpp8 symbols
src/capture/kraken/Kraken.cpp7 symbols
src/capture/hackrf/HackRf.cpp7 symbols
src/process/tracker/Tracker.cpp6 symbols

For agents

$ claude mcp add blah2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page