2020-12-23 16:48:54 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
Created on Wed Dec 23 11:13:57 2020
|
|
|
|
|
2021-01-06 12:17:17 +00:00
|
|
|
@author: DJ2LS
|
2021-09-27 15:33:59 +00:00
|
|
|
Here we are saving application wide variables and stats, which have to be accessed everywhere.
|
|
|
|
Not nice, tipps are appreciated :-)
|
2020-12-23 16:48:54 +00:00
|
|
|
"""
|
2021-02-08 15:33:11 +00:00
|
|
|
|
2021-07-09 17:26:02 +00:00
|
|
|
# DAEMON
|
|
|
|
DAEMONPORT = 3001
|
|
|
|
TNCSTARTED = False
|
|
|
|
TNCPROCESS = 0
|
|
|
|
|
|
|
|
|
2021-02-16 13:23:57 +00:00
|
|
|
# Operator Defaults
|
2021-02-16 21:41:06 +00:00
|
|
|
MYCALLSIGN = b'AA0AA'
|
|
|
|
MYCALLSIGN_CRC8 = b'A'
|
2021-02-08 15:33:11 +00:00
|
|
|
|
2021-02-16 21:41:06 +00:00
|
|
|
DXCALLSIGN = b'AA0AA'
|
|
|
|
DXCALLSIGN_CRC8 = b'A'
|
2021-02-08 15:33:11 +00:00
|
|
|
|
2021-02-16 13:23:57 +00:00
|
|
|
MYGRID = b''
|
2021-05-14 06:48:51 +00:00
|
|
|
DXGRID = b''
|
2021-02-19 08:50:04 +00:00
|
|
|
|
2021-03-12 13:14:36 +00:00
|
|
|
# ---------------------------------
|
2021-02-08 15:33:11 +00:00
|
|
|
|
2021-02-16 13:23:57 +00:00
|
|
|
# Server Defaults
|
2021-05-29 13:48:27 +00:00
|
|
|
HOST = "0.0.0.0"
|
2021-02-16 13:23:57 +00:00
|
|
|
PORT = 3000
|
2022-01-06 21:15:14 +00:00
|
|
|
SOCKET_TIMEOUT = 1 # seconds
|
2021-03-12 13:14:36 +00:00
|
|
|
# ---------------------------------
|
2021-02-08 15:33:11 +00:00
|
|
|
|
2021-02-19 10:08:44 +00:00
|
|
|
|
2021-12-27 11:30:43 +00:00
|
|
|
|
2021-02-24 13:16:29 +00:00
|
|
|
PTT_STATE = False
|
2022-01-07 11:55:03 +00:00
|
|
|
TRANSMITTING = False
|
2021-02-19 10:08:44 +00:00
|
|
|
|
2021-12-27 11:30:43 +00:00
|
|
|
HAMLIB_PTT_TYPE = 'RTS'
|
2021-12-26 08:20:58 +00:00
|
|
|
HAMLIB_DEVICE_NAME = 'RIG_MODEL_DUMMY_NOVFO'
|
2021-05-09 09:36:08 +00:00
|
|
|
HAMLIB_DEVICE_PORT = '/dev/ttyUSB0'
|
2021-07-25 14:34:28 +00:00
|
|
|
HAMLIB_SERIAL_SPEED = '9600'
|
2021-12-26 14:25:35 +00:00
|
|
|
HAMLIB_PTT_PORT = '/dev/ttyUSB0'
|
2021-12-27 11:30:43 +00:00
|
|
|
HAMLIB_STOP_BITS = '1'
|
|
|
|
HAMLIB_DATA_BITS = '8'
|
2021-12-28 16:05:48 +00:00
|
|
|
HAMLIB_HANDSHAKE = 'None'
|
2022-01-18 18:38:05 +00:00
|
|
|
HAMLIB_RADIOCONTROL = 'direct'
|
|
|
|
HAMLIB_RGICTLD_IP = '127.0.0.1'
|
|
|
|
HAMLIB_RGICTLD_PORT = '4532'
|
|
|
|
|
2021-05-29 20:18:11 +00:00
|
|
|
HAMLIB_FREQUENCY = 0
|
2021-05-29 21:19:50 +00:00
|
|
|
HAMLIB_MODE = ''
|
|
|
|
HAMLIB_BANDWITH = 0
|
2021-03-12 13:14:36 +00:00
|
|
|
# -------------------------
|
2020-12-23 16:48:54 +00:00
|
|
|
# FreeDV Defaults
|
2021-02-24 13:16:29 +00:00
|
|
|
|
2021-03-16 15:37:23 +00:00
|
|
|
SNR = 0
|
2021-10-24 12:44:55 +00:00
|
|
|
FREQ_OFFSET = 0
|
2021-08-06 20:09:16 +00:00
|
|
|
SCATTER = []
|
2021-03-12 13:14:36 +00:00
|
|
|
# ---------------------------------
|
2020-12-23 16:48:54 +00:00
|
|
|
|
2021-03-12 13:14:36 +00:00
|
|
|
# Audio Defaults
|
2021-12-19 18:45:08 +00:00
|
|
|
AUDIO_INPUT_DEVICE = -2
|
|
|
|
AUDIO_OUTPUT_DEVICE = -2
|
2022-01-15 19:17:19 +00:00
|
|
|
BUFFER_OVERFLOW_COUNTER = [0,0,0]
|
2021-10-03 14:31:34 +00:00
|
|
|
|
2021-03-09 15:45:27 +00:00
|
|
|
AUDIO_RMS = 0
|
2021-07-09 17:26:02 +00:00
|
|
|
FFT = []
|
2021-08-06 20:09:16 +00:00
|
|
|
|
2020-12-25 21:55:56 +00:00
|
|
|
|
2021-09-26 15:51:11 +00:00
|
|
|
# ARQ statistics
|
|
|
|
ARQ_BYTES_PER_MINUTE_BURST = 0
|
2021-03-17 10:22:06 +00:00
|
|
|
ARQ_BYTES_PER_MINUTE = 0
|
2021-09-11 07:21:22 +00:00
|
|
|
ARQ_BITS_PER_SECOND_BURST = 0
|
2021-09-26 15:51:11 +00:00
|
|
|
ARQ_BITS_PER_SECOND = 0
|
2021-12-30 11:41:41 +00:00
|
|
|
ARQ_COMPRESSION_FACTOR = 0
|
2021-08-14 18:00:32 +00:00
|
|
|
ARQ_TRANSMISSION_PERCENT = 0
|
|
|
|
TOTAL_BYTES = 0
|
2021-02-24 15:47:52 +00:00
|
|
|
|
2022-01-02 11:35:00 +00:00
|
|
|
|
2021-12-25 17:17:02 +00:00
|
|
|
#CHANNEL_STATE = 'RECEIVING_SIGNALLING'
|
2021-09-27 15:33:59 +00:00
|
|
|
TNC_STATE = 'IDLE'
|
2022-01-04 10:55:55 +00:00
|
|
|
ARQ_STATE = False
|
2021-09-27 15:33:59 +00:00
|
|
|
|
2021-12-06 19:16:14 +00:00
|
|
|
# BEACON STATE
|
|
|
|
BEACON_STATE = False
|
2021-09-26 15:51:11 +00:00
|
|
|
|
2020-12-30 17:16:32 +00:00
|
|
|
# ------- RX BUFFER
|
|
|
|
RX_BUFFER = []
|
2021-10-17 15:01:21 +00:00
|
|
|
RX_MSG_BUFFER = []
|
2021-09-26 15:51:11 +00:00
|
|
|
RX_BURST_BUFFER = []
|
2021-12-29 19:54:54 +00:00
|
|
|
RX_FRAME_BUFFER = b''
|
2021-09-26 15:51:11 +00:00
|
|
|
#RX_BUFFER_SIZE = 0
|
2020-12-26 10:02:14 +00:00
|
|
|
|
2021-03-11 19:04:31 +00:00
|
|
|
# ------- HEARD STATIOS BUFFER
|
|
|
|
HEARD_STATIONS = []
|
2021-10-07 19:04:23 +00:00
|
|
|
|
|
|
|
# ------- INFO MESSAGE BUFFER
|
|
|
|
INFO = []
|