FreeDATA/tnc/static.py

95 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
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
# ---------------------------------
HAMLIB_PTT_TYPE = 'RTS'
PTT_STATE = False
2021-05-14 06:48:51 +00:00
HAMLIB_DEVICE_ID = 0
HAMLIB_DEVICE_PORT = '/dev/ttyUSB0'
2021-07-25 14:34:28 +00:00
HAMLIB_SERIAL_SPEED = '9600'
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-05 13:40:32 +00:00
FREEDV_RECEIVE = True
2021-02-04 14:25:15 +00:00
FREEDV_SIGNALLING_MODE = 14
2021-09-26 15:51:11 +00:00
#FREEDV_DATA_BYTES_PER_FRAME = 0
#FREEDV_DATA_PAYLOAD_PER_FRAME = 0
#FREEDV_SIGNALLING_BYTES_PER_FRAME = 0
#FREEDV_SIGNALLING_PAYLOAD_PER_FRAME = 0
2021-02-28 18:34:36 +00:00
BER = 0
2021-03-16 15:37:23 +00:00
SNR = 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
2020-12-23 16:48:54 +00:00
AUDIO_INPUT_DEVICE = 1
AUDIO_OUTPUT_DEVICE = 1
2021-01-07 08:28:26 +00:00
AUDIO_SAMPLE_RATE_RX = 48000
AUDIO_SAMPLE_RATE_TX = 48000
2021-03-12 13:14:36 +00:00
MODEM_SAMPLE_RATE = 8000 # 8000
AUDIO_FRAMES_PER_BUFFER = 16384 # 256 # 512 # 1024 #2048 --> nicht 880 # 128 gut, 256, 1024 16384
2020-12-23 16:48:54 +00:00
AUDIO_CHANNELS = 1
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
2021-09-26 15:51:11 +00:00
2020-12-26 10:02:14 +00:00
# ------- TX BUFFER
2021-09-26 15:51:11 +00:00
#TX_BUFFER_SIZE = 0
2021-01-20 21:51:14 +00:00
TX_BUFFER = []
2020-12-30 17:16:32 +00:00
# ------- RX BUFFER
RX_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 = []