DF5EQ / leandvb-GUI

Simple GUI for LEANDVB, DVB-S receiver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The origin of this program is at http://www.pg540.org/wiki/index.php/Grafische_interface_voor_LEANDVB Uploaded to GitHub at 2020-09-14

  • Simple UI voor LEANDVB, DVBS receiver.
  • requires sudo apt-get install python-imaging-tk package
  • keep everything in your home directory
  • if you add a 180x180 pixels file called logo.png it will be shown in right corner.
  • Leandvb by F4DAV (github leansdr)
  • Wrapper by pe2jko@pg540.org

Update September 2019:

DVBS2 added to the User-interface. LEANDVB capability to decode DVBS-2 was added and therefore the necessary changes were implemented in this latest Wrapper for LeanDVB. This python script is depending on the leandvb software which needs to be compiled first. Once succesfully compiled this script can be copied in your home directory. Also copy "logo.png" Media:Logo_lean.png (please rename the logo_lean to logon.png) and lean_stop script in your home directory. Functional description, you can start the script by typing "python lean18.py" ( without the quotes ). The script will setup default paramaters suitable for DVBS2. In the same command shell the program and also Leandvb writes messages, in case of start up problems please read the messages. First thin is to goto settings and please fill in the path where the script can find leansdr and ldcp_tool. As a start you can keep the defaults. Later you can tweak parameters for example the gain or the specific DVBS2 parameters. The purpose of these parameters can be found on the website of Leandvb. Here you find what is Inpipe, RRC reject filters and roll off factors. This script only will pass these settings on when leandvb needs to be started. Python script will write a file in your home directory called "leanlastrun" and is used to keep the configuration when the program was used. What the python script is doing is to read all the settings and create a small shell script with the parameters needed to decode DVBS or DVBS2 and then it is executed. The shell file which is created is called "runlean". It is an open file which you can investigate what parameters is being given to leandvb. Once leandvb is running and can decode the stream then is it piped to "ffplay". It is a very fast program to show the video. If you click on "stop" then the script will close ffplay and leandvb. Then you have the possibility to select other settings ( for xample another frequency ) and hit start again and so on. Prerequite is LEANDVB with DVBS2 capabilities compiled, then FFPLAY , and Python. In order to show the logo you have to run "sudo apt-get install python-imaging-tk. You can create your own logo to be displayed, just create a png file of approx 180x180 pixels and then copy the file logo.png in your home directory. The Python script is open and can be changed to your own needs. motivation to extend this python script with DVBS-2 was due to the launch of Oscar-100, a radio amateur transponder with WideBand DATV frequency space. This can be received by leandvb and an RTL dongle. Also thanks to Nico (ON7NDR) for his testing and recommendations, he tested directly with stations on Oscar-100. You can copy paste the script below in a file, then name it lean18.py , save it in your home directory. Then type "chmod +x lean18.py" (without the quotes) then you can run it from a command shell by typing ./lean18.py. Or you can type "python lean18.py". PS the name is not important, you can name it what you like. In case you would to receive a zip file with the content please let me know by mail pe2jko@pg540.org and will send you a zip file. Note : In order to install and work with leandvb and this wrapper a reasonable knowledge of Linux is required. Please see below some pictures of succesfull received stations from Eshail-2 Oscar-100. Thanks to Nico !

Uitgebreide Installatie instructies LEANDVB en LEANDVB Interface van Nico ON7NDR Hierbij de zeer uitgebreide installatie instructies inclusief illustraties en schermafbeeldingen. Prachtig stukje werk ! --> Deel 1, Leandvb installatie --> Deel 2 grafisch interface installatie

Update Oktober 2017:

Toegevoegd LimeSDR frontend. Keuze nu uit RTL-SDR of LimeSDR input. Dankzij de aanpassing van de maker van LEANSDR om 16 bit int´s te ondersteunen maakt het mogelijk om ook andere SDR radios te gebruiken. In combinatie met voorbeeldsource van LimeSuite ( BasicRX.cpp ) was het makkelijk om de LimeSDR te gebruiken als front-end. Ik heb in de settings nu een keuze mogelijkheid of je met de RTL of de Lime wilt ontvangen, als je de lime kiest kun je antenne input, bandbreedte en gain instellen. De IQ samples worden naar een pipe geschreven en Leandvb neemt die pipe als input data. Source beschikbaar als je ermee wilt werken. Testen met hoge samplerates zijn nog niet gedaan, alle sample rates van 2000 KS/s tot aan 150 Ks/s werken prima. Op deze manier wordt het mogelijk om op 13cm en 9cm ook DATV te ontvangen.

Motivatie:

LEANDVB is eigenlijk geschreven om de ISS te volgen en een DVB-S opname te maken zodra hij binnen bereik komt met behulp van een RTL SDR dongle. Software wordt aangestuurd door parameters op de command line. Om eenvoudiger het programma te kunnen gebruiken heb ik er een Python script omheen gemaakt waardoor de meest gebruikte parameters ingesteld kunnen worden in daarvoor gemaakte invoer velden. Ik zal het hier beschrijven en delen op deze pagina. Een aantal parameters zijn belangrijk, de ontvangst frequentie, de sample rate en de afwijking van de RTL dongel. (Erg belangrijk bij lage sample rates). Voor deze parameters zijn 3 aparte invoervelden gemaakt, daarnaast kun je opgeven of je de automatische gain aan wilt zetten en of je low sample rate gaat gebruiken, bv 250 KS/s. Script berekend de sample rate die de RTL dongel mag gebruiken. Uiteindelijk maakt dit programma een opstart bestand genaamd ¨runlean¨ en gaat dit opstarten als op button ¨execute¨ klikt. De ingestelde parameters worden ook opgeslagen in een bestand genaamd ¨leanlastrun¨, dit bestand wordt ingelezen als je het programma weer opstart, anders zou je telkens weer de parameters moeten ingeven en dat vinden wij niet zo leuk. Dit script start ook meteen leandvb op, dus je krijgt meteen wat te zien als je op ëxecute¨ klikt. Om een andere instelling te activeren moet je eerst leandvb en eventueel een schermafbeelding sluiten ( kruisje sluiten activeren in 1 van de leandvb windows). PS, als je geen ffplay hebt dan kun je dit vervangen door mplayer in het script.

Installatie tips:

Zie hieronder de source, als je dit copy-paste in een bestand en in dezelfde directory zet als leandv en je geeft het bv de naam ¨leandv-gui.py¨ dan kun je dat bestand een vlag geven dat het opgestart kan worden als je er dubbel op klikt, commando = sudo chmod +x leandvb-gui.py , een andere mogelijkheid om het op te starten is het volgende commando : sudo python leandvb-gui.py . Als je een kleine jpg image van 180x180 pixels genaamd logo.jpg in dezelfde directory zet krijg je een mooi plaatje in de rechter bovenhoek. Als je het er niet inzet blijft die plek leeg.

Ontwikkeld voor Raspberry PI3 (rasbian) en UBUNTU 14.04 of hoger, kan zijn dat bepaalde modules nodig zijn, die kunnen over het algemeen dmv de bekende sudo apt-get commandoś geinstalleerd worden. In ieder geval is sudo apt-get install python-imaging-tk package noodzakelijk dit is om het logo zichtbaar te maken wat overigens zelf te bepalen is, kun je bv je call in zetten (hi)). Voor deze geweldige Software only DVB ontvanger is enige kennis van Linux noodzakelijk. Voordeel is dat je alles kunt aanpassen naar je eigen idee en smaak.

Testen:

2000 KS/s op Raspberry PI 3 is haalbaar in geval je hem op no-preprocessing zet. F4DAV heeft heel veel verbeteringen aangebracht en instelmogelijkheden. Dit geeft flexibiliteit en inzetmogelijkhden op diverse hardware platvormen. Computer systemen met veel rekenpower kunnen de functie Max Sensitivity gebruiken, Raspberry PI kun je zonder pre-processing of GUI nog een hoge sample rate zichtbaar maken. Zeer flexibel en afhankelijk van ontvangst signaal nivo en kwaliteit kun je een zo optimale instelling kiezen. Als je vragen hebt over de grafische schil, stuur een mail naar pe2jko@pg540.org en probeer je te helpen. Voor deze software is goede kennis van Linux noodzakelijk om op te zetten.

About

Simple GUI for LEANDVB, DVB-S receiver

License:GNU General Public License v3.0


Languages

Language:Python 100.0%