Git Product home page Git Product logo

skygate's Introduction

skygate - Modular Python/GTK HAB Receiver and Uploader

HAB receiver software for tracking LoRa and RTTY payloads, and uploading telemetry and image data to Habitat along with the receiver's GPS position. Uses external software (dl-fldigi) to decode RTTY, using audio from a real radio or from an RTL-SDR using rtl_fm program.

Receiver

This software is written for Python 3.

It needs these items to be installed:

sudo apt-get install wmctrl rtl-sdr dl-fldigi ssdv 

Raspbian Configuration

Enable the following with raspi-config:

Interfacing Options --> SPI --> Yes

If you are using a GPS HAT, then you also need to set the serial port:

Interfacing Options --> Serial --> No (login) --> Yes (hardware)

Loopback Sound Device

Create a new ~/.asoundrc file using the supplied file, with

cp ~/skygate/.asoundrc ~ 

Usage (Autostart)

Edit the following text file:

~/.config/lxsession/LXDE-pi/autostart

and append these 2 lines:

@/home/pi/skygate/skygate/start_gateway.sh  
@/home/pi/skygate/skygate/start_rtty.sh

Usage (Manual)

Set up the loopback audio device, with

modprobe snd-aloop pcm_substreams=1

Start the RTL SDR software with

rtl_fm -M usb -f 434.100M -s 192000 -r 8000 - | aplay -f S16_LE -t raw -c 1

Start dl-fldigi with

./src/dl-fldigi --wfall-only

At startup, enter your receiver callsign. Then, on the audio config page, select Port Audio and the first device.

Then configure dl-fldigi through its menus (these settings suit pytrack and Pi In The Sky default settings):

Op Mode --> RTTY Custom --> Set 300 baud, 8 data bits, 2 stop bits, 830Hz shift

(or, if not using SSDV) 50 baud, 7 data bits, 2 stop bits, 830Hz shift

dl-fldigi includes an fldigi bug that causes it to sometimes fail on startup with an error code of 11. Try again if this happens.

The receiver program can be started manually from a terminal window in an X session with:

cd
cd skygate/gateway
python3 skygate.py

skygate's People

Contributors

daveake avatar ghollingworth avatar xecdesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skygate's Issues

LoRa: RSSI Display

Hello,

To decide if a signal is good or if the reception strength has changed, it would be good to display the RSSI level on the main screen or lora screen.

Would that be possible?

No GTK enabled python3

Hello install normal via apt on stretch:

pi@XSkyGateway:~/skygate/skygate $ ./skygate-gateway
Traceback (most recent call last):
  File "skygate.py", line 4, in <module>
    gi.require_version('Gtk', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

pi@XSkyGateway:~/skygate/skygate $ python3 ./test_lora.py
Traceback (most recent call last):
  File "./test_lora.py", line 1, in <module>
    from skygate.lora import *
  File "/home/pi/skygate/skygate/skygate.py", line 4, in <module>
    gi.require_version('Gtk', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

pi@XSkyGateway:~ $ skygate
Traceback (most recent call last):
  File "/usr/bin/skygate", line 2, in <module>
    import skygate.skygate
  File "/usr/lib/python3/dist-packages/skygate/skygate.py", line 4, in <module>
    gi.require_version('Gtk', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

pi@XSkyGateway:~ $ sudo skygate
Traceback (most recent call last):
  File "/usr/bin/skygate", line 2, in <module>
    import skygate.skygate
  File "/usr/lib/python3/dist-packages/skygate/skygate.py", line 4, in <module>
    gi.require_version('Gtk', '3.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

whats wrong?

How can i call the test files

Hello,

i'll test the lora connection between this boards:

Tracker: dragino Lora/GPS Hat (http://wiki.dragino.com/index.php?title=Lora/GPS_HAT)
Skygate: pi-gate (https://github.com/pi-gate/driver)

Problem i can't start the test_lora.py, maybe i'm wrong:

i@XSkyGateway:/usr/lib/python3/dist-packages/skygate $ python3 ./test_lora.py
Traceback (most recent call last):
  File "./test_lora.py", line 1, in <module>
    from skygate.lora import *
  File "/usr/lib/python3/dist-packages/skygate/skygate.py", line 7, in <module>
    import skygate.misc
ImportError: No module named 'skygate.misc'; 'skygate' is not a package

How can i call this files on my raspbian with installed skygate or from sources.

cu
Frank

HAB Ballon is tracking?

Hmm, i don't found a balloon tracking on habhub tracker.habhub.org ... just the gps position of chaising car, but where is my balloon data on this tracker?

sed error on install

The final part of the install, the autostart script throws a sed error:

sed: -e expression #1, char 1: unknown command: `@'
sed: -e expression #1, char 1: unknown command: `@'

Problems with skygate and asoundrc

Hello.

At first I have to admit that Iโ€˜m pretty new to all things Pi and Linux.

I followed the description step by step, I think. Installed ssdv dm-fldigi rtl-sdr etc.

I tried to create the file under home/Pi/skygate, but it told me there is no such directory.

Python3-Skygate is installed.

Would be huge if one could help a beginner. #

loraChannel default=1

Please let the user decide which module he want to use:
https://github.com/raspberrypi/skygate/blob/master/skygate/skygate.py#L106

IMHO, a good candidate for setup screen. (Channel 0 or 1)

I test and try to find the bug for houres, better to display the connect data @ console to find the problem:
@XSkyGateway:~/skygate/skygate $ python3 ./skygate.py
Cannot get client list properties.
(_NET_CLIENT_LIST or _WIN_CLIENT_LIST)
Cannot get client list properties.
(_NET_CLIENT_LIST or _WIN_CLIENT_LIST)
LORA: Ch: 0 Freq: 434.434 Mode: 1

apt install doesnt work

Hmm, whats wrong here?

pi@XSkyGateway:~ $ sudo apt update
....
pi@XSkyGateway:~ $ sudo apt install python3-skygate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3-skygate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.