FreeDATA/tnc/static.py

97 lines
1.6 KiB
Python
Raw Normal View History

2020-12-23 16:48:54 +00:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 23 11:13:57 2020
@author: DJ2LS
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-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-16 21:41:06 +00:00
DXCALLSIGN = b'AA0AA'
DXCALLSIGN_CRC8 = b'A'
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-16 13:23:57 +00:00
# Server Defaults
HOST = "0.0.0.0"
2021-02-16 13:23:57 +00:00
PORT = 3000
SOCKET_TIMEOUT = 3 # seconds
2021-03-12 13:14:36 +00:00
# ---------------------------------
PTT_STATE = False
HAMLIB_PTT_TYPE = 'RTS'
HAMLIB_DEVICE_NAME = 'RIG_MODEL_DUMMY_NOVFO'
HAMLIB_DEVICE_PORT = '/dev/ttyUSB0'
2021-07-25 14:34:28 +00:00
HAMLIB_SERIAL_SPEED = '9600'
HAMLIB_PTT_PORT = '/dev/ttyUSB0'
HAMLIB_STOP_BITS = '1'
HAMLIB_DATA_BITS = '8'
2021-12-28 16:05:48 +00:00
HAMLIB_HANDSHAKE = 'None'
HAMLIB_USE_RIGCTL = False
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-03-16 15:37:23 +00:00
SNR = 0
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
AUDIO_INPUT_DEVICE = -2
AUDIO_OUTPUT_DEVICE = -2
2021-01-07 08:28:26 +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
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-08-14 18:00:32 +00:00
ARQ_TRANSMISSION_PERCENT = 0
TOTAL_BYTES = 0
2021-02-24 15:47:52 +00:00
#CHANNEL_STATE = 'RECEIVING_SIGNALLING'
TNC_STATE = 'IDLE'
ARQ_STATE = 'IDLE'
# 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 = []
RX_FRAME_BUFFER = []
#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 = []
# ------- INFO MESSAGE BUFFER
INFO = []