mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
updated ctests
This commit is contained in:
parent
ca36205ec2
commit
973ee593a3
5 changed files with 16 additions and 16 deletions
|
@ -48,11 +48,11 @@ def parameters() -> dict:
|
||||||
connect_data = {"type": "arq", "command": "connect", "dxcallsign": "ZZ9YY-0"}
|
connect_data = {"type": "arq", "command": "connect", "dxcallsign": "ZZ9YY-0"}
|
||||||
stop_data = {"type": "arq", "command": "stop_transmission", "dxcallsign": "ZZ9YY-0"}
|
stop_data = {"type": "arq", "command": "stop_transmission", "dxcallsign": "ZZ9YY-0"}
|
||||||
|
|
||||||
beacon_timeout = 4
|
beacon_timeout = 2
|
||||||
ping_timeout = 4
|
ping_timeout = 2
|
||||||
cq_timeout = 2
|
cq_timeout = 2
|
||||||
connect_timeout = 4
|
connect_timeout = 2
|
||||||
stop_timeout = 4
|
stop_timeout = 2
|
||||||
|
|
||||||
beacon_tx_check = '"beacon":"transmitting"'
|
beacon_tx_check = '"beacon":"transmitting"'
|
||||||
cq_tx_check = '"qrv":"received"'
|
cq_tx_check = '"qrv":"received"'
|
||||||
|
|
|
@ -38,10 +38,10 @@ def parameters() -> dict:
|
||||||
connect_data = {"type": "arq", "command": "connect", "dxcallsign": ""}
|
connect_data = {"type": "arq", "command": "connect", "dxcallsign": ""}
|
||||||
stop_data = {"type": "arq", "command": "stop_transmission", "dxcallsign": "DD5GG-3"}
|
stop_data = {"type": "arq", "command": "stop_transmission", "dxcallsign": "DD5GG-3"}
|
||||||
|
|
||||||
beacon_timeout = 1
|
beacon_timeout = 2
|
||||||
ping_timeout = 1
|
ping_timeout = 2
|
||||||
connect_timeout = 2
|
connect_timeout = 2
|
||||||
stop_timeout = 1
|
stop_timeout = 2
|
||||||
|
|
||||||
beacon_tx_check = '"status":"Failed"'
|
beacon_tx_check = '"status":"Failed"'
|
||||||
ping_tx_check = '"ping","status":"Failed"'
|
ping_tx_check = '"ping","status":"Failed"'
|
||||||
|
|
|
@ -69,12 +69,12 @@ def t_setup(
|
||||||
data_handler.DATA.process_data = t_process_data
|
data_handler.DATA.process_data = t_process_data
|
||||||
tnc_data_handler.log = structlog.get_logger(f"station{station}_DATA")
|
tnc_data_handler.log = structlog.get_logger(f"station{station}_DATA")
|
||||||
# Limit the frame-ack timeout
|
# Limit the frame-ack timeout
|
||||||
tnc_data_handler.time_list_low_bw = [3, 1, 1]
|
tnc_data_handler.time_list_low_bw = [8, 8, 8]
|
||||||
tnc_data_handler.time_list_high_bw = [3, 1, 1]
|
tnc_data_handler.time_list_high_bw = [8, 8, 8]
|
||||||
tnc_data_handler.time_list = [3, 1, 1]
|
tnc_data_handler.time_list = [8, 8, 8]
|
||||||
# Limit number of retries
|
# Limit number of retries
|
||||||
tnc_data_handler.rx_n_max_retries_per_burst = 4
|
tnc_data_handler.rx_n_max_retries_per_burst = 4
|
||||||
ModemParam.tx_delay = 500 # add additional delay time for passing test
|
ModemParam.tx_delay = 100 # add additional delay time for passing test
|
||||||
|
|
||||||
|
|
||||||
# Create the modem
|
# Create the modem
|
||||||
|
|
|
@ -62,12 +62,12 @@ def t_setup(
|
||||||
data_handler.DATA.process_data = t_process_data
|
data_handler.DATA.process_data = t_process_data
|
||||||
tnc_data_handler.log = structlog.get_logger(f"station{station}_DATA")
|
tnc_data_handler.log = structlog.get_logger(f"station{station}_DATA")
|
||||||
# Limit the frame-ack timeout
|
# Limit the frame-ack timeout
|
||||||
tnc_data_handler.time_list_low_bw = [3, 1, 1]
|
tnc_data_handler.time_list_low_bw = [8, 8, 8]
|
||||||
tnc_data_handler.time_list_high_bw = [3, 1, 1]
|
tnc_data_handler.time_list_high_bw = [8, 8, 8]
|
||||||
tnc_data_handler.time_list = [3, 1, 1]
|
tnc_data_handler.time_list = [8, 8, 8]
|
||||||
# Limit number of retries
|
# Limit number of retries
|
||||||
tnc_data_handler.rx_n_max_retries_per_burst = 4
|
tnc_data_handler.rx_n_max_retries_per_burst = 4
|
||||||
ModemParam.tx_delay = 500 # add additional delay time for passing test
|
ModemParam.tx_delay = 100 # add additional delay time for passing test
|
||||||
# Create the modem
|
# Create the modem
|
||||||
t_modem = modem.RF()
|
t_modem = modem.RF()
|
||||||
orig_tx_func = modem.RF.transmit
|
orig_tx_func = modem.RF.transmit
|
||||||
|
|
|
@ -137,7 +137,7 @@ class TNC:
|
||||||
transmitting: bool = False
|
transmitting: bool = False
|
||||||
low_bandwidth_mode: bool = False
|
low_bandwidth_mode: bool = False
|
||||||
enable_fsk: bool = False
|
enable_fsk: bool = False
|
||||||
respond_to_cq: bool = False
|
respond_to_cq: bool = True
|
||||||
respond_to_call: bool = True # respond to cq, ping, connection request, file request if not in session
|
respond_to_call: bool = True # respond to cq, ping, connection request, file request if not in session
|
||||||
heard_stations = []
|
heard_stations = []
|
||||||
listen: bool = True
|
listen: bool = True
|
||||||
|
|
Loading…
Reference in a new issue