1xBTS 1xBTS

Download

Source distribution. Clone, install dependencies for your radio, and run.

1. Clone & Common Setup

terminal
$ git clone https://github.com/chrismoos/1xbts.git
$ cd 1xbts
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ . "$HOME/.cargo/env"
$ sudo apt-get install -y build-essential pkg-config protobuf-compiler \
    cmake git libssl-dev libclang-dev
# Voice gateway users: build Baresip re/libre from source; see docs.
# Linux:
$ sudo modprobe fou ipip
$ docker compose up -d
# macOS:
$ docker compose -f docker-compose.yml -f docker-compose.macos.yml up -d
# postgres :45432 · dashboard :3000 · fou-nat :17012

2. Pick A Radio Backend

Install the system library for your SDR, then run cdma-nib with the matching feature.

bladeRF --features bladerf-backend
$ sudo apt-get install -y libbladerf-dev
$ cargo run --release -p cdma-nib --no-default-features --features bladerf-backend -- \
    --config-dir config \
    --radio-config config/radio_bladerf_micro2.json
USRP / UHD --features uhd-backend
$ sudo apt-get install -y libuhd-dev
$ cargo run --release -p cdma-nib --no-default-features --features uhd-backend -- \
    --config-dir config \
    --radio-config config/radio_uhd_b210_native.json
LimeSDR --features lime-backend
$ sudo apt-get install -y liblimesuite-dev
$ cargo run --release -p cdma-nib --no-default-features --features lime-backend -- \
    --config-dir config \
    --radio-config config/radio_limesdr_mini2_native.json