2023-05-04 11:25:37 +00:00
# blah2
2023-11-05 11:58:13 +00:00
A real-time radar which can support various SDR platforms. See a live instance at [http://radar4.30hours.dev ](http://radar4.30hours.dev ).
2023-05-04 11:25:37 +00:00
![blah2 example display ](./example.png "blah2" )
## Features
2024-04-08 12:35:57 +00:00
- Support for the [SDRplay RSPDuo ](https://www.sdrplay.com/rspduo/ ), [USRP ](https://www.ettus.com/products/ ) (only tested on the B210) and [HackRF ](https://greatscottgadgets.com/hackrf/ ).
2023-05-04 11:25:37 +00:00
- 2 channel processing for a reference and surveillance signal.
2024-02-18 12:50:31 +00:00
- Designed to be used with external RF source (for passive radar or active radar).
2023-05-04 11:25:37 +00:00
- Outputs delay-Doppler maps to a web front-end.
- Record raw IQ data by pressing spacebar on the web front-end.
2024-02-18 12:50:31 +00:00
- Saves delay-Doppler maps in a JSON array.
2023-05-04 11:25:37 +00:00
## 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
2024-02-18 02:26:13 +00:00
Building the code using the following instructions;
2023-05-04 11:25:37 +00:00
- Install docker and docker-compose on the host machine.
- Clone this repository to some directory.
2023-10-25 13:18:03 +00:00
- Install SDRplay API to run service on host.
2024-02-18 12:50:31 +00:00
- Edit the `config/config.yml` for desired processing parameters.
2023-05-04 11:25:37 +00:00
- Run the docker-compose command.
```bash
2023-10-26 23:55:12 +00:00
sudo git clone http://github.com/30hours/blah2 /opt/blah2
cd /opt/blah2
2024-03-02 10:15:01 +00:00
sudo chown -R $USER .
sudo chmod a+x ./lib/sdrplay-3.14.0/SDRplay_RSP_API-Linux-3.14.0.run
sudo ./lib/sdrplay-3.14.0/SDRplay_RSP_API-Linux-3.14.0.run --tar -xvf -C ./lib/sdrplay-3.14.0
2024-03-28 15:36:38 +00:00
cd lib/sdrplay-3.14.0/ & & sudo ./install_lib.sh
2023-10-26 23:55:12 +00:00
sudo docker network create blah2
sudo systemctl enable docker
2024-02-18 02:26:13 +00:00
sudo docker compose up -d --build
2023-05-04 11:25:37 +00:00
```
2024-02-18 02:26:13 +00:00
Alternatively avoid building and use the pre-built Docker packages;
2024-02-18 12:50:31 +00:00
```bash
2024-03-02 10:15:01 +00:00
sudo docker pull ghcr.io/30hours/blah2:latest
2024-02-18 12:50:31 +00:00
vim docker-compose.yml
--- build: .
+++ image: ghcr.io/30hours/blah2:latest
sudo docker compose up -d
```
2024-02-18 02:26:13 +00:00
2023-05-04 11:25:37 +00:00
The radar processing output is available on [http://localhost:49152 ](http://localhost:49152 ).
2023-05-20 04:56:36 +00:00
## Documentation
- See `doxygen` pages hosted at [http://doc.30hours.dev/blah2 ](http://doc.30hours.dev/blah2 ).
2023-05-04 11:25:37 +00:00
## Future Work
2023-11-29 09:46:11 +00:00
- Add a tracker in delay-Doppler space.
- Support for the HackRF and RTL-SDR using a front-end mixer to sample 2 RF channels in 1 stream.
2024-02-18 12:50:31 +00:00
- Support for the Kraken SDR.
2024-01-20 13:45:15 +00:00
- Add [SoapySDR ](https://github.com/pothosware/SoapySDR ) support for the [C++ API ](https://github.com/pothosware/SoapySDR/wiki/Cpp_API_Example ) to include a wide range of SDR platforms.
2023-05-04 11:25:37 +00:00
## FAQ
2024-04-02 10:42:32 +00:00
- If the SDRplay RSPduo does not capture data, restart the API service (on the host) using the script `sudo ./script/blah2_rspduo_restart.bash` .
2023-05-04 11:25:37 +00:00
## Contributing
2024-02-06 11:32:54 +00:00
Pull requests are welcome - especially for adding support for a new SDR.
2023-05-04 11:25:37 +00:00
2024-02-18 12:50:31 +00:00
- 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.
2024-01-18 13:25:32 +00:00
2024-04-28 05:24:57 +00:00
## Links
- Join the [Discord ](https://discord.gg/ewNQbeK5Zn ) chat for sharing results and support.
- Watch a [Youtube video ](https://www.youtube.com/watch?v=FF2n28qoTQM ) showing the hardware and software setup.
2023-05-04 11:25:37 +00:00
## License
2023-10-25 13:18:03 +00:00
[MIT ](https://choosealicense.com/licenses/mit/ )