FreeDATA/static.py
DJ2LS 4435ef602e
added ARQ like behavior
send via socket "ACK:<DATA
TX requests a ACK from RX. RX then sends an ACK to TX. 
ACK will be requested 3 times, else timeout.

Todo: Frame ID, Code cleanup,...... and much much more
2020-12-25 22:55:56 +01:00

37 lines
No EOL
545 B
Python

#!/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
#TNC DEFAULTS
TX_RETRIES = 3
ACK_RECEIVED = 0
ACK_TIMEOUT = 0
ACK_RETRY = 3