├── src ├── scripts │ ├── stop_gqrx.sh │ ├── stop_fldigi.sh │ ├── stop_opencpn.sh │ ├── stop_adsb.sh │ ├── stop_gpredict.sh │ ├── stop_keyboard.sh │ ├── stop_navigation.sh │ ├── stop_vnc1.sh │ ├── stop_vnc2.sh │ ├── start_vnc1.sh │ ├── start_vnc2.sh │ ├── disable_gps.sh │ ├── start_chrono.sh │ ├── enable_gps.sh │ ├── stop_all_applications.sh │ ├── start_keyboard.sh │ ├── start_fldigi.sh │ ├── start_opencpn.sh │ ├── start_adsb.sh │ ├── start_gpredict.sh │ ├── start_gqrx.sh │ └── start_navigation.sh ├── api │ ├── packet.py │ ├── gui │ │ ├── message_window.ui │ │ ├── config_window.ui │ │ ├── barmenu.ui │ │ ├── statusbar.ui │ │ ├── toolbar.ui │ │ └── menu_2.ui │ ├── forwarder.py │ ├── data_models.py │ ├── cyberdeck.py │ ├── main.py │ ├── config.ini │ └── server.py ├── tests │ ├── bluetoothClient.py │ ├── test_battadc.py │ ├── test_controller.py │ └── test_bluetoothserver.py ├── config │ ├── default.conf │ ├── directsamp.conf │ ├── iq_file.conf │ ├── iq_file3.conf │ ├── iq_file4.conf │ ├── iq_file2.conf │ ├── vhf_index1.conf │ ├── hf_index1.conf │ ├── iq_file_demo.conf │ ├── vhf_index0.conf │ ├── generic.conf │ └── hf_index0.conf ├── controller │ ├── controller.py │ └── controller.ino └── gui │ ├── message_window.ui │ ├── barmenu.ui │ ├── statusbar.ui │ └── toolbar.ui ├── doc ├── img │ ├── logos.png │ └── box_outlined.jpg ├── schematics │ └── rpi_cyberdeck_schematics.pdf ├── requirements.txt └── config.txt ├── .gitignore ├── README.md └── LICENSE /src/scripts/stop_gqrx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | killall gqrx 4 | -------------------------------------------------------------------------------- /src/scripts/stop_fldigi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | killall fldigi 4 | -------------------------------------------------------------------------------- /src/scripts/stop_opencpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | killall opencpn 4 | -------------------------------------------------------------------------------- /src/scripts/stop_adsb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | killall dump1090 4 | killall ads-b.pl 5 | -------------------------------------------------------------------------------- /src/scripts/stop_gpredict.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pkill -f gpredict 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /doc/img/logos.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomMladenov/pisdr-cyberdeck/HEAD/doc/img/logos.png -------------------------------------------------------------------------------- /src/scripts/stop_keyboard.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pkill -f matchbox-keyboard 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /src/scripts/stop_navigation.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | pkill -F /home/pi/tmp/xastir.pid 4 | exit 0 5 | -------------------------------------------------------------------------------- /src/scripts/stop_vnc1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | vncserver -kill :1 &>/dev/null 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /src/scripts/stop_vnc2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | vncserver -kill :2 &>/dev/null 4 | 5 | exit 0 6 | -------------------------------------------------------------------------------- /doc/img/box_outlined.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomMladenov/pisdr-cyberdeck/HEAD/doc/img/box_outlined.jpg -------------------------------------------------------------------------------- /src/scripts/start_vnc1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | vncserver :1 -name "REMOTE SESSION 1" -dpi 96 &>/dev/null 4 | exit 0 5 | -------------------------------------------------------------------------------- /src/scripts/start_vnc2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | vncserver :2 -name "REMOTE SESSION 2" -dpi 96 &>/dev/null 4 | exit 0 5 | -------------------------------------------------------------------------------- /doc/schematics/rpi_cyberdeck_schematics.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomMladenov/pisdr-cyberdeck/HEAD/doc/schematics/rpi_cyberdeck_schematics.pdf -------------------------------------------------------------------------------- /src/scripts/disable_gps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sudo systemctl stop gpsd 4 | sudo echo -e '\xB5\x62\x02\x41\x08\x00\x00\x00\x00\x00\x02\x00\x00\x00\x4D\x3B' > /dev/ttyS0 5 | -------------------------------------------------------------------------------- /src/scripts/start_chrono.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep "kronometer" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup kronometer > /dev/null & 7 | else 8 | exit 0 9 | fi 10 | exit 0 11 | -------------------------------------------------------------------------------- /src/scripts/enable_gps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sudo systemctl stop gpsd 4 | sudo echo -e '\xB5\x62\x02\x41\x08\x00\x00\x00\x00\x00\x01\x00\x00\x00\x4C\x37' > /dev/ttyS0 5 | sudo systemctl start gpsd 6 | -------------------------------------------------------------------------------- /doc/requirements.txt: -------------------------------------------------------------------------------- 1 | fastapi 2 | PyQt5 3 | rpi-backlight 4 | mgrs 5 | adafruit-circuitpython-ina219 6 | aprspy 7 | alsaaudio 8 | telnetlib 9 | Adafruit_ADS1x15 10 | pyais 11 | netifaces 12 | rtlsdr 13 | influxdb-client 14 | -------------------------------------------------------------------------------- /src/api/packet.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import datetime 7 | 8 | class Packet(object): 9 | 10 | def __init__(self, tag, payload): 11 | 12 | self.tag = tag 13 | self.utc = datetime.datetime.utcnow() 14 | self.payload = payload 15 | -------------------------------------------------------------------------------- /src/scripts/stop_all_applications.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | killall dump1090 4 | killall ads-b.pl 5 | killall xastir 6 | killall gqrx 7 | killall dumpvdl2 8 | killall rtl_ais 9 | killall rtl_udp 10 | killall fldigi 11 | killall opencpn 12 | killall rtl_tcp 13 | killall rs41mod 14 | killall dfm09mod 15 | killall rtl_fm 16 | -------------------------------------------------------------------------------- /src/scripts/start_keyboard.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " match" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup matchbox-keyboard > /dev/null & 7 | sleep 0.5 8 | $(xdotool windowmove $(xdotool search --name Keyboard) 0 290) 9 | else 10 | $(xdotool windowraise $(xdotool search --name 'Keyboard')) 11 | fi 12 | exit 0 13 | -------------------------------------------------------------------------------- /src/scripts/start_fldigi.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " fldigi" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup fldigi -g 729x445+0+28 > /dev/null & 7 | else 8 | $(xdotool windowactivate $(xdotool search --name 'fldigi')) 9 | $(xdotool windowsize $(xdotool search --name 'fldigi') 729 445) 10 | $(xdotool windowmove $(xdotool search --name 'fldigi') 0 28) 11 | fi 12 | exit 0 13 | -------------------------------------------------------------------------------- /src/scripts/start_opencpn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " opencpn" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup opencpn > /dev/null & 7 | sleep 10 8 | window=$(xdotool search --onlyvisible --name opencpn ) 9 | $(xdotool windowsize $window 729 445) 10 | $(xdotool windowmove $window 0 -25) 11 | else 12 | window=$(xdotool search --onlyvisible --name opencpn ) 13 | $(xdotool windowraise $window) 14 | fi 15 | exit 0 16 | -------------------------------------------------------------------------------- /src/scripts/start_adsb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep "dump1090" 4 | if [ $? -ne 0 ] 5 | then 6 | ps -e | grep " xastir" 7 | if [ $? -eq 0 ] 8 | then 9 | nohup $(/home/pi/git/dump1090/dump1090 --ppm -1.4 --gain 49 --net --net-sbs-port 30003 --phase-enhance --oversample --fix --device $1 --ppm $2) > /dev/null & 10 | sleep 1 11 | nohup $(/usr/share/xastir/scripts/ads-b.pl BASE 25318) > /dev/null & 12 | exit 0 13 | else 14 | exit -2 15 | fi 16 | else 17 | exit -1 18 | fi 19 | -------------------------------------------------------------------------------- /src/tests/bluetoothClient.py: -------------------------------------------------------------------------------- 1 | """ 2 | A simple Python script to send messages to a sever over Bluetooth using 3 | Python sockets (with Python 3.3 or above). 4 | """ 5 | 6 | import socket 7 | 8 | serverMACAddress = '00:07:61:45:9A:43' 9 | port = 1 10 | 11 | 12 | try: 13 | s = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM) 14 | s.connect((serverMACAddress,port)) 15 | while 1: 16 | text = input() 17 | if text == "quit": 18 | break 19 | s.send(bytes(text, 'UTF-8')) 20 | s.close() 21 | except (Exception, KeyboardInterrupt) as e: 22 | print('Exception: {E}'.format(E=e)) 23 | s.close() 24 | -------------------------------------------------------------------------------- /src/scripts/start_gpredict.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " gpredict" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup gpredict > /dev/null & 7 | sleep 3 8 | $(xdotool windowsize $(xdotool search --name 'Gpredict' | head -4 | tail -1) 729 437) 9 | $(xdotool windowmove $(xdotool search --name 'Gpredict' | head -4 | tail -1) -8 -40) 10 | else 11 | $(xdotool windowraise $(xdotool search --name 'Gpredict' | head -4 | tail -1)) 12 | $(xdotool windowsize $(xdotool search --name 'Gpredict' | head -4 | tail -1) 729 437) 13 | $(xdotool windowmove $(xdotool search --name 'Gpredict' | head -4 | tail -1) -8 -40) 14 | fi 15 | exit 0 16 | -------------------------------------------------------------------------------- /src/scripts/start_gqrx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " gqrx" 4 | if [ $? -ne 0 ] 5 | then 6 | nohup gqrx -s windows -c /home/pi/git/pisdr-cyberdeck/src/config/generic.conf > /dev/null & 7 | sleep 11 8 | $(xdotool windowsize $(xdotool search --name 'Gqrx' | head -4 | tail -1) 729 437) 9 | $(xdotool windowmove $(xdotool search --name 'Gqrx' | head -4 | tail -1) -8 -22) 10 | else 11 | $(xdotool windowraise $(xdotool search --name 'Gqrx' | head -4 | tail -1)) 12 | $(xdotool windowsize $(xdotool search --name 'Gqrx' | head -4 | tail -1) 729 437) 13 | $(xdotool windowmove $(xdotool search --name 'Gqrx' | head -4 | tail -1) -8 -22) 14 | fi 15 | exit 0 16 | -------------------------------------------------------------------------------- /src/tests/test_battadc.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import os 7 | import sys 8 | import time 9 | import datetime 10 | import subprocess 11 | import board 12 | 13 | import Adafruit_ADS1x15 14 | 15 | 16 | if __name__ == '__main__': 17 | 18 | adc = Adafruit_ADS1x15.ADS1115(address=0x48) 19 | 20 | GAIN = 1 21 | 22 | while True: 23 | try: 24 | capacity1_raw = adc.read_adc(0, gain=GAIN) 25 | capacity2_raw = adc.read_adc(1, gain=GAIN) 26 | capacity3_raw = adc.read_adc(2, gain=GAIN) 27 | capacity4_raw = adc.read_adc(3, gain=GAIN) 28 | 29 | print('{CH1} {CH2} {CH3} {CH4}'.format(CH1=capacity1_raw, CH2=capacity2_raw, CH3=capacity3_raw, CH4=capacity4_raw)) 30 | 31 | except Exception as e: 32 | print(e) 33 | 34 | time.sleep(1) 35 | -------------------------------------------------------------------------------- /src/scripts/start_navigation.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ps -e | grep " xastir" 4 | if [ $? -ne 0 ] 5 | then 6 | #clear pid file 7 | echo "" > /home/pi/tmp/xastir.pid 8 | nohup xastir & > /dev/null && echo $! > /home/pi/tmp/xastir.pid 9 | sleep 3 10 | $(xdotool windowsize $(xdotool search --name xastir | head -2 | tail -1) 729 441) 11 | $(xdotool windowmove $(xdotool search --name xastir | head -2 | tail -1) 0 -21) 12 | $(xdotool windowsize $(xdotool search --name xastir | head -1) 729 450) 13 | $(xdotool windowmove $(xdotool search --name xastir | head -1) 0 -30) 14 | else 15 | $(xdotool windowraise $(xdotool search --name xastir | head -2 | tail -1)) 16 | $(xdotool windowraise $(xdotool search --name xastir | head -1)) 17 | $(xdotool windowsize $(xdotool search --name xastir | head -2 | tail -1) 729 441) 18 | $(xdotool windowmove $(xdotool search --name xastir | head -2 | tail -1) 0 -21) 19 | $(xdotool windowsize $(xdotool search --name xastir | head -1) 729 450) 20 | $(xdotool windowmove $(xdotool search --name xastir | head -1) 0 -30) 21 | fi 22 | exit 0 23 | -------------------------------------------------------------------------------- /src/tests/test_controller.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import os 7 | import sys 8 | import time 9 | import datetime 10 | import subprocess 11 | import RPi.GPIO as GPIO 12 | import board 13 | import crc8 14 | 15 | from adafruit_bus_device.i2c_device import I2CDevice 16 | 17 | CMD_ID = 0x33 18 | PARAM_ID = 0x54 19 | 20 | if __name__ == '__main__': 21 | 22 | controller_device = I2CDevice(board.I2C(), 0x04) 23 | #hash = crc8.crc8() 24 | 25 | 26 | while True: 27 | try: 28 | if PARAM_ID == 0x53: 29 | command = '{command_id};{param_id};{gps_lat};{gps_lon}'.format(command_id=CMD_ID, param_id=PARAM_ID, gps_lat=50.02, gps_lon=8.4013) 30 | rList = command.encode('utf-8') 31 | elif PARAM_ID == 0x54: 32 | now = datetime.datetime.utcnow() 33 | command = [CMD_ID, PARAM_ID, int(now.hour), int(now.minute), int(now.second), int(now.year)-2000, int(now.month), int(now.day)] 34 | rList = command 35 | 36 | arr = bytearray(rList) 37 | payload = arr #+ bytearray.fromhex(str(crc)) 38 | controller_device.write(payload) 39 | print(str(payload)) 40 | 41 | except Exception as e: 42 | print(e) 43 | 44 | time.sleep(1) 45 | -------------------------------------------------------------------------------- /src/api/gui/message_window.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 457 10 | 128 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color: rgba(186, 186, 186); 18 | 19 | 20 | 21 | 22 | 23 | 150 24 | 85 25 | 166 26 | 25 27 | 28 | 29 | 30 | QDialogButtonBox::Cancel|QDialogButtonBox::Ok 31 | 32 | 33 | 34 | 35 | 36 | 25 37 | 10 38 | 416 39 | 66 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/api/forwarder.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | 7 | import sys 8 | import os 9 | import json 10 | import zmq 11 | import signal 12 | import socket 13 | import argparse 14 | import pickle 15 | import datetime 16 | 17 | 18 | class Packet(object): 19 | 20 | def __init__(self, tag, payload): 21 | 22 | self.tag = tag 23 | self.utc = datetime.datetime.utcnow() 24 | self.payload = payload 25 | 26 | 27 | class Forwarder(object): 28 | 29 | def __init__(self, ip, port): 30 | 31 | self.context = zmq.Context() 32 | self.socket = self.context.socket(zmq.PUB) 33 | self.host = 'tcp://' + ip + ':' + str(port) 34 | self.socket.connect(self.host) 35 | 36 | def publish(self, packet): 37 | to_send = pickle.dumps(packet) 38 | self.socket.send(to_send) 39 | 40 | def handler_stop_signals(signum, frame): 41 | sys.exit() 42 | 43 | 44 | if __name__ == '__main__': 45 | 46 | run = True 47 | 48 | parser = argparse.ArgumentParser( 49 | description='') 50 | 51 | parser.add_argument( 52 | '-t', '--tag', type=str, help='unique tag to append to data', required=True) 53 | 54 | args = parser.parse_args() 55 | 56 | tag = args.tag 57 | 58 | try: 59 | 60 | signal.signal(signal.SIGINT, handler_stop_signals) 61 | signal.signal(signal.SIGTERM, handler_stop_signals) 62 | 63 | fwdr = Forwarder('127.0.0.1', 5005) 64 | 65 | while run: 66 | line = sys.stdin.readline().rstrip() 67 | if not line == "": 68 | #print(line) 69 | p = Packet(tag, line) 70 | fwdr.publish(p) 71 | 72 | #print("Sending data {}".format(line)) 73 | 74 | except Exception as e: 75 | #print("Press Ctrl-C to terminate while statement") 76 | os.system("echo '{}' > /home/pi/forwarder_exception".format(str(e))) 77 | pass 78 | -------------------------------------------------------------------------------- /src/config/default.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=true 4 | 5 | [audio] 6 | gain=-138 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | db_ranges_locked=true 15 | fft_rate=30 16 | pandapter_fill=true 17 | pandapter_max_db=-48 18 | pandapter_min_db=-109 19 | split=17 20 | waterfall_max_db=-48 21 | waterfall_min_db=-109 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\0\0\0\0\0M\0\0\x2\xe9\0\0\x2\x39\0\0\0\x2\0\0\0k\0\0\x2\xe9\0\0\x2\x39\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1%\0\0\x1\x99\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x99\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x3\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x11\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbf\0\0\x1\x99\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | decimation=8 30 | device="rtl=0" 31 | frequency=255000000 32 | sample_rate=1800000 33 | 34 | [receiver] 35 | demod=7 36 | filter_high_cut=2800 37 | filter_low_cut=100 38 | offset=-2900 39 | 40 | [remote_control] 41 | allowed_hosts=::ffff:127.0.0.1 42 | enabled=true 43 | -------------------------------------------------------------------------------- /src/config/directsamp.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=-65 7 | pandapter_max_db=-24 8 | pandapter_min_db=-81 9 | udp_host=localhost 10 | waterfall_max_db=-32 11 | waterfall_min_db=-79 12 | 13 | [fft] 14 | averaging=61 15 | fft_rate=30 16 | fft_size=1024 17 | pandapter_fill=true 18 | pandapter_max_db=-18 19 | pandapter_min_db=-91 20 | split=17 21 | waterfall_max_db=-18 22 | waterfall_min_db=-91 23 | 24 | [gui] 25 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdd\0\0\x1\xbc\xff\xff\xff\xfa\0\0\0\b\0\0\x2\xdd\0\0\x1\xbc\0\0\0\0\0\0\0\0\x3 ) 26 | hide_toolbar=true 27 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x2\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\0\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 28 | 29 | [input] 30 | device="rtl=0,direct_samp=3" 31 | frequency=8600000 32 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\xf0) 33 | sample_rate=1800000 34 | 35 | [receiver] 36 | demod=3 37 | filter_high_cut=5000 38 | filter_low_cut=-5000 39 | offset=-220 40 | 41 | [remote_control] 42 | allowed_hosts=::ffff:127.0.0.1 43 | enabled=true 44 | -------------------------------------------------------------------------------- /src/config/iq_file.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=10 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=2048 16 | pandapter_fill=true 17 | pandapter_max_db=-39 18 | pandapter_min_db=-100 19 | split=17 20 | waterfall_max_db=-39 21 | waterfall_min_db=-100 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdd\0\0\x1\xbc\xff\xff\xff\xfa\0\0\0\b\0\0\x2\xdd\0\0\x1\xbc\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\0\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x11\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | device="file=/home/pi/Music/HDSDR_20141011_182334Z_6731kHz_RF.cf32,freq=6731000,rate=96000,repeat=true,throttle=true" 30 | frequency=6712000 31 | sample_rate=96000 32 | 33 | [receiver] 34 | agc_decay=2000 35 | demod=7 36 | filter_high_cut=2800 37 | filter_low_cut=100 38 | offset=-18400 39 | 40 | [remote_control] 41 | allowed_hosts=::ffff:127.0.0.1 42 | enabled=true 43 | -------------------------------------------------------------------------------- /src/config/iq_file3.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=10 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=2048 16 | pandapter_fill=true 17 | pandapter_max_db=-39 18 | pandapter_min_db=-100 19 | split=17 20 | waterfall_max_db=-39 21 | waterfall_min_db=-100 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdd\0\0\x1\xbc\xff\xff\xff\xfa\0\0\0\b\0\0\x2\xdd\0\0\x1\xbc\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\0\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x11\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | device="file=/home/pi/Music/HDSDR_20141011_172503Z_7044kHz_RF.cf32,freq=7044000,rate=96000,repeat=true,throttle=true" 30 | frequency=704000 31 | sample_rate=96000 32 | 33 | [receiver] 34 | agc_decay=2000 35 | demod=7 36 | filter_high_cut=2800 37 | filter_low_cut=100 38 | offset=-18400 39 | 40 | [remote_control] 41 | allowed_hosts=::ffff:127.0.0.1 42 | enabled=true 43 | -------------------------------------------------------------------------------- /src/config/iq_file4.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=10 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=2048 16 | pandapter_fill=true 17 | pandapter_max_db=-39 18 | pandapter_min_db=-100 19 | split=17 20 | waterfall_max_db=-39 21 | waterfall_min_db=-100 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdd\0\0\x1\xbc\xff\xff\xff\xfa\0\0\0\b\0\0\x2\xdd\0\0\x1\xbc\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\0\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x11\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | device="file=/home/pi/Music/HDSDR_20141122_204059Z_8446kHz_RF.cf32,freq=8446000,rate=96000,repeat=true,throttle=true" 30 | frequency=8446000 31 | sample_rate=96000 32 | 33 | [receiver] 34 | agc_decay=2000 35 | demod=7 36 | filter_high_cut=2800 37 | filter_low_cut=100 38 | offset=-18400 39 | 40 | [remote_control] 41 | allowed_hosts=::ffff:127.0.0.1 42 | enabled=true 43 | -------------------------------------------------------------------------------- /src/config/iq_file2.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=-62 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=1024 16 | pandapter_fill=true 17 | pandapter_max_db=-36 18 | pandapter_min_db=-86 19 | split=17 20 | waterfall_max_db=-36 21 | waterfall_min_db=-86 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\0\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x11\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | device="file=/home/pi/Music/HDSDR_20141011_172128Z_7157kHz_RF.cf32,freq=7157000,rate=96000,repeat=true,throttle=true" 30 | frequency=7157000 31 | sample_rate=96000 32 | 33 | [receiver] 34 | agc_decay=2000 35 | demod=6 36 | filter_high_cut=-100 37 | filter_low_cut=-3300 38 | offset=34100 39 | 40 | [remote_control] 41 | allowed_hosts=::ffff:127.0.0.1 42 | enabled=true 43 | -------------------------------------------------------------------------------- /src/config/vhf_index1.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=111 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=2048 16 | fft_window=4 17 | pandapter_max_db=-6 18 | pandapter_min_db=-62 19 | split=26 20 | waterfall_max_db=-5 21 | waterfall_min_db=-61 22 | 23 | [gui] 24 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 25 | hide_toolbar=true 26 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x2\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 27 | 28 | [input] 29 | decimation=4 30 | device="rtl=1" 31 | frequency=144800000 32 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\x98) 33 | sample_rate=960000 34 | 35 | [receiver] 36 | agc_off=true 37 | demod=3 38 | filter_high_cut=5000 39 | filter_low_cut=-5000 40 | offset=14820 41 | sql_level=-19.2 42 | 43 | [remote_control] 44 | allowed_hosts=::ffff:127.0.0.1 45 | enabled=true 46 | -------------------------------------------------------------------------------- /src/config/hf_index1.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=-65 7 | pandapter_max_db=-24 8 | pandapter_min_db=-81 9 | udp_host=localhost 10 | waterfall_max_db=-32 11 | waterfall_min_db=-79 12 | 13 | [fft] 14 | averaging=61 15 | fft_rate=30 16 | fft_size=1024 17 | pandapter_fill=true 18 | pandapter_max_db=-31 19 | pandapter_min_db=-104 20 | split=17 21 | waterfall_max_db=-23 22 | waterfall_min_db=-96 23 | 24 | [gui] 25 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 26 | hide_toolbar=true 27 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x3\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 28 | 29 | [input] 30 | decimation=16 31 | device="rtl=1,direct_samp=3" 32 | frequency=5450000 33 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\xf0) 34 | sample_rate=1800000 35 | 36 | [receiver] 37 | demod=3 38 | filter_high_cut=5000 39 | filter_low_cut=-5000 40 | offset=-200220 41 | 42 | [remote_control] 43 | allowed_hosts=::ffff:127.0.0.1 44 | enabled=true 45 | -------------------------------------------------------------------------------- /src/config/iq_file_demo.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=16 7 | pandapter_max_db=-3 8 | pandapter_min_db=-66 9 | udp_host=localhost 10 | waterfall_max_db=-28 11 | waterfall_min_db=-75 12 | 13 | [fft] 14 | averaging=53 15 | fft_rate=20 16 | fft_size=1024 17 | fft_window=0 18 | pandapter_max_db=-28 19 | pandapter_min_db=-101 20 | split=17 21 | waterfall_max_db=-28 22 | waterfall_min_db=-101 23 | 24 | [gui] 25 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 26 | hide_toolbar=true 27 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x2\x2\0\0\0\x4\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xba\0\0\0\xc8\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\x1\xbd\0\0\0\xec\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\0\0\x1\xbd\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 28 | 29 | [input] 30 | device="file=/home/pi/Music/HDSDR_20141011_182334Z_6731kHz_RF.cf32,freq=6731000,rate=96000,repeat=true,throttle=true" 31 | frequency=6469900 32 | sample_rate=96000 33 | 34 | [receiver] 35 | agc_decay=2000 36 | demod=7 37 | filter_high_cut=3200 38 | filter_low_cut=100 39 | offset=27080 40 | 41 | [remote_control] 42 | allowed_hosts=::ffff:127.0.0.1 43 | enabled=true 44 | -------------------------------------------------------------------------------- /src/config/vhf_index0.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=111 7 | pandapter_min_db=-73 8 | udp_host=localhost 9 | waterfall_max_db=-22 10 | waterfall_min_db=-69 11 | 12 | [fft] 13 | averaging=83 14 | fft_rate=20 15 | fft_size=2048 16 | fft_window=4 17 | pandapter_fill=true 18 | pandapter_max_db=-6 19 | pandapter_min_db=-62 20 | split=17 21 | waterfall_max_db=-5 22 | waterfall_min_db=-61 23 | 24 | [gui] 25 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 26 | hide_toolbar=true 27 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x2\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 28 | 29 | [input] 30 | decimation=4 31 | device="rtl=0" 32 | frequency=144800000 33 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\x8a) 34 | sample_rate=960000 35 | 36 | [receiver] 37 | agc_off=true 38 | demod=3 39 | filter_high_cut=5000 40 | filter_low_cut=-5000 41 | offset=14820 42 | sql_level=-19.2 43 | 44 | [remote_control] 45 | allowed_hosts=::ffff:127.0.0.1 46 | enabled=true 47 | -------------------------------------------------------------------------------- /src/config/generic.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=-1 7 | pandapter_max_db=-24 8 | pandapter_min_db=-81 9 | udp_host=localhost 10 | waterfall_max_db=-32 11 | waterfall_min_db=-79 12 | 13 | [fft] 14 | averaging=64 15 | fft_rate=30 16 | fft_size=16384 17 | fft_window=0 18 | pandapter_fill=true 19 | pandapter_max_db=-31 20 | pandapter_min_db=-106 21 | split=28 22 | waterfall_max_db=-3 23 | waterfall_min_db=-82 24 | 25 | [gui] 26 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 27 | hide_toolbar=true 28 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x3\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\x1\xbd\0\0\0\xec\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\0\0\x1\xbd\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 29 | 30 | [input] 31 | decimation=16 32 | device="rtl=0,direct_samp=3" 33 | frequency=5469900 34 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\xf0) 35 | sample_rate=1800000 36 | 37 | [receiver] 38 | agc_decay=100 39 | demod=7 40 | filter_high_cut=2800 41 | filter_low_cut=100 42 | offset=-26420 43 | 44 | [remote_control] 45 | allowed_hosts=::ffff:127.0.0.1 46 | enabled=true 47 | -------------------------------------------------------------------------------- /src/config/hf_index0.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | configversion=2 3 | crashed=false 4 | 5 | [audio] 6 | gain=-1 7 | pandapter_max_db=-24 8 | pandapter_min_db=-81 9 | udp_host=localhost 10 | waterfall_max_db=-32 11 | waterfall_min_db=-79 12 | 13 | [fft] 14 | averaging=64 15 | fft_rate=30 16 | fft_size=16384 17 | fft_window=0 18 | pandapter_fill=true 19 | pandapter_max_db=-31 20 | pandapter_min_db=-106 21 | split=28 22 | waterfall_max_db=-3 23 | waterfall_min_db=-82 24 | 25 | [gui] 26 | geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x2\0\0\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\xff\xff\xff\xf8\xff\xff\xff\xea\0\0\x2\xdb\0\0\x1\x9e\0\0\0\0\0\0\0\0\x3 ) 27 | hide_toolbar=true 28 | state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\x1\0\0\x1#\0\0\x1\x7f\xfc\x2\0\0\0\x2\xfc\0\0\0\x1b\0\0\x1\x7f\0\0\x1\x7f\0\b\0\x1d\xfa\0\0\0\x3\x2\0\0\0\x4\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0\x41\0u\0\x64\0i\0o\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\xff\xff\xff\xfb\0\0\0\x18\0\x44\0o\0\x63\0k\0I\0n\0p\0u\0t\0\x43\0t\0l\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1-\0\xff\xff\xff\xfb\0\0\0\x12\0\x44\0o\0\x63\0k\0R\0x\0O\0p\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\x1\x61\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0\x46\0\x66\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\xc8\0\a\xff\xff\xfb\0\0\0\xe\0\x44\0o\0\x63\0k\0R\0\x44\0S\0\0\0\x1\xd2\0\0\0\x94\0\0\0h\0\xff\xff\xff\0\0\0\x3\0\0\x1\xbd\0\0\0\xec\xfc\x1\0\0\0\x1\xfb\0\0\0\x1a\0\x44\0o\0\x63\0k\0\x42\0o\0o\0k\0m\0\x61\0r\0k\0s\0\0\0\0\0\0\0\x1\xbd\0\0\x1\x42\0\xff\xff\xff\0\0\x1\xbd\0\0\x1\x7f\0\0\0\x1\0\0\0\x2\0\0\0\b\0\0\0\x2\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x1\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) 29 | 30 | [input] 31 | decimation=16 32 | device="rtl=0,direct_samp=3" 33 | frequency=5469900 34 | gains=@Variant(\0\0\0\b\0\0\0\x1\0\0\0\x6\0L\0N\0\x41\0\0\0\x2\0\0\x1\xf0) 35 | sample_rate=1800000 36 | 37 | [receiver] 38 | agc_decay=100 39 | demod=7 40 | filter_high_cut=2800 41 | filter_low_cut=100 42 | offset=-26420 43 | 44 | [remote_control] 45 | allowed_hosts=::ffff:127.0.0.1 46 | enabled=true 47 | -------------------------------------------------------------------------------- /src/api/gui/config_window.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 519 10 | 293 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color: rgba(186, 186, 186); 18 | 19 | 20 | 21 | 22 | 23 | 10 24 | 5 25 | 296 26 | 17 27 | 28 | 29 | 30 | Currently configuring: {} 31 | 32 | 33 | 34 | 35 | 36 | 100 37 | 255 38 | 331 39 | 26 40 | 41 | 42 | 43 | QDialogButtonBox::Apply|QDialogButtonBox::Close|QDialogButtonBox::SaveAll 44 | 45 | 46 | true 47 | 48 | 49 | 50 | 51 | 52 | 0 53 | 30 54 | 521 55 | 216 56 | 57 | 58 | 59 | QScrollBar:vertical { width: 100px; } 60 | 61 | 62 | QAbstractScrollArea::AdjustToContents 63 | 64 | 65 | QAbstractItemView::ScrollPerPixel 66 | 67 | 68 | QAbstractItemView::ScrollPerPixel 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/api/data_models.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import os 7 | import sys 8 | import time 9 | 10 | from PyQt5.QtCore import (QCoreApplication, QObject, QRunnable, QThread, pyqtSignal, QEvent, Qt, QVariant, QTimer, QAbstractTableModel) 11 | from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog, QWidget, QListWidgetItem, QFileDialog, QTableWidgetItem, qApp 12 | from PyQt5.uic import loadUi 13 | from PyQt5 import QtCore, QtGui, QtWidgets 14 | from PyQt5.QtGui import QImage, QIcon, QPixmap, QFont, QSyntaxHighlighter, QTextCharFormat, QColor, QBrush 15 | 16 | class SondeFrame(object): 17 | 18 | def __init__(self, datetime, type, id, frame, lat, lon, alt, heading, vel_h, vel_v, sats): 19 | 20 | self.datetime = datetime 21 | self.type = type 22 | self.id = id 23 | self.frame = frame 24 | self.lat = lat 25 | self.lon = lon 26 | self.alt = alt 27 | self.heading = heading 28 | self.vel_h = vel_h 29 | self.vel_v = vel_v 30 | self.sats = sats 31 | 32 | 33 | 34 | class SondeFrameTableModel(QtCore.QAbstractTableModel): 35 | 36 | def __init__(self, data): 37 | QtCore.QAbstractTableModel.__init__(self) 38 | self._data = data 39 | 40 | def setHeader(self, header): 41 | self._header = header 42 | 43 | def rowCount(self, parent): 44 | return len(self._data) 45 | 46 | def columnCount(self, parent): 47 | return len(self._header) 48 | 49 | def data(self, index, role): 50 | if index.isValid(): 51 | if role != QtCore.Qt.DisplayRole: 52 | return None 53 | else: 54 | switcher={ 55 | 0: str(self._data[index.row()].datetime), 56 | 1: self._data[index.row()].type, 57 | 2: self._data[index.row()].id, 58 | 3: str(self._data[index.row()].frame), 59 | 4: str(self._data[index.row()].lat), 60 | 5: str(self._data[index.row()].lon), 61 | 6: str(self._data[index.row()].alt), 62 | 7: str(self._data[index.row()].heading), 63 | 8: str(self._data[index.row()].vel_h), 64 | 9: str(self._data[index.row()].vel_v), 65 | 10: str(self._data[index.row()].sats) 66 | } 67 | 68 | return switcher.get(index.column(), "N/A") 69 | 70 | def headerData(self, section, orientation, role): 71 | if role != QtCore.Qt.DisplayRole or orientation != QtCore.Qt.Horizontal: 72 | return None 73 | return self._header[section] 74 | -------------------------------------------------------------------------------- /src/controller/controller.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import os 7 | import struct 8 | import sys 9 | import time 10 | from threading import Thread, Lock 11 | from PyQt5.QtCore import (QCoreApplication, QObject, QRunnable, QThread, pyqtSignal, QEvent, Qt, QVariant, QTimer, QAbstractTableModel) 12 | from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog, QWidget, QListWidgetItem, QFileDialog, QTableWidgetItem, qApp 13 | from PyQt5.uic import loadUi 14 | from PyQt5 import QtCore, QtGui, QtWidgets 15 | from PyQt5.QtGui import QImage, QIcon, QPixmap, QFont, QSyntaxHighlighter, QTextCharFormat, QColor, QBrush 16 | import numpy as np 17 | import argparse 18 | import datetime 19 | import collections 20 | import logging 21 | import subprocess 22 | from rpi_backlight import Backlight 23 | import RPi.GPIO as GPIO 24 | import re 25 | import board 26 | from enum import Enum 27 | from adafruit_bus_device.i2c_device import I2CDevice 28 | 29 | CMD_ID = 0x33 30 | PARAM_ID = 0x54 31 | 32 | class Controller(Thread): 33 | 34 | alive = True 35 | running = False 36 | 37 | def __init__(self, parent, i2c_instance): 38 | Thread.__init__(self, parent) 39 | self.parent = parent 40 | self.i2c_bus = i2c_instance 41 | self.controller_device = I2CDevice(self.i2c_bus, self.parent.parent.datapool.ADDR_REMOTE_CONTROL) 42 | 43 | 44 | def alive(self): 45 | #Poll if device reachable 46 | command = bytearray([0xFF, 0x00, 0xFF, 0x00]) 47 | self.controller_device.write_then_readinto(command, response) 48 | if response.decode('utf-8') == 'OK': 49 | return True 50 | else: 51 | return False; 52 | 53 | 54 | def enable(self): 55 | self.running = True 56 | 57 | 58 | def disable(self): 59 | self.running = False 60 | 61 | 62 | def run(self): 63 | while self.alive: 64 | time.sleep(1) 65 | while self.running: 66 | try: 67 | if PARAM_ID == 0x53: 68 | command = '{command_id};{param_id};{gps_lat};{gps_lon}'.format(command_id=CMD_ID, param_id=PARAM_ID, gps_lat=50.02, gps_lon=8.4013) 69 | rList = command.encode('utf-8') 70 | elif PARAM_ID == 0x54: 71 | now = datetime.datetime.utcnow() 72 | command = [CMD_ID, PARAM_ID, int(now.hour), int(now.minute), int(now.second), int(now.year)-2000, int(now.month), int(now.day)] 73 | rList = command 74 | 75 | arr = bytearray(rList) 76 | payload = arr #+ bytearray.fromhex(str(crc)) 77 | self.controller_device.write(payload) 78 | print(str(payload)) 79 | 80 | except Exception as e: 81 | print(e) 82 | 83 | time.sleep(1) 84 | -------------------------------------------------------------------------------- /doc/config.txt: -------------------------------------------------------------------------------- 1 | # For more options and information see 2 | # http://rpf.io/configtxt 3 | # Some settings may impact device functionality. See link above for details 4 | 5 | # uncomment if you get no picture on HDMI for a default "safe" mode 6 | #hdmi_safe=1 7 | 8 | # uncomment this if your display has a black border of unused pixels visible 9 | # and your display can output without overscan 10 | #disable_overscan=1 11 | 12 | # uncomment the following to adjust overscan. Use positive numbers if console 13 | # goes off screen, and negative if there is too much border 14 | #overscan_left=16 15 | #overscan_right=16 16 | #overscan_top=16 17 | #overscan_bottom=16 18 | 19 | # uncomment to force a console size. By default it will be display's size minus 20 | # overscan. 21 | #framebuffer_width=1280 22 | #framebuffer_height=720 23 | 24 | # uncomment if hdmi display is not detected and composite is being output 25 | #hdmi_force_hotplug=1 26 | 27 | # uncomment to force a specific HDMI mode (this will force VGA) 28 | #hdmi_group=2 29 | #hdmi_mode=4 30 | 31 | # uncomment to force a HDMI mode rather than DVI. This can make audio work in 32 | # DMT (computer monitor) modes 33 | #hdmi_drive=2 34 | 35 | # uncomment to increase signal to HDMI, if you have interference, blanking, or 36 | # no display 37 | #config_hdmi_boost=4 38 | 39 | # uncomment for composite PAL 40 | #sdtv_mode=2 41 | 42 | #uncomment to overclock the arm. 700 MHz is the default. 43 | #arm_freq=800 44 | 45 | # Uncomment some or all of these to enable the optional hardware interfaces 46 | dtparam=i2c_arm=on 47 | #dtparam=i2s=on 48 | #dtparam=spi=on 49 | 50 | # Uncomment this to enable infrared communication. 51 | #dtoverlay=gpio-ir,gpio_pin=17 52 | #dtoverlay=gpio-ir-tx,gpio_pin=18 53 | 54 | # Additional overlays and parameters are documented /boot/overlays/README 55 | 56 | # Enable audio (loads snd_bcm2835) 57 | dtparam=audio=on 58 | 59 | 60 | [pi4] 61 | # Enable DRM VC4 V3D driver on top of the dispmanx display stack 62 | #dtoverlay=vc4-fkms-v3d 63 | max_framebuffers=2 64 | 65 | [all] 66 | #dtoverlay=vc4-fkms-v3d 67 | 68 | lcd_rotate=0 69 | disable_splash=1 70 | dtoverlay=pi3-disable-wifi 71 | dtoverlay=pi3-disable-bt 72 | dtoverlay=w1-gpio 73 | 74 | # Disable Ethernet LEDs 75 | dtparam=eth_led0=14 76 | dtparam=eth_led1=14 77 | 78 | # Disable the PWR LED 79 | dtparam=pwr_led_trigger=none 80 | dtparam=pwr_led_activelow=off 81 | 82 | # Disable the Activity LED 83 | dtparam=act_led_trigger=none 84 | dtparam=act_led_activelow=off 85 | 86 | 87 | gpiopin=4 88 | enable_uart=1 89 | gpio=7=pd 90 | gpio=9=ip,pd 91 | gpio=10=ip,pd 92 | 93 | audio_pwm_mode=2 94 | -------------------------------------------------------------------------------- /src/controller/controller.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define SLAVE_ADDRESS 0x04 4 | 5 | #define PARAM_ID_TIME 0x54 6 | #define PARAM_ID_STDTM 0x53 7 | 8 | 9 | volatile boolean receiveFlag = false; 10 | char command[32]; 11 | int crc8; 12 | 13 | char command_type; 14 | char CMD_SET = 'S'; 15 | char CMD_GET = 'G'; 16 | 17 | int parameter_id; 18 | bool debug = false; 19 | 20 | 21 | int status; 22 | bool b_status_rf1, b_status_rf2, b_status_audio, b_status_gps, b_status_imu, b_status_wlan, b_status_usb, b_muted; 23 | int volume; 24 | 25 | float frequency; 26 | int mode; 27 | 28 | float f_gps_lat, f_gps_lon, f_gps_alt, f_gps_time; 29 | int year, month, day, hour, minute, second; 30 | 31 | 32 | void setup() { 33 | Wire.begin(SLAVE_ADDRESS); 34 | Wire.onReceive(receiveEvent); 35 | 36 | Serial.begin(115200); 37 | Serial.println("Ready!"); 38 | 39 | } 40 | 41 | void loop() { 42 | 43 | Serial.print(hour); 44 | Serial.print(":"); 45 | Serial.print(minute); 46 | Serial.print(":"); 47 | Serial.print(second); 48 | Serial.print(" UTC "); 49 | 50 | Serial.print(day); 51 | 52 | Serial.print("/"); 53 | Serial.print(month); 54 | Serial.print("/"); 55 | Serial.println(2000 + year); 56 | 57 | delay(1000); 58 | } 59 | 60 | 61 | void decodeTimePacket(char command[]) { 62 | hour = command[2]; 63 | minute = command[3]; 64 | second = command[4]; 65 | 66 | year = command[5]; 67 | month = command[6]; 68 | day = command[7]; 69 | } 70 | 71 | 72 | void decodeStandardTelemetryPacket(char command[]) { 73 | hour = command[2]; 74 | minute = command[3]; 75 | second = command[4]; 76 | 77 | year = command[5]; 78 | month = command[6]; 79 | day = command[7]; 80 | } 81 | 82 | 83 | 84 | 85 | 86 | void receiveEvent(int howMany) { 87 | 88 | for (int i = 0; i < howMany; i++) { 89 | command[i] = Wire.read(); 90 | command[i + 1] = '\0'; 91 | } 92 | 93 | command_type = command[0]; 94 | parameter_id = command[1]; 95 | 96 | if (debug == true) { 97 | for (size_t i = 0; i < sizeof(command) - 1; i++) 98 | { 99 | Serial.print(static_cast(command[i]), HEX); 100 | } 101 | 102 | Serial.println(' '); 103 | 104 | } 105 | 106 | switch (parameter_id) { 107 | case PARAM_ID_TIME: 108 | decodeTimePacket(command); 109 | break; 110 | case PARAM_ID_STDTM: 111 | decodeStandardTelemetryPacket(command); 112 | break; 113 | default: 114 | // statements 115 | break; 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | share/python-wheels/ 24 | *.egg-info/ 25 | .installed.cfg 26 | *.egg 27 | MANIFEST 28 | 29 | # PyInstaller 30 | # Usually these files are written by a python script from a template 31 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 32 | *.manifest 33 | *.spec 34 | 35 | # Installer logs 36 | pip-log.txt 37 | pip-delete-this-directory.txt 38 | 39 | # Unit test / coverage reports 40 | htmlcov/ 41 | .tox/ 42 | .nox/ 43 | .coverage 44 | .coverage.* 45 | .cache 46 | nosetests.xml 47 | coverage.xml 48 | *.cover 49 | *.py,cover 50 | .hypothesis/ 51 | .pytest_cache/ 52 | cover/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | .pybuilder/ 76 | target/ 77 | 78 | # Jupyter Notebook 79 | .ipynb_checkpoints 80 | 81 | # IPython 82 | profile_default/ 83 | ipython_config.py 84 | 85 | # pyenv 86 | # For a library or package, you might want to ignore these files since the code is 87 | # intended to run in multiple environments; otherwise, check them in: 88 | # .python-version 89 | 90 | # pipenv 91 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 92 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 93 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 94 | # install all needed dependencies. 95 | #Pipfile.lock 96 | 97 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 98 | __pypackages__/ 99 | 100 | # Celery stuff 101 | celerybeat-schedule 102 | celerybeat.pid 103 | 104 | # SageMath parsed files 105 | *.sage.py 106 | 107 | # Environments 108 | .env 109 | .venv 110 | env/ 111 | venv/ 112 | ENV/ 113 | env.bak/ 114 | venv.bak/ 115 | 116 | # Spyder project settings 117 | .spyderproject 118 | .spyproject 119 | 120 | # Rope project settings 121 | .ropeproject 122 | 123 | # mkdocs documentation 124 | /site 125 | 126 | # mypy 127 | .mypy_cache/ 128 | .dmypy.json 129 | dmypy.json 130 | 131 | # Pyre type checker 132 | .pyre/ 133 | 134 | # pytype static type analyzer 135 | .pytype/ 136 | 137 | # Cython debug symbols 138 | cython_debug/ 139 | -------------------------------------------------------------------------------- /src/gui/message_window.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 122 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color: rgba(186, 186, 186); 18 | 19 | 20 | 21 | 22 | 23 | 10 24 | 40 25 | 381 26 | 17 27 | 28 | 29 | 30 | 31 | NoAntialias 32 | 33 | 34 | 35 | Screenshot saved to /home/pi/Pictures/screenshots 36 | 37 | 38 | Qt::AlignCenter 39 | 40 | 41 | 42 | 43 | 44 | 210 45 | 80 46 | 96 47 | 26 48 | 49 | 50 | 51 | 52 | 9 53 | NoAntialias 54 | 55 | 56 | 57 | PointingHandCursor 58 | 59 | 60 | Qt::WheelFocus 61 | 62 | 63 | border: 1px solid black; 64 | border-radius: 25px; 65 | background-color: rgb(186, 186, 186); 66 | 67 | 68 | OK 69 | 70 | 71 | 72 | 73 | 74 | 190 75 | 15 76 | 46 77 | 17 78 | 79 | 80 | 81 | 82 | NoAntialias 83 | 84 | 85 | 86 | Info: 87 | 88 | 89 | 90 | 91 | 92 | 105 93 | 80 94 | 96 95 | 26 96 | 97 | 98 | 99 | 100 | 9 101 | NoAntialias 102 | 103 | 104 | 105 | PointingHandCursor 106 | 107 | 108 | Qt::WheelFocus 109 | 110 | 111 | border: 1px solid black; 112 | border-radius: 25px; 113 | background-color: rgb(186, 186, 186); 114 | 115 | 116 | CANCEL 117 | 118 | 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /src/tests/test_bluetoothserver.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import sys 7 | sys.path.append("..") 8 | import time 9 | import socket 10 | from threading import Thread 11 | import os 12 | import subprocess 13 | 14 | 15 | class BluetoothServer(Thread): 16 | 17 | def __init__(self, port): 18 | Thread.__init__(self) 19 | 20 | self.port = port 21 | 22 | #self.parent = parent 23 | self.running = False 24 | self.alive = True 25 | 26 | self.commandCount = 0 27 | 28 | self.bt_mac = "00:07:61:45:9A:43" 29 | self.socket = socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM) 30 | #self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 31 | 32 | #self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 33 | backlog = 1 34 | self.size = 1024 35 | 36 | self.socket.bind((self.bt_mac, 1)) 37 | self.socket.listen(backlog) 38 | 39 | 40 | 41 | def startServer(self): 42 | if not self.running: 43 | try: 44 | subprocess.run(["sudo rfkill unblock bluetooth"], shell=True) 45 | cmd = "hciconfig" 46 | device_id = "hci0" 47 | self.running = True 48 | #return CODES.SUCCESS 49 | print("Server successfully started") 50 | print("Listening for incoming connections...") 51 | 52 | except Exception as e: 53 | print("Could not start the server, error: {ERR}".format(ERR=e)) 54 | exc_type, exc_obj, exc_tb = sys.exc_info() 55 | fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] 56 | print(exc_type, fname, exc_tb.tb_lineno) 57 | #return CODES.ERROR 58 | 59 | else: 60 | print("Could not start the server, server is already running!") 61 | #return CODES.ERROR 62 | 63 | 64 | def stopServer(self): 65 | if self.running: 66 | try: 67 | self.alive = True 68 | self.running = False 69 | subprocess.run(["sudo rfkill block bluetooth"], shell=True) 70 | #return CODES.SUCCESS 71 | print("Server successfully stopped") 72 | 73 | except Exception as e: 74 | print("Could not stop the server, error: {ERR}".format(ERR=e)) 75 | #return CODES.ERROR 76 | else: 77 | print("Could not stop the server, server is already stopped!") 78 | #return CODES.ERROR 79 | 80 | 81 | 82 | def terminate(self): 83 | self.running = False 84 | self.alive = False 85 | 86 | self.socket.shutdown(1) 87 | 88 | print("Server successfully terminated") 89 | 90 | 91 | def run(self): 92 | while self.alive: 93 | while self.running: 94 | try: 95 | 96 | client, address = self.socket.accept() 97 | print("Incoming connection from {CLI}".format(CLI=address)) 98 | while True: 99 | data = client.recv(self.size).decode('utf-8') 100 | if data: 101 | print("Received data: " + data) 102 | 103 | self.commandCount += 1 104 | ''' 105 | if self.debug: 106 | logging.debug('Received JSON-formatted command: {CMD}'.format(CMD=data)) 107 | 108 | json_command = json.loads(data) 109 | success = self.parent.runCommand(json_command) 110 | response = {} 111 | response['success'] = success 112 | json_response = json.dumps(response) 113 | client.send(json_response.encode('utf-8')) 114 | ''' 115 | 116 | except Exception as e: 117 | print("Client disconnected with error:{ERR}".format(ERR=e)) 118 | client.close() 119 | time.sleep(1) 120 | time.sleep(1) #Idle at 1 Hz if not active 121 | 122 | 123 | 124 | 125 | if __name__ == '__main__': 126 | 127 | server = BluetoothServer(port=1) 128 | server.start() 129 | server.startServer() 130 | time.sleep(1000) 131 | server.stopServer() 132 | server.terminate() 133 | -------------------------------------------------------------------------------- /src/gui/barmenu.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 118 10 | 197 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color: rgb(186, 186, 186); 18 | 19 | 20 | 21 | 22 | 23 | 75 24 | 40 25 | 26 26 | 131 27 | 28 | 29 | 30 | color: rgb(115, 210, 22); 31 | 32 | 33 | 50 34 | 35 | 36 | Qt::AlignCenter 37 | 38 | 39 | false 40 | 41 | 42 | Qt::Vertical 43 | 44 | 45 | false 46 | 47 | 48 | QProgressBar::TopToBottom 49 | 50 | 51 | %p 52 | 53 | 54 | 55 | 56 | 57 | 20 58 | 40 59 | 26 60 | 131 61 | 62 | 63 | 64 | color: rgb(115, 210, 22); 65 | 66 | 67 | 50 68 | 69 | 70 | Qt::AlignCenter 71 | 72 | 73 | false 74 | 75 | 76 | Qt::Vertical 77 | 78 | 79 | false 80 | 81 | 82 | QProgressBar::TopToBottom 83 | 84 | 85 | %p 86 | 87 | 88 | 89 | 90 | 91 | 65 92 | 15 93 | 46 94 | 17 95 | 96 | 97 | 98 | 99 | 9 100 | NoAntialias 101 | 102 | 103 | 104 | 105 | 106 | 107 | Volume 108 | 109 | 110 | Qt::AlignCenter 111 | 112 | 113 | 114 | 115 | 116 | 5 117 | 15 118 | 51 119 | 17 120 | 121 | 122 | 123 | 124 | 9 125 | NoAntialias 126 | 127 | 128 | 129 | 130 | 131 | 132 | Backlight 133 | 134 | 135 | Qt::AlignCenter 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /src/api/gui/barmenu.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 118 10 | 197 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | background-color: rgb(186, 186, 186); 18 | 19 | 20 | 21 | 22 | 23 | 75 24 | 40 25 | 26 26 | 131 27 | 28 | 29 | 30 | color: rgb(115, 210, 22); 31 | 32 | 33 | 50 34 | 35 | 36 | Qt::AlignCenter 37 | 38 | 39 | false 40 | 41 | 42 | Qt::Vertical 43 | 44 | 45 | false 46 | 47 | 48 | QProgressBar::TopToBottom 49 | 50 | 51 | %p 52 | 53 | 54 | 55 | 56 | 57 | 20 58 | 40 59 | 26 60 | 131 61 | 62 | 63 | 64 | color: rgb(115, 210, 22); 65 | 66 | 67 | 50 68 | 69 | 70 | Qt::AlignCenter 71 | 72 | 73 | false 74 | 75 | 76 | Qt::Vertical 77 | 78 | 79 | false 80 | 81 | 82 | QProgressBar::TopToBottom 83 | 84 | 85 | %p 86 | 87 | 88 | 89 | 90 | 91 | 65 92 | 15 93 | 46 94 | 17 95 | 96 | 97 | 98 | 99 | 9 100 | NoAntialias 101 | 102 | 103 | 104 | 105 | 106 | 107 | Volume 108 | 109 | 110 | Qt::AlignCenter 111 | 112 | 113 | 114 | 115 | 116 | 5 117 | 15 118 | 51 119 | 17 120 | 121 | 122 | 123 | 124 | 9 125 | NoAntialias 126 | 127 | 128 | 129 | 130 | 131 | 132 | Backlight 133 | 134 | 135 | Qt::AlignCenter 136 | 137 | 138 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Raspberry Pi SDR Cyberdeck 2 | 3 | This repository contains the software for the [Raspberry Pi SDR Cyberdeck project](https://hackaday.io/project/174301-raspberry-pi-sdr-cyberdeck) 4 | 5 | ![alt text](./doc/img/box_outlined.jpg) 6 | 7 | The purpose of the software is to provide an easy-to-use interface for starting/stopping software and allow several control clients to connect and 8 | execute actions and fetch via HTTP methods. The latter is done by using [FastAPI](https://fastapi.tiangolo.com/). 9 | 10 | 11 | ## Setup 12 | 13 | ### Hardware 14 | 15 | Schematics are available at the dedicated [Hackaday page](https://hackaday.io/project/174301-raspberry-pi-sdr-cyberdeck). 16 | A minimal setup consists of a raspberry Pi and the 7" Official touch display. 17 | 18 | If you will be using 2x RTL-SDRs similar to the original Hackaday project, then it is required to give them both unique serial numbers 'rf1' and 'rf2' in order for them to be uniquely identified. 19 | ``` 20 | rtl_eeprom -d 0 -s 'rf1' 21 | rtl_eeprom -d 1 -s 'rf2' 22 | ``` 23 | 24 | ### Software 25 | 26 | ![alt text](./doc/img/logos.png) 27 | 28 | The Raspberry Pi SDR cyberdeck runs on a software framework with at it's core an ASGI (Asynchronous Server Gateway Interface), in this case uvicorn. The ASGI interface connects to FastAPI which performs the function invocations in the Python threads which control the Devices, Processes and Applications. This allows for easy system manipulation via HTTP1.1 GET/PUT/POSTS methods. The Python threads controlling the processes can range from a commandline decoder to decode APRS via an audio interface, through to starting a VNC session or starting navigation/mapping software. The intention is to make complex application flow, configuration and control easily accessible via the Cyberdeck API interface (which performs HTTP requests to the server), therefore eliminating local commandline interaction with the system. In parallel system data is dumped to an influxdb database, and exposed via Grafana, allowing easy system monitoring over longer periods of time. 29 | 30 | ``` 31 | pip3 install -r doc/requirements.txt 32 | ``` 33 | 34 | Clone the following repositories and follow individual installation instructions: 35 | - [uhubctl](https://github.com/mvp/uhubctl) 36 | - [dumpvdl2](https://github.com/szpajder/dumpvdl2) 37 | - [dump1090](https://github.com/antirez/dump1090) 38 | - [acarsdec](https://github.com/TLeconte/acarsdec) 39 | - [rtl-ais](https://github.com/dgiardini/rtl-ais) 40 | - [rtl-sdr](https://github.com/sysrun/rtl-sdr) (extended version to use a UDP control port and other features) 41 | 42 | 43 | Example Raspberry config file [here](doc/config.txt): 44 | 45 | 46 | Every subsystem is defined by either: 47 | - device (anything that needs polling over I2C, input pins, etc) 48 | - process (anything that requires an input device, either RF or alsa) 49 | - application (anything that has a GUI and does not fall in above 2 classes) 50 | 51 | The latter are functionally described in the server [config.ini](src/api/config.ini) file: 52 | 53 | ``` 54 | [battery] 55 | s_id = battery 56 | s_name = Battery 57 | s_type = device 58 | s_level_i2c_addr = 0x48 59 | i_level_polling_period = 1 60 | 61 | s_temp1_sensor = 28-00000a2efb67 62 | s_temp2_sensor = 28-00000a2ece8c 63 | i_temp_polling_period = 5 64 | 65 | i_pd_threshold = 3000 66 | i_capacity = 15600 67 | i_capacity_wh = 57 68 | s_model = Anker Powercore 69 | 70 | [rtltcp1] 71 | s_id = rtltcp1 72 | s_name = RF TCP SERVER 1 73 | s_type = process 74 | s_host = 0.0.0.0 75 | i_port = 5002 76 | i_freq = 135000000 77 | i_gain = 48 78 | i_samprate = 1024000 79 | s_device = rf1 80 | b_directsamp = no 81 | b_bias = no 82 | ``` 83 | 84 | To add a subsystem: 85 | - Add section in the [config.ini](src/api/config.ini) file 86 | - Define the system in [systems.py](src/api/systems.py) by subclassing either device, process or application 87 | - Instantiate it in [server.py](src/api/server.py) and pass it the unique INI-section 88 | - Add any additional get/put methods in [main.py](src/api/main.py) for the REST API 89 | 90 | 91 | ### Operations 92 | 93 | 1) Starting the server locally on the Rpi: 94 | ``` 95 | cd src/api 96 | python3 main.py 97 | ``` 98 | The ASGI server runs on 0.0.0.0, and will accept connections on any interface. 99 | 100 | 101 | 2) Start one (or several) clients with IP a reachable interface on the Rpi (or 127.0.0.1 for a local conrol client): 102 | ``` 103 | cd src/api 104 | python3 gui.py -i {YOUR_IP_HERE} 105 | ``` 106 | 107 | 3) A dry-run test can be done from the browser by testing out some HTTP methods at: 108 | ``` 109 | http://{YOUR_IP_HERE}:5000/docs 110 | ``` 111 | -------------------------------------------------------------------------------- /src/api/cyberdeck.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | 7 | import json 8 | import pickle 9 | from threading import Thread 10 | import sys 11 | 12 | import requests 13 | import zmq 14 | 15 | 16 | class RemoteCyberdeck(Thread): 17 | 18 | def __init__(self, ip, http_port, zmq_port): 19 | Thread.__init__(self) 20 | 21 | self.ip = ip 22 | self.http_port = http_port 23 | 24 | self.connected = False 25 | 26 | self.context = zmq.Context() 27 | self.socket = self.context.socket(zmq.SUB) 28 | self.host = 'tcp://' + ip + ':' + str(zmq_port) 29 | self.socket.connect(self.host) 30 | self.socket.setsockopt_string(zmq.SUBSCRIBE, "") 31 | self.socket.setsockopt(zmq.RCVTIMEO, 5000) 32 | 33 | self.active = True 34 | 35 | def _put_request(self, path, params=None): 36 | try: 37 | r = requests.put('http://{}:{}{}'.format(self.ip, self.http_port, path), params=params) 38 | if r.status_code == 200: 39 | return r.json() #Server responded with a success status 40 | else: 41 | return {"success": False, "response": r.status_code} #Something went wrong on the server side 42 | except Exception as e: 43 | return {"success": False, "response": str(e)} #Something went wrong on the client side 44 | 45 | 46 | def _get_request(self, path, params=None): 47 | try: 48 | r = requests.get('http://{}:{}{}'.format(self.ip, self.http_port, path), params=params) 49 | if r.status_code == 200: 50 | return r.json() 51 | else: 52 | return {"success": False, "response": r.status_code} 53 | except Exception as e: 54 | return {"success": False, "response": str(e)} 55 | 56 | 57 | def _post_request(self, path, params=None): 58 | try: 59 | r = requests.post('http://{}:{}{}'.format(self.ip, self.http_port, path), params=params) 60 | if r.status_code == 200: 61 | return r.json() 62 | else: 63 | return {"success": False, "response": r.status_code} 64 | except Exception as e: 65 | return {"success": False, "response": str(e)} 66 | 67 | 68 | def handshake(self): 69 | return self._put_request(path="/ping") 70 | 71 | def get_systems(self): 72 | return self._get_request(path="/systems") 73 | 74 | def get_config(self, system=None): 75 | if system: 76 | return self._get_request(path="/systems/{}/config".format(system)) 77 | else: 78 | return self._get_request(path="/config") 79 | 80 | def save_config(self): 81 | return self._post_request(path="/config") 82 | 83 | 84 | def get_status(self, system=None): 85 | if system: 86 | return self._get_request(path="/systems/{}/status".format(system)) 87 | else: 88 | return self._get_request(path="/status") 89 | 90 | def get_configstatus(self, system=None): 91 | if system: 92 | return self._get_request(path="/systems/{}/configstatus".format(system)) 93 | else: 94 | return self._get_request(path="/configstatus") 95 | 96 | def set_config(self, system, key, value): 97 | return self._put_request(path="/systems/{}/config".format(system), params={"key": key, "value": value}) 98 | 99 | def set_power(self, system, power): 100 | return self._put_request(path="/systems/{}/power".format(system), params={"power": power}) 101 | 102 | def toggle_power(self, system): 103 | return self._put_request(path="/systems/{}/power/toggle".format(system)) 104 | 105 | def start_process(self, system): 106 | return self._put_request(path="/systems/{}/start_process".format(system)) 107 | 108 | def stop_process(self, system): 109 | return self._put_request(path="/systems/{}/stop_process".format(system)) 110 | 111 | def reboot(self): 112 | return self._put_request(path="/systems/obc/reboot") 113 | 114 | def shutdown(self): 115 | return self._put_request(path="/systems/obc/shutdown") 116 | 117 | 118 | 119 | def set_volume(self, volume): 120 | return self._put_request(path="/systems/audio/volume", params={"volume": volume}) 121 | 122 | def increment_volume(self): 123 | return self._put_request(path="/systems/audio/volume/increment") 124 | 125 | def decrement_volume(self): 126 | return self._put_request(path="/systems/audio/volume/decrement") 127 | 128 | def set_mute(self, mute): 129 | return self._put_request(path="/systems/audio/mute", params={"mute": mute}) 130 | 131 | def toggle_mute(self): 132 | return self._put_request(path="/systems/audio/mute/toggle") 133 | 134 | def set_test(self, test): 135 | return self._put_request(path="/systems/audio/test", params={"test": test}) 136 | 137 | 138 | def set_brightness(self, brightness): 139 | return self._put_request(path="/systems/display/brightness", params={"brightness": brightness}) 140 | 141 | def increment_brightness(self): 142 | return self._put_request(path="/systems/display/brightness/increment") 143 | 144 | def decrement_brightness(self): 145 | return self._put_request(path="/systems/display/brightness/decrement") 146 | 147 | def screenshot(self): 148 | return self._put_request(path="/systems/display/screenshot") 149 | 150 | 151 | def get_frequency(self): 152 | return self._get_request(path="/systems/rigctl/frequency") 153 | 154 | def set_frequency(self, frequency): 155 | return self._put_request(path="/systems/rigctl/frequency", params={"frequency": frequency}) 156 | 157 | def stop(self): 158 | self.active = False 159 | 160 | def run(self): 161 | while self.active: 162 | try: 163 | self.status = pickle.loads(self.socket.recv())["configstatus"] 164 | self.connected = True 165 | 166 | except Exception as e: 167 | print(str(e)) 168 | self.connected = False 169 | 170 | 171 | 172 | if __name__ == '__main__': 173 | 174 | cyberdeck = RemoteCyberdeck("172.16.18.185", 5000, 5001) 175 | print("Issuing remote handshake...") 176 | response = cyberdeck.handshake() 177 | print(response) 178 | 179 | if response["success"]: 180 | gps_status = cyberdeck.get_status(system="gps") 181 | print(gps_status) 182 | 183 | cyberdeck.stop() 184 | sys.exit("Done!") 185 | 186 | 187 | -------------------------------------------------------------------------------- /src/api/main.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | from typing import Optional 7 | 8 | from fastapi import FastAPI, Request 9 | from fastapi.responses import JSONResponse 10 | from fastapi.openapi.utils import get_openapi 11 | from server import Server 12 | from packet import Packet 13 | 14 | import sys 15 | import os 16 | import uvicorn 17 | import logging 18 | import time 19 | import inspect 20 | 21 | tags_metadata = [ 22 | { 23 | "name": "common", 24 | "description": "Subsystem common actions", 25 | }, 26 | { 27 | "name": "audio", 28 | "description": "Audio functions", 29 | }, 30 | { 31 | "name": "obc", 32 | "description": "On-board computer (OBC) functions", 33 | }, 34 | { 35 | "name": "display", 36 | "description": "Display functions", 37 | } 38 | ] 39 | 40 | #Load server 41 | server = Server() 42 | 43 | #Load API 44 | api = FastAPI(openapi_tags=tags_metadata) 45 | 46 | def execute_function_subsystem(**kwargs): 47 | #print("Server subsystem function invocation: {}.{}({})".format(kwargs["system"], kwargs["function_name"], kwargs["args"])) 48 | try: 49 | s = [sys for sys in server.systems if sys.config["s_id"] == kwargs["system"]][0] 50 | target_function = getattr(s, kwargs["function_name"]) 51 | if kwargs["args"]: 52 | return target_function(*kwargs["args"]) 53 | else: 54 | return target_function() 55 | except IndexError: 56 | return {"success": False, "response": "System with provided ID not found"} 57 | except Exception as e: 58 | return {"success": False, "response": str(e)} 59 | 60 | 61 | @api.put("/ping") 62 | def ping(): 63 | return {"success": True, "response": "pong"} 64 | 65 | @api.get("/systems") 66 | def get_systems(): 67 | return server.get_systems() 68 | 69 | @api.get("/config") 70 | def get_config(): 71 | return server.get_config() 72 | 73 | @api.post("/config") 74 | def save_config(): 75 | return server.save_config() 76 | 77 | @api.get("/status") 78 | def get_status(): 79 | return server.get_status() 80 | 81 | @api.get("/configstatus") 82 | def get_configstatus(): 83 | return server.get_configstatus() 84 | 85 | 86 | @api.get("/systems/{system}/config", tags=["common"]) 87 | def get_config(system: str): 88 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 89 | 90 | @api.put("/systems/{system}/config", tags=["common"]) 91 | def set_config(system: str, key: str, value: str): 92 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=[key, value]) 93 | 94 | @api.get("/systems/{system}/status", tags=["common"]) 95 | def get_status(system: str): 96 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 97 | 98 | @api.get("/systems/{system}/configstatus", tags=["common"]) 99 | def get_configstatus(system: str): 100 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 101 | 102 | @api.put("/systems/{system}/power", tags=["common"]) 103 | def set_power(system: str, power: bool): 104 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=[power]) 105 | 106 | @api.put("/systems/{system}/power/toggle", tags=["common"]) 107 | def toggle_power(system: str): 108 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 109 | 110 | @api.put("/systems/{system}/start_process", tags=["common"]) 111 | def start_process(system: str): 112 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 113 | 114 | @api.put("/systems/{system}/stop_process", tags=["common"]) 115 | def stop_process(system: str): 116 | return execute_function_subsystem(system=system, function_name=inspect.stack()[0][3], args=None) 117 | 118 | 119 | 120 | 121 | 122 | @api.put("/systems/obc/reboot", tags=["obc"]) 123 | def reboot(): 124 | return execute_function_subsystem(system="obc", function_name=inspect.stack()[0][3], args=None) 125 | 126 | @api.put("/systems/obc/shutdown", tags=["obc"]) 127 | def shutdown(): 128 | return execute_function_subsystem(system="obc", function_name=inspect.stack()[0][3], args=None) 129 | 130 | 131 | #-------------AUDIO------------- 132 | @api.put("/systems/audio/volume", tags=["audio"]) 133 | def set_volume(volume: int): 134 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=[volume]) 135 | 136 | @api.put("/systems/audio/volume/increment", tags=["audio"]) 137 | def increment_volume(): 138 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=None) 139 | 140 | @api.put("/systems/audio/volume/decrement", tags=["audio"]) 141 | def decrement_volume(): 142 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=None) 143 | 144 | @api.put("/systems/audio/mute", tags=["audio"]) 145 | def set_mute(muted: bool): 146 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=[muted]) 147 | 148 | @api.put("/systems/audio/mute/toggle", tags=["audio"]) 149 | def toggle_mute(): 150 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=None) 151 | 152 | @api.put("/systems/audio/test", tags=["audio"]) 153 | def set_test(test: bool): 154 | return execute_function_subsystem(system="audio", function_name=inspect.stack()[0][3], args=[test]) 155 | 156 | 157 | #-------------DISPLAY------------- 158 | @api.put("/systems/display/brightness", tags=["display"]) 159 | def set_brightness(brightness: int): 160 | return execute_function_subsystem(system="display", function_name=inspect.stack()[0][3], args=[brightness]) 161 | 162 | @api.put("/systems/display/brightness/increment", tags=["display"]) 163 | def increment_brightness(): 164 | return execute_function_subsystem(system="display", function_name=inspect.stack()[0][3], args=None) 165 | 166 | @api.put("/systems/display/brightness/decrement", tags=["display"]) 167 | def decrement_brightness(): 168 | return execute_function_subsystem(system="display", function_name=inspect.stack()[0][3], args=None) 169 | 170 | @api.put("/systems/display/screenshot") 171 | def screenshot(): 172 | return execute_function_subsystem(system="display", function_name=inspect.stack()[0][3], args=None) 173 | 174 | @api.get("/systems/rigctl/frequency") 175 | def get_frequency(): 176 | return execute_function_subsystem(system="rigctl", function_name=inspect.stack()[0][3], args=None) 177 | 178 | @api.put("/systems/rigctl/frequency") 179 | def set_frequency(frequency: float): 180 | return execute_function_subsystem(system="rigctl", function_name=inspect.stack()[0][3], args=[frequency]) 181 | 182 | @api.get("/systems/rigctl/mode") 183 | def get_mode(): 184 | return execute_function_subsystem(system="rigctl", function_name=inspect.stack()[0][3], args=None) 185 | 186 | 187 | 188 | def custom_openapi(): 189 | if api.openapi_schema: 190 | return api.openapi_schema 191 | openapi_schema = get_openapi( 192 | title="RPi Cyberdeck API", 193 | version="0.1.0", 194 | description="API interface description to interact with a RPi Cyberdeck", 195 | routes=api.routes, 196 | ) 197 | api.openapi_schema = openapi_schema 198 | return api.openapi_schema 199 | 200 | 201 | if __name__ == '__main__': 202 | 203 | logging_format = "%(asctime)s %(levelname)-8s %(threadName)-4s %(message)s (L%(lineno)d)" 204 | 205 | for handler in logging.root.handlers[:]: 206 | logging.root.removeHandler(handler) 207 | 208 | logging.basicConfig(level=logging.DEBUG, format=logging_format) 209 | logging.Formatter.converter = time.gmtime 210 | 211 | 212 | log_config = uvicorn.config.LOGGING_CONFIG 213 | log_config["formatters"]["access"]["fmt"] = logging_format 214 | log_config["formatters"]["default"]["fmt"] = logging_format 215 | 216 | api.openapi = custom_openapi 217 | 218 | uvicorn.run(api, host=server.host, port=server.port, log_config=log_config, headers=[('Server', server.s_header_description)]) 219 | server.stop_threads() 220 | sys.exit("Please wait until all systems are stopped...") 221 | -------------------------------------------------------------------------------- /src/api/config.ini: -------------------------------------------------------------------------------- 1 | [server] 2 | s_id = server 3 | s_header_description = RPi Cyberdeck 4 | s_server_host = 0.0.0.0 5 | i_server_port = 5000 6 | 7 | [database] 8 | s_id = database 9 | s_header_description = InfluxDB database 10 | s_db_name = cyberdeck 11 | s_db_host = 127.0.0.1 12 | i_db_port = 8086 13 | s_db_username = root 14 | s_db_password = root 15 | 16 | [publisher] 17 | s_id = publisher 18 | s_name = Status publisher 19 | s_type = device 20 | b_allow_powerstate = no 21 | s_host = 0.0.0.0 22 | i_port = 5001 23 | i_period = 1 24 | 25 | [proxy] 26 | s_id = proxy 27 | s_name = Proxy 28 | s_type = application 29 | i_subx_port = 5005 30 | i_pubx_port = 5006 31 | b_autostart = yes 32 | 33 | [subscriber] 34 | s_id = subscriber 35 | s_name = Subscriber 36 | s_type = application 37 | b_autostart = yes 38 | 39 | 40 | [gps] 41 | s_id = gps 42 | s_name = GPS Receiver 43 | s_type = device 44 | b_allow_powerstate = yes 45 | b_on_startup = yes 46 | s_gpsd_ip = 127.0.0.1 47 | i_gpsd_port = 5647 48 | 49 | [clock] 50 | s_id = clock 51 | s_name = Internal clock and RTC module 52 | s_type = device 53 | b_allow_powerstate = no 54 | s_rtc_address = 0x68 55 | 56 | [battery] 57 | s_id = battery 58 | s_name = Battery 59 | s_type = device 60 | b_allow_powerstate = no 61 | i_batt_poll_period = 30 62 | 63 | s_level_i2c_addr = 0x48 64 | s_temp1_sensor = 28-00000a2efb67 65 | s_temp2_sensor = 28-00000a2ece8c 66 | i_pd_threshold = 3000 67 | i_capacity = 15600 68 | i_capacity_wh = 57 69 | s_model = Anker Powercore 70 | 71 | [dcdc] 72 | s_id = dcdc 73 | s_name = DCDC converter 74 | s_type = device 75 | b_allow_powerstate = no 76 | s_temp_sensor = 28-00000a2efc0a 77 | i_j1a_sense_pin = 9 78 | i_j1b_sense_pin = 10 79 | i_polling_period = 3 80 | 81 | [obc] 82 | s_id = obc 83 | s_name = On-board computer 84 | s_type = device 85 | b_allow_powerstate = no 86 | s_power_ina219_addr = 0x40 87 | s_temp_sensor = 28-00000a2f70d2 88 | s_soundcard = alsa 89 | 90 | i_polling_period = 5 91 | 92 | [audio] 93 | s_id = audio 94 | s_name = Audio controller 95 | s_type = device 96 | b_allow_powerstate = yes 97 | b_on_startup = yes 98 | i_startup_volume = 50 99 | i_control_pin = 7 100 | s_mixer_name = Master 101 | i_polling_period = 1 102 | s_test_wav = /home/pi/git/uwave-eas/eas-attn-8s-n40db.wav 103 | 104 | [usb] 105 | s_id = usb 106 | s_name = USB 107 | s_type = device 108 | b_allow_powerstate = yes 109 | b_on_startup = yes 110 | 111 | [lan] 112 | s_id = lan 113 | s_name = LAN 114 | s_type = device 115 | b_allow_powerstate = yes 116 | b_on_startup = yes 117 | i_polling_period = 3 118 | 119 | [wlan] 120 | s_id = wlan 121 | s_name = WLAN 122 | s_type = device 123 | b_allow_powerstate = yes 124 | b_on_startup = yes 125 | i_polling_period = 3 126 | 127 | [bluetooth] 128 | s_id = bluetooth 129 | s_name = BT 130 | s_type = device 131 | s_bt_mac = B8:27:EB:4B:00:62 132 | i_rfcomm_port = 1 133 | i_socket_port = 2 134 | b_allow_powerstate = yes 135 | b_on_startup = yes 136 | 137 | [network] 138 | s_id = network 139 | s_name = Network interfaces 140 | s_type = device 141 | b_allow_powerstate = no 142 | i_polling_period = 2 143 | 144 | [display] 145 | s_id = display 146 | s_name = Physical touchscreen 147 | s_type = device 148 | b_allow_powerstate = yes 149 | b_power_polling_enabled = yes 150 | s_power_ina219_addr = 0x41 151 | 152 | i_polling_period = 5 153 | f_fade_duration = 0.2 154 | i_backlight_startup = 30 155 | 156 | [indicator] 157 | s_id = indicator 158 | s_name = Frontpanel indicator 159 | s_type = device 160 | b_allow_powerstate = no 161 | i_control_pin = 11 162 | f_interval_high = 1 163 | f_interval_medium = 0.5 164 | f_interval_low = 0.1 165 | 166 | [rigctl] 167 | s_id = rigctl 168 | s_name = GQRX control interface 169 | s_type = application 170 | s_hostname = 127.0.0.1 171 | i_port = 7356 172 | 173 | [rf] 174 | s_id = rf 175 | s_name = RF 176 | s_type = device 177 | b_allow_powerstate = no 178 | s_rf1_serial = rf1 179 | i_rf1_ppm = 0 180 | s_rf2_serial = rf2 181 | i_rf2_ppm = 0 182 | 183 | 184 | [rtltcp1] 185 | s_id = rtltcp1 186 | s_name = RF TCP SERVER 1 187 | s_type = process 188 | s_host = 0.0.0.0 189 | i_port = 5002 190 | i_freq = 135000000 191 | i_gain = 48 192 | i_samprate = 1024000 193 | s_device = rf1 194 | b_directsamp = no 195 | b_bias = no 196 | 197 | [rtltcp2] 198 | s_id = rtltcp2 199 | s_name = RF TCP SERVER 2 200 | s_type = process 201 | s_host = 0.0.0.0 202 | i_port = 5003 203 | i_freq = 135000000 204 | i_gain = 48 205 | i_samprate = 1024000 206 | s_device = rf2 207 | b_directsamp = no 208 | b_bias = no 209 | 210 | [rs1] 211 | s_id = rs1 212 | s_name = Primary Radiosonde Decoder 213 | s_type = process 214 | s_device = alsa 215 | s_sonde = rs41 216 | b_inverted = no 217 | i_lowpass = 3200 218 | i_freq = 403500000 219 | i_gain = 48 220 | b_bias = no 221 | b_record_audio = no 222 | s_destination = BASE 223 | s_path = WIDE2-2 224 | s_symbol_table = / 225 | s_symbol_id = O 226 | 227 | [rs2] 228 | s_id = rs2 229 | s_name = Secondary Radiosonde Decoder 230 | s_type = process 231 | s_device = alsa 232 | s_sonde = dfm 233 | b_inverted = no 234 | i_lowpass = 3200 235 | i_freq = 402869000 236 | i_gain = 30 237 | b_bias = no 238 | b_record_audio = no 239 | s_destination = BASE 240 | s_path = WIDE2-2 241 | s_symbol_table = / 242 | s_symbol_id = O 243 | 244 | [aprs] 245 | s_id = aprs 246 | s_name = APRS DECODER 247 | s_type = process 248 | i_freq = 144800000 249 | i_gain = 40 250 | i_samprate = 24000 251 | i_baud = 1200 252 | s_device = rf1 253 | b_bias = no 254 | 255 | [ais] 256 | s_id = ais 257 | s_name = VHF AIS DECODER 258 | s_type = process 259 | s_host = 0.0.0.0 260 | i_port = 5004 261 | i_freq_l = 161975000 262 | i_freq_r = 162025000 263 | i_gain = 48 264 | i_samprate = 24000 265 | s_device = rf2 266 | b_bias = no 267 | s_symbol_table = / 268 | s_symbol_id = O 269 | 270 | [acars] 271 | s_id = acars 272 | s_name = VHF ACARS Decoder 273 | s_type = process 274 | i_gain = 48 275 | s_device = rf1 276 | l_freqs = [131450000,131475000,131525000,131725000,131825000] 277 | b_bias = no 278 | 279 | [lora] 280 | s_id = lora 281 | s_name = Lora decoder 282 | s_type = process 283 | i_gain = 48 284 | s_device = rf1 285 | l_freqs = [131450000,131475000,131525000,131725000,131825000] 286 | b_bias = no 287 | 288 | [vdl] 289 | s_id = vdl 290 | s_name = VHF Data Link Decoder 291 | s_type = process 292 | i_gain = 48 293 | s_device = rf2 294 | l_freqs = [136725000,136775000,136825000,136875000,136975000] 295 | b_bias = no 296 | 297 | [adsb] 298 | s_id = adsb 299 | s_name = ADS-B decoder 300 | s_type = process 301 | i_gain = 48 302 | s_device = rf1 303 | i_samprate = 960000 304 | b_bias = no 305 | 306 | [ism] 307 | s_id = ism 308 | s_name = ISM decoder 309 | s_type = process 310 | i_gain = 48 311 | s_device = rf1 312 | i_freq = 433920000 313 | i_samprate = 1400000 314 | b_bias = no 315 | 316 | [gqrx] 317 | s_id = gqrx 318 | s_name = DEMOD 319 | s_type = process 320 | s_device = rf1 321 | b_directsamp = no 322 | b_bias = no 323 | i_decimation = 4 324 | i_freq = 144800000 325 | i_samprate = 1024000 326 | s_generic_config = /home/pi/git/pisdr-cyberdeck/src/config/generic.conf 327 | 328 | [gqrx_offline] 329 | s_id = gqrx_offline 330 | s_name = DEMOD Offline 331 | s_type = application 332 | 333 | [opencpn] 334 | s_id = opencpn 335 | s_name = Open chart plotter 336 | s_type = application 337 | b_on_startup = no 338 | 339 | [fldigi] 340 | s_id = fldigi 341 | s_name = Digi demodulator 342 | s_type = application 343 | b_on_startup = no 344 | 345 | [keyboard] 346 | s_id = keyboard 347 | s_name = ON-SCREEN KEYBOARD 348 | s_type = application 349 | b_on_startup = no 350 | 351 | [navigation] 352 | s_id = navigation 353 | s_name = NAVIGATION 354 | s_type = application 355 | i_xastir_port = 2023 356 | s_xastir_ip = 127.0.0.1 357 | s_xastir_call = BASE 358 | i_xastir_passcode = 25318 359 | 360 | b_on_startup = no 361 | 362 | [gpredict] 363 | s_id = gpredict 364 | s_name = Satellite tracking 365 | s_type = application 366 | b_on_startup = no 367 | s_location_file = /home/pi/.config/Gpredict/GPS.qth 368 | s_default_name = Darmstadt 369 | f_default_lat = 49.8 370 | f_default_lon = 8.64 371 | f_default_alt = 60.0 372 | s_default_grid = JN49hu 373 | b_use_gps_onfix = yes 374 | 375 | [client] 376 | s_id = client 377 | s_name = Local control client 378 | s_type = application 379 | b_on_startup = no 380 | 381 | [vnc1] 382 | s_id = vnc1 383 | s_name = VNC Server 1 384 | s_type = application 385 | b_on_startup = no 386 | 387 | [vnc2] 388 | s_id = vnc2 389 | s_name = VNC Server 2 390 | s_type = application 391 | b_on_startup = no 392 | -------------------------------------------------------------------------------- /src/api/server.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | 4 | __author__ = 'Tom Mladenov' 5 | 6 | import systems 7 | import RPi.GPIO as GPIO 8 | import board 9 | from threading import Thread 10 | from configparser import ConfigParser 11 | import json 12 | import os 13 | from influxdb import InfluxDBClient 14 | import datetime 15 | import time 16 | 17 | 18 | class Server(object): 19 | 20 | def __init__(self, parent=None): 21 | super(Server, self).__init__() 22 | 23 | self.configurator = ConfigParser() 24 | self.configurator.read("/home/pi/git/pisdr-cyberdeck/src/api/config.ini") 25 | 26 | server_config = dict(self.load_config(self.configurator.items("server"))) 27 | 28 | self.host = server_config["s_server_host"] 29 | self.port = server_config["i_server_port"] 30 | self.s_header_description = server_config["s_header_description"] 31 | 32 | GPIO.setmode(GPIO.BCM) 33 | self.I2C_BUS = board.I2C() 34 | 35 | #devices 36 | self.obc = systems.OBC( self, dict(self.load_config(self.configurator.items("obc")))) 37 | self.display = systems.Display( self, dict(self.load_config(self.configurator.items("display")))) 38 | self.battery = systems.Battery( self, dict(self.load_config(self.configurator.items("battery")))) 39 | self.dcdc = systems.DCDC( self, dict(self.load_config(self.configurator.items("dcdc")))) 40 | self.audio = systems.Audio( self, dict(self.load_config(self.configurator.items("audio")))) 41 | self.usb = systems.USB( self, dict(self.load_config(self.configurator.items("usb")))) 42 | self.lan = systems.LAN( self, dict(self.load_config(self.configurator.items("lan")))) 43 | self.wlan = systems.WLAN( self, dict(self.load_config(self.configurator.items("wlan")))) 44 | self.bluetooth = systems.Bluetooth( self, dict(self.load_config(self.configurator.items("bluetooth")))) 45 | self.gps = systems.GPS( self, dict(self.load_config(self.configurator.items("gps")))) 46 | self.rigctl = systems.RigCtl( self, dict(self.load_config(self.configurator.items("rigctl")))) 47 | self.rf = systems.RF( self, dict(self.load_config(self.configurator.items("rf")))) 48 | self.indicator = systems.Indicator(self, dict(self.load_config(self.configurator.items("indicator")))) 49 | self.publisher = systems.Publisher(self, dict(self.load_config(self.configurator.items("publisher")))) 50 | self.clock = systems.Clock(self, dict(self.load_config(self.configurator.items("clock")))) 51 | self.database = systems.Database(self, dict(self.load_config(self.configurator.items("database")))) 52 | 53 | #Processes 54 | self.aprs = systems.APRS(self, dict(self.load_config(self.configurator.items("aprs")))) 55 | self.ais = systems.AIS(self, dict(self.load_config(self.configurator.items("ais")))) 56 | self.rtltcp1 = systems.RTLTCP(self, dict(self.load_config(self.configurator.items("rtltcp1")))) 57 | self.rtltcp2 = systems.RTLTCP(self, dict(self.load_config(self.configurator.items("rtltcp2")))) 58 | self.rs1 = systems.RS(self, dict(self.load_config(self.configurator.items("rs1")))) 59 | self.rs2 = systems.RS(self, dict(self.load_config(self.configurator.items("rs2")))) 60 | self.acars = systems.ACARS(self, dict(self.load_config(self.configurator.items("acars")))) 61 | self.vdl = systems.VDL(self, dict(self.load_config(self.configurator.items("vdl")))) 62 | self.ism = systems.ISM(self, dict(self.load_config(self.configurator.items("ism")))) 63 | self.gqrx = systems.GQRX(self, dict(self.load_config(self.configurator.items("gqrx")))) 64 | self.proxy = systems.Proxy(self, dict(self.load_config(self.configurator.items("proxy")))) 65 | self.subscriber = systems.Subscriber(self, dict(self.load_config(self.configurator.items("subscriber")))) 66 | 67 | #Applications 68 | self.opencpn = systems.Application(self, dict(self.load_config(self.configurator.items("opencpn")))) 69 | self.fldigi = systems.Application(self, dict(self.load_config(self.configurator.items("fldigi")))) 70 | self.keyboard = systems.Application(self, dict(self.load_config(self.configurator.items("keyboard")))) 71 | self.navigation = systems.Application(self, dict(self.load_config(self.configurator.items("navigation")))) 72 | self.gpredict = systems.Gpredict(self, dict(self.load_config(self.configurator.items("gpredict")))) 73 | self.vnc1 = systems.Application(self, dict(self.load_config(self.configurator.items("vnc1")))) 74 | self.vnc2 = systems.Application(self, dict(self.load_config(self.configurator.items("vnc2")))) 75 | 76 | self.systems = [] 77 | self.systems.append(self.obc) 78 | self.systems.append(self.display) 79 | self.systems.append(self.battery) 80 | self.systems.append(self.dcdc) 81 | self.systems.append(self.audio) 82 | self.systems.append(self.usb) 83 | self.systems.append(self.lan) 84 | self.systems.append(self.wlan) 85 | self.systems.append(self.bluetooth) 86 | self.systems.append(self.gps) 87 | self.systems.append(self.rigctl) 88 | self.systems.append(self.rf) 89 | self.systems.append(self.indicator) 90 | 91 | self.systems.append(self.publisher) 92 | self.systems.append(self.clock) 93 | self.systems.append(self.aprs) 94 | self.systems.append(self.ais) 95 | self.systems.append(self.vdl) 96 | self.systems.append(self.acars) 97 | self.systems.append(self.ism) 98 | self.systems.append(self.rs1) 99 | self.systems.append(self.rs2) 100 | self.systems.append(self.rtltcp1) 101 | self.systems.append(self.rtltcp2) 102 | self.systems.append(self.gqrx) 103 | self.systems.append(self.proxy) 104 | self.systems.append(self.subscriber) 105 | 106 | #self.systems.append(self.gqrx) 107 | self.systems.append(self.opencpn) 108 | self.systems.append(self.fldigi) 109 | self.systems.append(self.keyboard) 110 | self.systems.append(self.navigation) 111 | self.systems.append(self.gpredict) 112 | self.systems.append(self.vnc1) 113 | self.systems.append(self.vnc2) 114 | 115 | #Start threads 116 | # = [system.start() for system in self.systems if isinstance(system, Thread)] 117 | 118 | for system in self.systems: 119 | if isinstance(system, Thread): 120 | system.start() 121 | time.sleep(1) 122 | 123 | 124 | def str2bool(self, v): 125 | return v.lower() in ("yes", "true", "t", "1") 126 | 127 | def load_config(self, items): 128 | result = [] 129 | for (key, value) in items: 130 | type_tag = key[:2] 131 | if type_tag == "s_": 132 | result.append((key, value)) 133 | elif type_tag == "f_": 134 | result.append((key, float(value))) 135 | elif type_tag == "b_": 136 | result.append((key, self.str2bool(value))) 137 | elif type_tag == "i_": 138 | result.append((key, int(value))) 139 | elif type_tag == "l_": 140 | result.append((key, json.loads(value))) 141 | else: 142 | raise ValueError('Invalid type tag {T} found in ini file at key {K}, value {V}'.format(T=type_tag, K=key, V=value)) 143 | 144 | return result 145 | 146 | def get_systems(self): 147 | return {"success": True, "systems": [s.config["s_id"] for s in self.systems]} 148 | 149 | def get_status(self): 150 | status = [] 151 | indexes = range(len(self.systems)) 152 | keys = [s.config["s_id"] for s in self.systems] 153 | statuses = [s.status for s in self.systems] 154 | for i in indexes: 155 | status.append({"id": keys[i], "status": statuses[i]}) 156 | return {"success": True, "status": status} 157 | 158 | def get_config(self): 159 | config = [] 160 | indexes = range(len(self.systems)) 161 | keys = [s.config["s_id"] for s in self.systems] 162 | configs = [s.config for s in self.systems] 163 | for i in indexes: 164 | config.append({"id": keys[i], "config": configs[i]}) 165 | return {"success": True, "config": config} 166 | 167 | def get_configstatus(self): 168 | configstatus = [] 169 | indexes = range(len(self.systems)) 170 | keys = [s.config["s_id"] for s in self.systems] 171 | configs = [s.config for s in self.systems] 172 | statuses = [s.status for s in self.systems] 173 | for i in indexes: 174 | configstatus.append({"id": keys[i], "config": configs[i], "status": statuses[i]}) 175 | return {"success": True, "configstatus": configstatus} 176 | 177 | def save_config(self): 178 | current_config = self.get_config()["config"] 179 | self.configurator.read_dict(current_config) 180 | with open('config.ini', 'w') as f: 181 | self.configurator.write(f) 182 | return {"success": True} 183 | 184 | def stop_threads(self): 185 | status = [system._shutdown_thread() for system in self.systems if isinstance(system, Thread)] 186 | 187 | def shutdown(self): 188 | self.stop_threads() 189 | subprocess.run(["sudo shutdown now"], shell=True) 190 | 191 | def reboot(self): 192 | self.stop_threads() 193 | subprocess.run(["sudo reboot now"], shell=True) 194 | -------------------------------------------------------------------------------- /src/gui/statusbar.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 814 10 | 30 11 | 12 | 13 | 14 | CrossCursor 15 | 16 | 17 | Dialog 18 | 19 | 20 | background-color: rgb(186, 186, 186); 21 | 22 | 23 | 24 | 25 | 590 26 | 5 27 | 46 28 | 16 29 | 30 | 31 | 32 | 33 | 9 34 | NoAntialias 35 | 36 | 37 | 38 | 45°C 39 | 40 | 41 | Qt::AlignCenter 42 | 43 | 44 | 45 | 46 | 47 | 635 48 | 5 49 | 161 50 | 16 51 | 52 | 53 | 54 | 55 | 9 56 | NoAntialias 57 | 58 | 59 | 60 | time 61 | 62 | 63 | Qt::AlignCenter 64 | 65 | 66 | 67 | 68 | 69 | 5 70 | 5 71 | 36 72 | 16 73 | 74 | 75 | 76 | 77 | 9 78 | NoAntialias 79 | 80 | 81 | 82 | background-color: rgb(255, 0, 0); 83 | 84 | 85 | GPS 86 | 87 | 88 | Qt::AlignCenter 89 | 90 | 91 | 92 | 93 | 94 | 45 95 | 5 96 | 36 97 | 16 98 | 99 | 100 | 101 | 102 | 9 103 | NoAntialias 104 | 105 | 106 | 107 | background-color: rgb(255, 0, 0); 108 | 109 | 110 | IMU 111 | 112 | 113 | Qt::AlignCenter 114 | 115 | 116 | 117 | 118 | 119 | 545 120 | 5 121 | 51 122 | 16 123 | 124 | 125 | 126 | 127 | 9 128 | NoAntialias 129 | 130 | 131 | 132 | vol 133 | 134 | 135 | 136 | 137 | 138 | 500 139 | 5 140 | 41 141 | 16 142 | 143 | 144 | 145 | 146 | 9 147 | NoAntialias 148 | 149 | 150 | 151 | bl 152 | 153 | 154 | 155 | 156 | 157 | 180 158 | 5 159 | 66 160 | 16 161 | 162 | 163 | 164 | 165 | 9 166 | NoAntialias 167 | 168 | 169 | 170 | background-color: rgb(255, 0, 0); 171 | 172 | 173 | RF1 174 | 175 | 176 | Qt::AlignCenter 177 | 178 | 179 | 180 | 181 | 182 | 250 183 | 5 184 | 66 185 | 16 186 | 187 | 188 | 189 | 190 | 9 191 | NoAntialias 192 | 193 | 194 | 195 | background-color: rgb(255, 0, 0); 196 | 197 | 198 | RF2 199 | 200 | 201 | Qt::AlignCenter 202 | 203 | 204 | 205 | 206 | 207 | 85 208 | 5 209 | 51 210 | 16 211 | 212 | 213 | 214 | 215 | 9 216 | NoAntialias 217 | 218 | 219 | 220 | background-color: rgb(255, 0, 0); 221 | 222 | 223 | AUDIO 224 | 225 | 226 | Qt::AlignCenter 227 | 228 | 229 | 230 | 231 | 232 | 140 233 | 5 234 | 36 235 | 16 236 | 237 | 238 | 239 | 240 | 9 241 | NoAntialias 242 | 243 | 244 | 245 | background-color: rgb(255, 0, 0); 246 | 247 | 248 | USB 249 | 250 | 251 | Qt::AlignCenter 252 | 253 | 254 | 255 | 256 | 257 | 320 258 | 5 259 | 41 260 | 16 261 | 262 | 263 | 264 | 265 | 9 266 | NoAntialias 267 | 268 | 269 | 270 | background-color: rgb(255, 0, 0); 271 | 272 | 273 | LAN 274 | 275 | 276 | Qt::AlignCenter 277 | 278 | 279 | 280 | 281 | 282 | 365 283 | 5 284 | 41 285 | 16 286 | 287 | 288 | 289 | 290 | 9 291 | NoAntialias 292 | 293 | 294 | 295 | background-color: rgb(255, 0, 0); 296 | 297 | 298 | WLAN 299 | 300 | 301 | Qt::AlignCenter 302 | 303 | 304 | 305 | 306 | 307 | 460 308 | 5 309 | 36 310 | 16 311 | 312 | 313 | 314 | 315 | 9 316 | NoAntialias 317 | 318 | 319 | 320 | 3.6W 321 | 322 | 323 | 324 | 325 | 326 | 410 327 | 5 328 | 46 329 | 16 330 | 331 | 332 | 333 | 334 | 9 335 | NoAntialias 336 | 337 | 338 | 339 | B=100% 340 | 341 | 342 | 343 | 344 | 345 | 346 | -------------------------------------------------------------------------------- /src/api/gui/statusbar.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Dialog 4 | 5 | 6 | 7 | 0 8 | 0 9 | 814 10 | 30 11 | 12 | 13 | 14 | CrossCursor 15 | 16 | 17 | Dialog 18 | 19 | 20 | background-color: rgb(186, 186, 186); 21 | 22 | 23 | 24 | 25 | 550 26 | 5 27 | 66 28 | 16 29 | 30 | 31 | 32 | 33 | Noto Sans 34 | 9 35 | 50 36 | false 37 | false 38 | 39 | 40 | 41 | font: 9pt "Noto Sans"; 42 | 43 | 44 | -- 45 | 46 | 47 | Qt::AlignCenter 48 | 49 | 50 | 51 | 52 | 53 | 5 54 | 5 55 | 36 56 | 16 57 | 58 | 59 | 60 | 61 | 9 62 | PreferDefault 63 | 64 | 65 | 66 | background-color: rgb(255, 0, 0); 67 | 68 | 69 | GPS 70 | 71 | 72 | Qt::AlignCenter 73 | 74 | 75 | 76 | 77 | 78 | 480 79 | 5 80 | 66 81 | 16 82 | 83 | 84 | 85 | 86 | Noto Sans 87 | 9 88 | 50 89 | false 90 | false 91 | 92 | 93 | 94 | font: 9pt "Noto Sans"; 95 | 96 | 97 | -- 98 | 99 | 100 | Qt::AlignCenter 101 | 102 | 103 | 104 | 105 | 106 | 415 107 | 5 108 | 61 109 | 16 110 | 111 | 112 | 113 | 114 | Noto Sans 115 | 9 116 | 50 117 | false 118 | false 119 | 120 | 121 | 122 | font: 9pt "Noto Sans"; 123 | 124 | 125 | -- 126 | 127 | 128 | Qt::AlignCenter 129 | 130 | 131 | 132 | 133 | 134 | 180 135 | 5 136 | 36 137 | 16 138 | 139 | 140 | 141 | 142 | 9 143 | PreferDefault 144 | 145 | 146 | 147 | background-color: rgb(255, 0, 0); 148 | 149 | 150 | RF1 151 | 152 | 153 | Qt::AlignCenter 154 | 155 | 156 | 157 | 158 | 159 | 220 160 | 5 161 | 36 162 | 16 163 | 164 | 165 | 166 | 167 | 9 168 | PreferDefault 169 | 170 | 171 | 172 | background-color: rgb(255, 0, 0); 173 | 174 | 175 | RF2 176 | 177 | 178 | Qt::AlignCenter 179 | 180 | 181 | 182 | 183 | 184 | 45 185 | 5 186 | 51 187 | 16 188 | 189 | 190 | 191 | 192 | 9 193 | PreferDefault 194 | 195 | 196 | 197 | background-color: rgb(255, 0, 0); 198 | 199 | 200 | AUDIO 201 | 202 | 203 | Qt::AlignCenter 204 | 205 | 206 | 207 | 208 | 209 | 100 210 | 5 211 | 36 212 | 16 213 | 214 | 215 | 216 | 217 | 9 218 | PreferDefault 219 | 220 | 221 | 222 | background-color: rgb(255, 0, 0); 223 | 224 | 225 | USB 226 | 227 | 228 | Qt::AlignCenter 229 | 230 | 231 | 232 | 233 | 234 | 345 235 | 5 236 | 66 237 | 16 238 | 239 | 240 | 241 | 242 | Noto Sans 243 | 9 244 | 50 245 | false 246 | false 247 | 248 | 249 | 250 | font: 9pt "Noto Sans"; 251 | 252 | 253 | -- 254 | 255 | 256 | Qt::AlignCenter 257 | 258 | 259 | 260 | 261 | 262 | 265 263 | 5 264 | 76 265 | 16 266 | 267 | 268 | 269 | 270 | Noto Sans 271 | 9 272 | 50 273 | false 274 | false 275 | 276 | 277 | 278 | font: 9pt "Noto Sans"; 279 | 280 | 281 | -- 282 | 283 | 284 | Qt::AlignCenter 285 | 286 | 287 | 288 | 289 | 290 | 615 291 | 5 292 | 196 293 | 16 294 | 295 | 296 | 297 | 298 | Noto Sans 299 | 9 300 | 50 301 | false 302 | false 303 | 304 | 305 | 306 | font: 9pt "Noto Sans"; 307 | 308 | 309 | -- 310 | 311 | 312 | Qt::AlignCenter 313 | 314 | 315 | 316 | 317 | 318 | 140 319 | 5 320 | 36 321 | 16 322 | 323 | 324 | 325 | 326 | 9 327 | PreferDefault 328 | 329 | 330 | 331 | background-color: rgb(255, 0, 0); 332 | 333 | 334 | LAN 335 | 336 | 337 | Qt::AlignCenter 338 | 339 | 340 | 341 | 342 | 343 | 344 | -------------------------------------------------------------------------------- /src/gui/toolbar.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tom Mladenov 4 | main 5 | 6 | 7 | 8 | 0 9 | 0 10 | 94 11 | 455 12 | 13 | 14 | 15 | CrossCursor 16 | 17 | 18 | Qt::ClickFocus 19 | 20 | 21 | MainWindow 22 | 23 | 24 | background-color: rgb(186, 186, 186); 25 | 26 | 27 | 28 | 29 | 30 | 169 31 | 235 32 | 121 33 | 16 34 | 35 | 36 | 37 | color: rgb(255, 255, 255); 38 | 39 | 40 | -- 41 | 42 | 43 | Qt::AlignCenter 44 | 45 | 46 | 47 | 48 | 49 | 10 50 | 58 51 | 51 52 | 32 53 | 54 | 55 | 56 | 57 | 9 58 | NoAntialias 59 | 60 | 61 | 62 | PointingHandCursor 63 | 64 | 65 | border: 1px solid black; 66 | border-radius: 25px; 67 | background-color: rgb(186, 186, 186); 68 | 69 | 70 | VOL - 71 | 72 | 73 | 74 | 75 | 76 | 10 77 | 18 78 | 51 79 | 32 80 | 81 | 82 | 83 | 84 | 9 85 | NoAntialias 86 | 87 | 88 | 89 | PointingHandCursor 90 | 91 | 92 | border: 1px solid black; 93 | border-radius: 25px; 94 | background-color: rgb(186, 186, 186); 95 | 96 | 97 | 98 | VOL + 99 | 100 | 101 | 102 | 103 | 104 | 169 105 | 281 106 | 121 107 | 20 108 | 109 | 110 | 111 | color: rgb(255, 255, 255); 112 | 113 | 114 | -- 115 | 116 | 117 | Qt::AlignCenter 118 | 119 | 120 | 121 | 122 | 123 | 169 124 | 301 125 | 121 126 | 20 127 | 128 | 129 | 130 | color: rgb(255, 255, 255); 131 | 132 | 133 | -- 134 | 135 | 136 | Qt::AlignCenter 137 | 138 | 139 | 140 | 141 | 142 | 10 143 | 180 144 | 51 145 | 32 146 | 147 | 148 | 149 | 150 | 9 151 | NoAntialias 152 | 153 | 154 | 155 | PointingHandCursor 156 | 157 | 158 | border: 1px solid black; 159 | border-radius: 25px; 160 | background-color: rgb(186, 186, 186); 161 | 162 | 163 | BL - 164 | 165 | 166 | 167 | 168 | 169 | 10 170 | 140 171 | 51 172 | 32 173 | 174 | 175 | 176 | 177 | 9 178 | NoAntialias 179 | 180 | 181 | 182 | PointingHandCursor 183 | 184 | 185 | border: 1px solid black; 186 | border-radius: 25px; 187 | background-color: rgb(186, 186, 186); 188 | 189 | 190 | BL + 191 | 192 | 193 | 194 | 195 | 196 | 270 197 | 90 198 | 51 199 | 31 200 | 201 | 202 | 203 | border: 1px solid black; 204 | border-radius: 25px; 205 | background-color: rgb(186, 189, 182); 206 | 207 | 208 | 209 | AUDIO 210 | 211 | 212 | 213 | 214 | 215 | 270 216 | 130 217 | 51 218 | 31 219 | 220 | 221 | 222 | border: 1px solid black; 223 | border-radius: 25px; 224 | background-color: rgb(186, 189, 182); 225 | 226 | 227 | IMU 228 | 229 | 230 | 231 | 232 | 233 | 270 234 | 170 235 | 51 236 | 31 237 | 238 | 239 | 240 | border: 1px solid black; 241 | border-radius: 25px; 242 | background-color: rgb(186, 189, 182); 243 | 244 | 245 | 246 | NET/USB 247 | 248 | 249 | 250 | 251 | 252 | 270 253 | 50 254 | 51 255 | 31 256 | 257 | 258 | 259 | border: 1px solid black; 260 | border-radius: 25px; 261 | background-color: rgb(186, 189, 182); 262 | 263 | 264 | 265 | GPS 266 | 267 | 268 | 269 | 270 | 271 | 10 272 | 220 273 | 51 274 | 32 275 | 276 | 277 | 278 | 279 | 9 280 | NoAntialias 281 | 282 | 283 | 284 | PointingHandCursor 285 | 286 | 287 | border: 1px solid black; 288 | border-radius: 25px; 289 | background-color: rgb(186, 186, 186); 290 | 291 | 292 | NAV 293 | 294 | 295 | 296 | 297 | 298 | 10 299 | 340 300 | 51 301 | 32 302 | 303 | 304 | 305 | 306 | 9 307 | NoAntialias 308 | 309 | 310 | 311 | PointingHandCursor 312 | 313 | 314 | Qt::StrongFocus 315 | 316 | 317 | border: 1px solid black; 318 | border-radius: 25px; 319 | background-color: rgb(186, 186, 186); 320 | 321 | 322 | MENU 323 | 324 | 325 | 326 | 327 | 328 | 10 329 | 260 330 | 51 331 | 32 332 | 333 | 334 | 335 | 336 | 9 337 | NoAntialias 338 | 339 | 340 | 341 | PointingHandCursor 342 | 343 | 344 | border: 1px solid black; 345 | border-radius: 25px; 346 | background-color: rgb(186, 186, 186); 347 | 348 | 349 | GQRX 350 | 351 | 352 | 353 | 354 | 355 | 10 356 | 300 357 | 51 358 | 32 359 | 360 | 361 | 362 | 363 | 9 364 | NoAntialias 365 | 366 | 367 | 368 | PointingHandCursor 369 | 370 | 371 | Qt::StrongFocus 372 | 373 | 374 | border: 1px solid black; 375 | border-radius: 25px; 376 | background-color: rgb(186, 186, 186); 377 | 378 | 379 | KEY 380 | 381 | 382 | 383 | 384 | 385 | 10 386 | 380 387 | 51 388 | 32 389 | 390 | 391 | 392 | 393 | 9 394 | NoAntialias 395 | 396 | 397 | 398 | PointingHandCursor 399 | 400 | 401 | border: 1px solid black; 402 | border-radius: 25px; 403 | background-color: rgb(186, 186, 186); 404 | 405 | 406 | SCR 407 | 408 | 409 | 410 | 411 | 412 | 10 413 | 100 414 | 51 415 | 32 416 | 417 | 418 | 419 | 420 | 9 421 | NoAntialias 422 | 423 | 424 | 425 | PointingHandCursor 426 | 427 | 428 | Qt::StrongFocus 429 | 430 | 431 | border: 1px solid black; 432 | border-radius: 25px; 433 | background-color: rgb(186, 186, 186); 434 | 435 | 436 | MUTE 437 | 438 | 439 | 440 | 441 | 442 | 10 443 | 420 444 | 51 445 | 32 446 | 447 | 448 | 449 | 450 | 9 451 | NoAntialias 452 | 453 | 454 | 455 | PointingHandCursor 456 | 457 | 458 | border: 1px solid black; 459 | border-radius: 25px; 460 | background-color: rgb(186, 186, 186); 461 | 462 | 463 | DISPL 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | -------------------------------------------------------------------------------- /src/api/gui/toolbar.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tom Mladenov 4 | main 5 | 6 | 7 | 8 | 0 9 | 0 10 | 94 11 | 455 12 | 13 | 14 | 15 | CrossCursor 16 | 17 | 18 | Qt::ClickFocus 19 | 20 | 21 | MainWindow 22 | 23 | 24 | background-color: rgb(186, 186, 186); 25 | 26 | 27 | 28 | 29 | 30 | 169 31 | 235 32 | 121 33 | 16 34 | 35 | 36 | 37 | color: rgb(255, 255, 255); 38 | 39 | 40 | -- 41 | 42 | 43 | Qt::AlignCenter 44 | 45 | 46 | 47 | 48 | 49 | 10 50 | 60 51 | 51 52 | 32 53 | 54 | 55 | 56 | 57 | 9 58 | PreferDefault 59 | 60 | 61 | 62 | PointingHandCursor 63 | 64 | 65 | border: 1px solid black; 66 | border-radius: 25px; 67 | background-color: rgb(186, 186, 186); 68 | font: 9pt "Noto Sans"; 69 | 70 | 71 | VOL - 72 | 73 | 74 | 75 | 76 | 77 | 10 78 | 20 79 | 51 80 | 32 81 | 82 | 83 | 84 | 85 | 9 86 | PreferDefault 87 | 88 | 89 | 90 | PointingHandCursor 91 | 92 | 93 | border: 1px solid black; 94 | border-radius: 25px; 95 | background-color: rgb(186, 186, 186); 96 | font: 9pt "Noto Sans"; 97 | 98 | 99 | 100 | VOL + 101 | 102 | 103 | 104 | 105 | 106 | 169 107 | 281 108 | 121 109 | 20 110 | 111 | 112 | 113 | color: rgb(255, 255, 255); 114 | 115 | 116 | -- 117 | 118 | 119 | Qt::AlignCenter 120 | 121 | 122 | 123 | 124 | 125 | 169 126 | 301 127 | 121 128 | 20 129 | 130 | 131 | 132 | color: rgb(255, 255, 255); 133 | 134 | 135 | -- 136 | 137 | 138 | Qt::AlignCenter 139 | 140 | 141 | 142 | 143 | 144 | 10 145 | 180 146 | 51 147 | 32 148 | 149 | 150 | 151 | 152 | 9 153 | PreferDefault 154 | 155 | 156 | 157 | PointingHandCursor 158 | 159 | 160 | border: 1px solid black; 161 | border-radius: 25px; 162 | background-color: rgb(186, 186, 186); 163 | font: 9pt "Noto Sans"; 164 | 165 | 166 | BL - 167 | 168 | 169 | 170 | 171 | 172 | 10 173 | 140 174 | 51 175 | 32 176 | 177 | 178 | 179 | 180 | 9 181 | PreferDefault 182 | 183 | 184 | 185 | PointingHandCursor 186 | 187 | 188 | border: 1px solid black; 189 | border-radius: 25px; 190 | background-color: rgb(186, 186, 186); 191 | font: 9pt "Noto Sans"; 192 | 193 | 194 | BL + 195 | 196 | 197 | 198 | 199 | 200 | 270 201 | 90 202 | 51 203 | 31 204 | 205 | 206 | 207 | border: 1px solid black; 208 | border-radius: 25px; 209 | background-color: rgb(186, 189, 182); 210 | 211 | 212 | 213 | AUDIO 214 | 215 | 216 | 217 | 218 | 219 | 270 220 | 130 221 | 51 222 | 31 223 | 224 | 225 | 226 | border: 1px solid black; 227 | border-radius: 25px; 228 | background-color: rgb(186, 189, 182); 229 | 230 | 231 | IMU 232 | 233 | 234 | 235 | 236 | 237 | 270 238 | 170 239 | 51 240 | 31 241 | 242 | 243 | 244 | border: 1px solid black; 245 | border-radius: 25px; 246 | background-color: rgb(186, 189, 182); 247 | 248 | 249 | 250 | NET/USB 251 | 252 | 253 | 254 | 255 | 256 | 270 257 | 50 258 | 51 259 | 31 260 | 261 | 262 | 263 | border: 1px solid black; 264 | border-radius: 25px; 265 | background-color: rgb(186, 189, 182); 266 | 267 | 268 | 269 | GPS 270 | 271 | 272 | 273 | 274 | 275 | 10 276 | 220 277 | 51 278 | 32 279 | 280 | 281 | 282 | 283 | 9 284 | PreferDefault 285 | 286 | 287 | 288 | PointingHandCursor 289 | 290 | 291 | border: 1px solid black; 292 | border-radius: 25px; 293 | background-color: rgb(186, 186, 186); 294 | font: 9pt "Noto Sans"; 295 | 296 | 297 | NAV 298 | 299 | 300 | 301 | 302 | 303 | 10 304 | 340 305 | 51 306 | 32 307 | 308 | 309 | 310 | 311 | 9 312 | PreferDefault 313 | 314 | 315 | 316 | PointingHandCursor 317 | 318 | 319 | Qt::StrongFocus 320 | 321 | 322 | border: 1px solid black; 323 | border-radius: 25px; 324 | background-color: rgb(186, 186, 186); 325 | font: 9pt "Noto Sans"; 326 | 327 | 328 | MENU 329 | 330 | 331 | 332 | 333 | 334 | 10 335 | 260 336 | 51 337 | 32 338 | 339 | 340 | 341 | 342 | 9 343 | PreferDefault 344 | 345 | 346 | 347 | PointingHandCursor 348 | 349 | 350 | border: 1px solid black; 351 | border-radius: 25px; 352 | background-color: rgb(186, 186, 186); 353 | font: 9pt "Noto Sans"; 354 | 355 | 356 | GQRX 357 | 358 | 359 | 360 | 361 | 362 | 10 363 | 300 364 | 51 365 | 32 366 | 367 | 368 | 369 | 370 | 9 371 | PreferDefault 372 | 373 | 374 | 375 | PointingHandCursor 376 | 377 | 378 | Qt::StrongFocus 379 | 380 | 381 | border: 1px solid black; 382 | border-radius: 25px; 383 | background-color: rgb(186, 186, 186); 384 | font: 9pt "Noto Sans"; 385 | 386 | 387 | KEY 388 | 389 | 390 | 391 | 392 | 393 | 10 394 | 380 395 | 51 396 | 32 397 | 398 | 399 | 400 | 401 | 9 402 | PreferDefault 403 | 404 | 405 | 406 | PointingHandCursor 407 | 408 | 409 | border: 1px solid black; 410 | border-radius: 25px; 411 | background-color: rgb(186, 186, 186); 412 | font: 9pt "Noto Sans"; 413 | 414 | 415 | SCR 416 | 417 | 418 | 419 | 420 | 421 | 10 422 | 100 423 | 51 424 | 32 425 | 426 | 427 | 428 | 429 | 9 430 | PreferDefault 431 | 432 | 433 | 434 | PointingHandCursor 435 | 436 | 437 | Qt::StrongFocus 438 | 439 | 440 | border: 1px solid black; 441 | border-radius: 25px; 442 | background-color: rgb(186, 186, 186); 443 | font: 9pt "Noto Sans"; 444 | 445 | 446 | MUTE 447 | 448 | 449 | 450 | 451 | 452 | 10 453 | 420 454 | 51 455 | 32 456 | 457 | 458 | 459 | 460 | 9 461 | PreferDefault 462 | 463 | 464 | 465 | PointingHandCursor 466 | 467 | 468 | border: 1px solid black; 469 | border-radius: 25px; 470 | background-color: rgb(186, 186, 186); 471 | font: 9pt "Noto Sans"; 472 | 473 | 474 | DISPL 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | -------------------------------------------------------------------------------- /src/api/gui/menu_2.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Form 4 | 5 | 6 | 7 | 0 8 | 0 9 | 732 10 | 452 11 | 12 | 13 | 14 | CrossCursor 15 | 16 | 17 | Form 18 | 19 | 20 | background-color: rgb(186, 186, 186); 21 | border-radius: 1px; 22 | 23 | 24 | 25 | 26 | 10 27 | 55 28 | 711 29 | 386 30 | 31 | 32 | 33 | CrossCursor 34 | 35 | 36 | border:0px solid black; 37 | QHeaderView::section { background-color: rgb(186, 186, 186) } 38 | 39 | 40 | 0 41 | 42 | 43 | 44 | 45 | 46 | -10 47 | 5 48 | 726 49 | 386 50 | 51 | 52 | 53 | 54 | QLayout::SetDefaultConstraint 55 | 56 | 57 | 0 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -10 67 | 5 68 | 726 69 | 391 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | -10 80 | 5 81 | 726 82 | 391 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 0 93 | 5 94 | 676 95 | 326 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 455 106 | 90 107 | 76 108 | 31 109 | 110 | 111 | 112 | 113 | 9 114 | PreferDefault 115 | 116 | 117 | 118 | PointingHandCursor 119 | 120 | 121 | Qt::WheelFocus 122 | 123 | 124 | border: 1px solid black; 125 | border-radius: 25px; 126 | background-color: rgb(186, 186, 186); 127 | 128 | 129 | LOG 130 | 131 | 132 | 133 | 134 | 135 | 455 136 | 50 137 | 76 138 | 31 139 | 140 | 141 | 142 | 143 | 9 144 | PreferDefault 145 | 146 | 147 | 148 | PointingHandCursor 149 | 150 | 151 | Qt::WheelFocus 152 | 153 | 154 | border: 1px solid black; 155 | border-radius: 25px; 156 | background-color: rgb(186, 186, 186); 157 | 158 | 159 | KERNEL 160 | 161 | 162 | 163 | 164 | 165 | 550 166 | 50 167 | 71 168 | 31 169 | 170 | 171 | 172 | 173 | 9 174 | PreferDefault 175 | 176 | 177 | 178 | PointingHandCursor 179 | 180 | 181 | Qt::WheelFocus 182 | 183 | 184 | border: 1px solid black; 185 | border-radius: 25px; 186 | background-color: rgb(186, 186, 186); 187 | 188 | 189 | CHRONO 190 | 191 | 192 | 193 | 194 | 195 | 545 196 | 100 197 | 71 198 | 31 199 | 200 | 201 | 202 | 203 | 9 204 | PreferDefault 205 | 206 | 207 | 208 | PointingHandCursor 209 | 210 | 211 | Qt::WheelFocus 212 | 213 | 214 | border: 1px solid black; 215 | border-radius: 25px; 216 | background-color: rgb(186, 186, 186); 217 | 218 | 219 | FILE MGR 220 | 221 | 222 | 223 | 224 | 225 | 545 226 | 140 227 | 71 228 | 31 229 | 230 | 231 | 232 | 233 | 9 234 | PreferDefault 235 | 236 | 237 | 238 | PointingHandCursor 239 | 240 | 241 | Qt::WheelFocus 242 | 243 | 244 | border: 1px solid black; 245 | border-radius: 25px; 246 | background-color: rgb(186, 186, 186); 247 | 248 | 249 | CALC 250 | 251 | 252 | 253 | 254 | 255 | 5 256 | 105 257 | 71 258 | 66 259 | 260 | 261 | 262 | 263 | Arial 264 | 10 265 | 9 266 | false 267 | false 268 | 269 | 270 | 271 | PointingHandCursor 272 | 273 | 274 | Qt::WheelFocus 275 | 276 | 277 | border: 1px solid black; 278 | border-radius: 1px; 279 | background-color: rgb(255, 0, 0); 280 | font: 75 10pt "Arial"; 281 | 282 | 283 | SHTDWN 284 | 285 | 286 | 287 | 288 | 289 | 5 290 | 185 291 | 71 292 | 66 293 | 294 | 295 | 296 | 297 | Arial 298 | 10 299 | 9 300 | false 301 | false 302 | 303 | 304 | 305 | PointingHandCursor 306 | 307 | 308 | Qt::WheelFocus 309 | 310 | 311 | border: 1px solid black; 312 | border-radius: 1px; 313 | background-color: rgb(255, 0, 0); 314 | font: 75 10pt "Arial"; 315 | 316 | 317 | REBOOT 318 | 319 | 320 | 321 | 322 | 323 | 5 324 | 25 325 | 71 326 | 66 327 | 328 | 329 | 330 | 331 | Arial 332 | 10 333 | 9 334 | false 335 | false 336 | 337 | 338 | 339 | PointingHandCursor 340 | 341 | 342 | Qt::WheelFocus 343 | 344 | 345 | border: 1px solid black; 346 | border-radius: 1px; 347 | background-color: rgb(155, 155, 155); 348 | font: 75 10pt "Arial"; 349 | 350 | 351 | EXIT 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 15 360 | 20 361 | 56 362 | 31 363 | 364 | 365 | 366 | 367 | Noto Sans 368 | 9 369 | 50 370 | false 371 | false 372 | 373 | 374 | 375 | PointingHandCursor 376 | 377 | 378 | Qt::WheelFocus 379 | 380 | 381 | border: 1px solid black; 382 | border-radius: 25px; 383 | background-color: rgb(155, 155, 155); 384 | font: 9pt "Noto Sans"; 385 | 386 | 387 | MAIN 388 | 389 | 390 | 391 | 392 | 393 | 80 394 | 20 395 | 56 396 | 31 397 | 398 | 399 | 400 | 401 | Noto Sans 402 | 9 403 | 50 404 | false 405 | false 406 | 407 | 408 | 409 | PointingHandCursor 410 | 411 | 412 | Qt::WheelFocus 413 | 414 | 415 | border: 1px solid black; 416 | border-radius: 25px; 417 | background-color: rgb(155, 155, 155); 418 | font: 9pt "Noto Sans"; 419 | 420 | 421 | PROC 422 | 423 | 424 | 425 | 426 | 427 | 145 428 | 20 429 | 56 430 | 31 431 | 432 | 433 | 434 | 435 | Noto Sans 436 | 9 437 | 50 438 | false 439 | false 440 | 441 | 442 | 443 | PointingHandCursor 444 | 445 | 446 | Qt::WheelFocus 447 | 448 | 449 | border: 1px solid black; 450 | border-radius: 25px; 451 | background-color: rgb(155, 155, 155); 452 | font: 9pt "Noto Sans"; 453 | 454 | 455 | APPS 456 | 457 | 458 | 459 | 460 | 461 | 210 462 | 20 463 | 56 464 | 31 465 | 466 | 467 | 468 | 469 | Noto Sans 470 | 9 471 | 50 472 | false 473 | false 474 | 475 | 476 | 477 | PointingHandCursor 478 | 479 | 480 | Qt::WheelFocus 481 | 482 | 483 | border: 1px solid black; 484 | border-radius: 25px; 485 | background-color: rgb(155, 155, 155); 486 | font: 9pt "Noto Sans"; 487 | 488 | 489 | DATA 490 | 491 | 492 | 493 | 494 | 495 | 275 496 | 20 497 | 56 498 | 31 499 | 500 | 501 | 502 | 503 | Noto Sans 504 | 9 505 | 50 506 | false 507 | false 508 | 509 | 510 | 511 | PointingHandCursor 512 | 513 | 514 | Qt::WheelFocus 515 | 516 | 517 | border: 1px solid black; 518 | border-radius: 25px; 519 | background-color: rgb(155, 155, 155); 520 | font: 9pt "Noto Sans"; 521 | 522 | 523 | MISC 524 | 525 | 526 | 527 | 528 | 529 | 0 530 | 60 531 | 726 532 | 1 533 | 534 | 535 | 536 | false 537 | 538 | 539 | background-color: rgb(0, 0, 0); 540 | color: rgb(0, 0, 0); 541 | border: 1.0px solid black; 542 | 543 | 544 | 1 545 | 546 | 547 | 1 548 | 549 | 550 | Qt::Horizontal 551 | 552 | 553 | 554 | 555 | 556 | 726 557 | 0 558 | 1 559 | 451 560 | 561 | 562 | 563 | background-color: rgb(0, 0, 0); 564 | color: rgb(0, 0, 0); 565 | border: 1.0px solid black; 566 | 567 | 568 | Qt::Vertical 569 | 570 | 571 | 572 | 573 | 574 | 615 575 | 35 576 | 101 577 | 16 578 | 579 | 580 | 581 | 582 | Noto Sans 583 | 9 584 | 50 585 | false 586 | false 587 | 588 | 589 | 590 | font: 9pt "Noto Sans"; 591 | 592 | 593 | -- 594 | 595 | 596 | Qt::AlignCenter 597 | 598 | 599 | 600 | 601 | 602 | 615 603 | 10 604 | 101 605 | 17 606 | 607 | 608 | 609 | 610 | 9 611 | PreferDefault 612 | 613 | 614 | 615 | background-color: rgb(255, 0, 0); 616 | 617 | 618 | DISCONNECTED 619 | 620 | 621 | Qt::AlignCenter 622 | 623 | 624 | 625 | 626 | 627 | 350 628 | 10 629 | 256 630 | 16 631 | 632 | 633 | 634 | 635 | Noto Sans 636 | 9 637 | 50 638 | false 639 | false 640 | 641 | 642 | 643 | font: 9pt "Noto Sans"; 644 | 645 | 646 | -- 647 | 648 | 649 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 650 | 651 | 652 | 653 | 654 | 655 | 350 656 | 35 657 | 256 658 | 16 659 | 660 | 661 | 662 | 663 | Noto Sans 664 | 9 665 | 50 666 | false 667 | false 668 | 669 | 670 | 671 | font: 9pt "Noto Sans"; 672 | 673 | 674 | -- 675 | 676 | 677 | Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 678 | 679 | 680 | 681 | 682 | 683 | 684 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------