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: parallels
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Modem States
|
|
|
|
MODEM_RECEIVE = True
|
|
|
|
|
|
|
|
|
|
|
|
# FreeDV Defaults
|
|
|
|
FREEDV_MODE = 12
|
|
|
|
|
|
|
|
# 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 = 1024
|
|
|
|
AUDIO_CHANNELS = 1
|
2020-12-25 21:55:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
#TNC DEFAULTS
|
2020-12-26 10:02:14 +00:00
|
|
|
# ----ARQ STOP AND WAIT
|
|
|
|
TX_N_MAX_RETRIES = 3
|
|
|
|
TX_N_RETRIES = 3
|
2020-12-25 21:55:56 +00:00
|
|
|
ACK_RECEIVED = 0
|
|
|
|
ACK_TIMEOUT = 0
|
2020-12-26 10:02:14 +00:00
|
|
|
ACK_TIMEOUT_SECONDS = 10.0
|
|
|
|
|
|
|
|
# ------- TX BUFFER
|
|
|
|
TX_BUFFER_SIZE = 0
|
|
|
|
|
|
|
|
|