HackRF readme update and readd hackrf arch

This commit is contained in:
30hours 2024-04-08 12:29:53 +00:00
parent 9070d9a6db
commit 3e656f16c5
4 changed files with 11 additions and 5 deletions

View file

@ -43,6 +43,7 @@ add_executable(blah2
src/capture/Source.cpp src/capture/Source.cpp
src/capture/rspduo/RspDuo.cpp src/capture/rspduo/RspDuo.cpp
src/capture/usrp/Usrp.cpp src/capture/usrp/Usrp.cpp
src/capture/hackrf/HackRf.cpp
src/process/ambiguity/Ambiguity.cpp src/process/ambiguity/Ambiguity.cpp
src/process/clutter/WienerHopf.cpp src/process/clutter/WienerHopf.cpp
src/process/detection/CfarDetector1D.cpp src/process/detection/CfarDetector1D.cpp
@ -69,6 +70,7 @@ target_link_libraries(blah2 PRIVATE
fftw3 fftw3
fftw3_threads fftw3_threads
sdrplay sdrplay
hackrf
) )
target_include_directories(blah2 PRIVATE RAPIDJSON_INCLUDE_DIRS "rapidjson/allocators.h") target_include_directories(blah2 PRIVATE RAPIDJSON_INCLUDE_DIRS "rapidjson/allocators.h")

View file

@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y software-properties-common \
&& apt-get update \ && apt-get update \
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y \ && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y \
g++ make cmake git curl zip unzip doxygen graphviz \ g++ make cmake git curl zip unzip doxygen graphviz \
libfftw3-dev pkg-config gfortran \ libfftw3-dev pkg-config gfortran libhackrf-dev \
libuhd-dev=4.6.0.0-0ubuntu1~jammy1 \ libuhd-dev=4.6.0.0-0ubuntu1~jammy1 \
uhd-host=4.6.0.0-0ubuntu1~jammy1 \ uhd-host=4.6.0.0-0ubuntu1~jammy1 \
&& apt-get autoremove -y \ && apt-get autoremove -y \

View file

@ -19,7 +19,7 @@ services:
- /dev/usb:/dev/usb:rw - /dev/usb:/dev/usb:rw
network_mode: host network_mode: host
privileged: true privileged: true
command: "/blah2/bin/blah2 -c config/config.yml" command: "/blah2/bin/blah2 -c config/config-hackrf.yml"
container_name: blah2 container_name: blah2
blah2_web: blah2_web:
@ -40,5 +40,5 @@ services:
volumes: volumes:
- ./config:/usr/src/app/config - ./config:/usr/src/app/config
network_mode: host network_mode: host
command: "node server.js /usr/src/app/config/config.yml" command: "node server.js /usr/src/app/config/config-hackrf.yml"
container_name: blah2-api container_name: blah2-api

View file

@ -2,6 +2,10 @@
This requires 2 HackRF units with a shared clock signal and a shared hardware trigger. This requires 2 HackRF units with a shared clock signal and a shared hardware trigger.
# Instructions ## Instructions
TODO - Follow this [guide](https://hackrf.readthedocs.io/en/latest/hardware_triggering.html) to set up the shared clock and hardware trigger.
- Install the HackRF package on the host using `sudo apt install hackrf` to access HackRF tools.
- Run `hackrf_info` to get HackRF serial numbers.
- Edit the `config/config-hackrf.yml` file to add serial numbers and parameters.
- Update the `docker-compose.yml` file to use the above config file in both locations.