Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulh002 committed Jul 2, 2022
1 parent 526d4ab commit b7c6355
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This file was last opened by PID 21544
This file was last opened by PID 22248
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .visualgdb/CodeExplorer/NodeFlags.dat
Binary file not shown.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Generated by VisualGDB project wizard.
#Note: VisualGDB will automatically update this file when you add new sources to the project.

cmake_minimum_required(VERSION 2.7)
project(SoapyHifiBerry)
set(LIBRARIES_FROM_REFERENCES -lpthread -lSoapySDR -lliquid -lasound)
add_library(SoapyHifiBerry SHARED SoapyHifiBerry.cpp AudioInput.cpp AudioOutput.cpp configfile.cpp configoption.cpp RtAudio.cpp si5351.cpp SoapyHifiBerrySettings.cpp SoapyHifiBerryStreaming.cpp strlib.cpp Audiodefs.h AudioInput.h AudioOutput.h configfile.h configoption.h DataBuffer.h RtAudio.h si5351.h SoapyHifiBerry.h strlib.h)
target_compile_definitions(SoapyHifiBerry PRIVATE __LINUX_ALSA__)
target_compile_options(SoapyHifiBerry PRIVATE)
set_property(TARGET SoapyHifiBerry PROPERTY CXX_STANDARD 17)
target_link_libraries(SoapyHifiBerry "${LIBRARIES_FROM_REFERENCES}")
install(TARGETS SoapyHifiBerry DESTINATION /usr/local/lib/arm-linux-gnueabihf/SoapySDR/modules0.8/)
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,24 @@ I adapted the design for use with Raspberry PI 4B. On the PCB there is a Tayloe
A SN74HC74 is used to devide the clock by 4 and deliver 90 degree phase shift.
The SoapyHifiBerry driver work with my SDR software SDRBERRY, I did not test it with other SDR software and all is an experiment.

SoapyHifiBerry will create config file HifiBerry.cfg Si5351 correction can be configured and audio adc/dac alsa device name set
[si5351]
correction = "50000"

[sound]
device = "snd_rpi_hifiberry_dacplusadcpro"


ToDo:
- CMake compilation
- Transmit IQ interface
- phase correction (if necessary)
- level correction

Done:
- Si5351 I2C interface
- Gain interface
- Receive IQ signal
- Transmit IQ interface
- CMake compilation

Installation of libraries is necessary:
- Liquid DSP
Expand All @@ -22,6 +32,30 @@ Installation of libraries is necessary:

# Installation

## Install libraries

git clone https://github.com/pothosware/SoapySDR.git
cd SoapySDR
git pull origin master
mkdir build
cd build
cmake ..
make -j4
sudo make install
sudo ldconfig

cd ~
sudo apt-get install -y fftw3-dev
git clone https://github.com/jgaeddert/liquid-dsp
git checkout v1.4.0
sudo apt-get install -y automake autoconf
cd liquid-dsp
./bootstrap.sh
./configure
make -j4
sudo make install
sudo ldconfig


## Install and compile with VisualStudio and VisualGDB
Download the repository in pi home directory
Expand All @@ -31,6 +65,17 @@ Open project in VisualStudio and compile with VisualGDB
```

## Install and compile with CMake

git clone https://github.com/paulh002/SoapyHifiBerry
cd SoapyHifiBerry
mkdir build
cd build
cmake ..
make
sudo make install


![Tayloe](https://github.com/paulh002/SoapyHifiBerry/blob/master/Tayloe.jpg)

![sdrberry](https://github.com/paulh002/SoapyHifiBerry/blob/master/HifiBerry%20Tayloe.jpg)
Expand Down

0 comments on commit b7c6355

Please sign in to comment.