FreeDATA/static.py

83 lines
1 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-01-05 14:03:41 +00:00
2020-12-23 16:48:54 +00:00
# Modem States
MODEM_RECEIVE = True
# FreeDV Defaults
2021-01-05 14:03:41 +00:00
TX_MODE = 12
2020-12-23 16:48:54 +00:00
FREEDV_MODE = 12
2021-01-05 14:03:41 +00:00
FREEDV_BYTES_PER_FRAME = 32 # --> ÜBERARBEITEN
FREEDV_PAYLOAD_PER_FRAME = 30 # --> ÜBERARBEITEN
2020-12-23 16:48:54 +00:00
# Server Defaults
HOST = "localhost"
PORT = 3000
#AUdio Defaults
DEFAULT_FRAMES = 1024
AUDIO_INPUT_DEVICE = 1
AUDIO_OUTPUT_DEVICE = 1
TX_SAMPLE_STATE = None
RX_SAMPLE_STATE = None
AUDIO_SAMPLE_RATE = 8000
MODEM_SAMPLE_RATE = 8000
AUDIO_FRAMES_PER_BUFFER = 2048
2020-12-23 16:48:54 +00:00
AUDIO_CHANNELS = 1
AUDIO_BUFFER = bytearray()
#TNC DEFAULTS
# ARQ
2020-12-26 10:02:14 +00:00
TX_N_MAX_RETRIES = 3
TX_N_RETRIES = 3
ACK_RECEIVED = 0
ACK_TIMEOUT = 0
2020-12-30 17:16:32 +00:00
ACK_TIMEOUT_SECONDS = 10.0
2020-12-26 10:02:14 +00:00
ARQ_TX_N_FRAMES = 2
ARQ_PAYLOAD_PER_FRAME = 0
ARQ_ACK_WAITING_FOR_ID = 0
ARQ_RX_BURST_BUFFER = []
ARQ_RX_FRAME_BUFFER = []
2020-12-30 17:16:32 +00:00
ARQ_RX_FRAME_N_BURSTS = 0
ARQ_ACK_PAYLOAD_PER_FRAME = 0
FRAME_CRC = b''
2021-01-02 08:41:58 +00:00
ARQ_N_SENT_FRAMES = 0
2021-01-05 14:03:41 +00:00
ARQ_TX_ACK_MODE = 7
2020-12-30 17:16:32 +00:00
2020-12-26 10:02:14 +00:00
# ------- TX BUFFER
TX_BUFFER_SIZE = 0
2020-12-30 17:16:32 +00:00
# ------- RX BUFFER
RX_BUFFER = []
2021-01-02 15:37:34 +00:00
2020-12-26 10:02:14 +00:00