Use different UHD repo for AntSDR E200

This commit is contained in:
30hours 2024-01-27 01:38:19 +00:00
parent 7133cb6d74
commit 63267f8a65
3 changed files with 86 additions and 9 deletions

View file

@ -3,14 +3,13 @@ LABEL maintainer="30hours <nathan@30hours.dev>"
WORKDIR /blah2
ADD lib lib
RUN apt-get update && apt-get install -y software-properties-common \
&& apt-add-repository ppa:ettusresearch/uhd \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y \
g++ make cmake git curl zip unzip doxygen graphviz \
RUN apt-get update \
&& apt-get install -y g++ make cmake git curl zip unzip doxygen graphviz \
libfftw3-dev pkg-config gfortran \
libuhd-dev=4.6.0.0-0ubuntu1~jammy1 \
uhd-host=4.6.0.0-0ubuntu1~jammy1 \
# UHD api dependencies
autoconf automake build-essential ccache cpufrequtils ethtool inetutils-tools \
libboost-all-dev libncurses5 libncurses5-dev libusb-1.0-0 libusb-1.0-0-dev libusb-dev python3-dev \
python3-mako python3-numpy python3-requests python3-scipy python3-setuptools python3-ruamel.yaml \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
@ -32,7 +31,16 @@ RUN chmod +x /blah2/lib/sdrplay-3.0.7/SDRplay_RSP_API-Linux-3.07.1.run \
&& ldconfig
# install UHD API
RUN uhd_images_downloader
RUN git clone https://github.com/EttusResearch/uhd /opt/uhd \
&& mkdir -p /opt/uhd/host/build && cd /opt/uhd/host/build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/uhd -DENABLE_PYTHON_API=OFF \
-DENABLE_EXAMPLES=OFF -DENABLE_TESTS=OFF -DENABLE_X400=OFF \
-DENABLE_N320=OFF -DENABLE_X300=OFF -DENABLE_USRP2=OFF -DENABLE_USRP1=OFF \
-DENABLE_N300=OFF -DENABLE_E320=OFF -DENABLE_E300=OFF \
-DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF -DENABLE_MAN_PAGES=OFF \
-DENABLE_DPDK=OFF ../ && make && make install && ldconfig
ENV LD_LIBRARY_PATH=/opt/uhd/lib:$LD_LIBRARY_PATH
RUN /opt/uhd/lib/uhd/utils/uhd_images_downloader.py
FROM blah2_env as blah2
LABEL maintainer="30hours <nathan@30hours.dev>"

View file

@ -0,0 +1,69 @@
capture:
fs: 2000000
fc: 204640000
device:
type: "Usrp"
address: "localhost"
subdev: "A:A A:B"
antenna: ["RX2", "RX2"]
gain: [20.0, 20.0]
replay:
state: false
loop: true
file: '/opt/blah2/replay/file.rspduo'
process:
data:
cpi: 0.5
buffer: 1.5
overlap: 0
ambiguity:
delayMin: -10
delayMax: 400
dopplerMin: -200
dopplerMax: 200
clutter:
delayMin: -10
delayMax: 400
detection:
pfa: 0.00001
nGuard: 2
nTrain: 6
minDelay: 5
minDoppler: 15
nCentroid: 6
tracker:
initiate:
M: 3
N: 5
maxAcc: 10
delete: 10
smooth: "none"
network:
ip: 0.0.0.0
ports:
api: 3000
map: 3001
detection: 3002
track: 3003
timestamp: 4000
timing: 4001
iqdata: 4002
truth:
asdb:
enabled: false
ip: 0.0.0.0
port: 30000
ais:
enabled: false
ip: 0.0.0.0
port: 30001
save:
iq: true
map: false
detection: false
timing: false
path: "/blah2/save/"

View file

@ -22,7 +22,7 @@ services:
network_mode: host
privileged: true
command: >
sh -c "/blah2/bin/blah2 -c config/config.yml"
sh -c "/blah2/bin/blah2 -c config/config-antsdr-e200.yml"
container_name: blah2
blah2_frontend: