SatHelperApp
The OpenSatelliteProject Satellite Helper Application! This is currently a LRIT/HRIT Demodulator / Decoder program based on libSatHelper and xritdemod.
It is currently WIP and in Alpha State. Use with care.
Building
That's a standard go project. Make sure you have libSatHelper
and libairspy
installed and run:
go get github.com/OpenSatelliteProject/SatHelperApp/cmd/SatHelperApp
It will be installed into your ${GOPATH}/bin
. If you have it it on your path, just run SatHelperApp
Have fun!
Ubuntu Instructions to get it running
Base tools:
sudo apt install build-essential cmake swig
Quick Instructions to get GO 1.10 running:
sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.10-go
mkdir ~/go
export GOPATH=~/go
export GOROOT=/usr/lib/go-1.10
export PATH=$PATH:$GOPATH/bin:$GOROOT/bin
Install LibSatHelper:
git clone https://github.com/opensatelliteproject/libsathelper/
cd libsathelper
make libcorrect
sudo make libcorrect-install
make
sudo make install
Install libAirspy:
git clone https://github.com/airspy/airspyone_host/
cd airspyone_host
mkdir build
cd build
cmake .. -DINSTALL_UDEV_RULES=ON
make -j4
sudo make install
sudo ldconfig
Quick Instructions to get SatHelperApp running assuming you have Go 1.10, libSatHelper and libAirspy installed.
go get github.com/OpenSatelliteProject/SatHelperApp
SatHelperApp
This should create a SatHelperApp.cfg
file in the same folder you ran SatHelperApp
. You can edit it and tune for your needs.
Have fun!
Static libLimeSuite
LimeSuite by default only compiles dynamic libraries (see https://github.com/myriadrf/LimeSuite/issues/241), so the default behaviour of SatHelperApp wrapper is to dynamic link. However is possible to statically link the libLimeSuite so no external .so / .dll is needed.
To do that, build the libLimeSuite
with -DBUILD_SHARED_LIBS=OFF
to generate libLimeSuite.a
file.
# Compile Static
cmake .. -DBUILD_SHARED_LIBS=OFF
make -j8
sudo make install
Then change LimeDevice.go ldflags line from:
#cgo LDFLAGS: -lLimeSuite
to
#cgo LDFLAGS: -l:libLimeSuite.a -l:libstdc++.a -static-libgcc -lm -lusb-1.0
And then compile SatHelperApp as normal.
Thanks
I need to say thanks to all people that helped me with the project:
And also the people that contributed with:
Also thank to these companies for providing hardware for testing OpenSatelliteProject: