Skip to content

Commit

Permalink
Doc updates and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lk-iqt committed Mar 18, 2024
1 parent 1d6d43f commit dd88909
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
12 changes: 7 additions & 5 deletions bin/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ else
fi

echo "Installing GamutRF dependencies..."
sudo apt install -y git libjpeg-dev python3 python3-pip python3-tk uhd-host gpsd gpsd-clients chrony pps-tools onboard at-spi2-core tmux
sudo apt install -y git libjpeg-dev python3 python3-pip python3-tk uhd-host gpsd gpsd-clients chrony pps-tools onboard at-spi2-core tmux vim

echo "Setting up GamutRF..."
sudo uhd_images_downloader -t "b2|usb"
git clone https://github.com/IQTLabs/gamutRF
git clone https://github.com/IQTLabs/BirdsEye
sudo su -
mkdir -p /flash/gamutrf

if [[ $PWD != *"gamutRF"* ]]; then
git clone https://github.com/IQTLabs/gamutRF
git clone https://github.com/IQTLabs/BirdsEye
fi
sudo mkdir -p /flash/gamutrf
36 changes: 35 additions & 1 deletion docs/4-OPERATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The main components are located in

After linking the relevant docker-compose file(s), you can call the needed services or use all services by not specifying individual containers.

The `VOL_PREFIX` is the location all output files will be saved. If needed, run `uhd_find_devices` to check if SDR can be found.
The `VOL_PREFIX` is the location all output files will be saved. Check and/or comment out the `deploy` and `depends_on` sections of `gamutrf` in `orchestrator.yml` if you are using a non-x86 architecture or not using torchserve respectively. If needed, run `uhd_find_devices` to check if SDR can be found.

### Scan a single frequency
```bash
Expand Down Expand Up @@ -121,6 +121,40 @@ VOL_PREFIX=/flash/gamutrf FREQ_START=2.4e9 FREQ_END=0 docker compose -f orchestr

gamutRF supports the use of multiple radios on the same machine, whether for scanning or recording. When using multiple Ettus SDRs, assign a specific radio to a specific container by specifying the ```serial``` UHD driver argument. To list all connected Ettus radios, run ```uhd_find_devices```. Then add the ```--sdrargs``` argument to the specific container. For example, ```--sdrargs num_recv_frames=960,recv_frame_size=16360,type=b200,serial=12345678```.

To use multiple radios in docker compose: in `orchestrator.yml` create a gamutrf container (gamutrf1, gamutrf2, etc.) for each radio. Each container should contain the `sdrargs` with the appropriate serial and incremented port values as seen below.
```bash
gamutrf1:
...
command:
- gamutrf-scan
- --sdrargs=num_recv_frames=500,recv_frame_size=16360,type=b200,serial=XXXXXXX
- --logport=10000
- --inference_port=10001
...
ports:
- '9001:9001'
- '10000:10000'
- '10001:10001'
...
gamutrf2:
...
command:
- gamutrf-scan
- --sdrargs=num_recv_frames=500,recv_frame_size=16360,type=b200,serial=XXXXXXX
- --logport=11000
- --inference_port=11001
...
ports:
- '9004:9001'
- '11000:11000'
- '11001:11001'
...
waterfall:
command:
- gamutrf-waterfall
- --scanners=gamutrf1:10000,gamutrf2:11000
```

gamutRF also supports the KrakenSDR (which presents as five librtlsdr radios). You can run a scanner container for each radio, by adding a serial number - for example, ```--sdr=rtlsdr,serial=1000```. Use ```SoapySDRUtil --find``` to check the radios are correctly connected.

## Manually initiating worker actions
Expand Down

0 comments on commit dd88909

Please sign in to comment.