#################
# GENERAL
#################
module_name=dronedetector
freqs=433,750,868,915,1200,2400,3300,4500,5200,5800

signal_threshold=0.02
signal_threshold_433=0.0195
signal_threshold_700=0.01
signal_threshold_868=0.01
signal_threshold_5200=0.01
signal_threshold_5800=0.01

# Runtime flags
# 1/0, true/false, yes/no, on/off
debug_flag=0
debug_freq_flag=0
debug_module_flag=0
send_to_module_flag=1
save_data_flag=0
freq_endpoint=process_data
send_to_master_flag=1
send_to_jammer_flag=0
jammer_timeout=2
master_timeout=1
amount_connection_attempts=3
mad_k_on=5.0
mad_eps=0.05
# Per-frequency MAD sensitivity (scanner frequencies)

path_to_save_medians=/tmp/dronedetector/noises_medians/
path_to_save_alarms=/tmp/dronedetector/alarms/
elems_to_save=signal,abs_signal
file_types_to_save=npy,npy
smb_host=127.0.0.1
smb_port=139
smb_user=guest
smb_pass=guest
shared_folder=shared
the_pc_name=dronedetector-host
remote_pc_name=dronedetector-storage
smb_domain=WORKGROUP

#################
# 433
#################
hack_433=
c_freq_433=433
f_step_433=-20e6
f_bases_433=0.480e9
f_roofs_433=0.400e9
signal_length_433=1000000
buffer_columns_size_433=11
num_of_thinning_iter_433=32
multiply_factor_433=1.3
num_for_alarm_433=4
mad_k_on_433=0
dbfs_linear_offset_db_433=0
dbfs_linear_abs_median_scale_433=0

#################
# 750
#################
hack_750=
c_freq_750=750
f_step_750=-20e6
f_bases_750=0.755e9
f_roofs_750=0.695e9
signal_length_750=1000000
buffer_columns_size_750=11
num_of_thinning_iter_750=32
multiply_factor_750=1.3
num_for_alarm_750=4
mad_k_on_750=0
dbfs_linear_offset_db_750=0
dbfs_linear_abs_median_scale_750=0


#################
# 915
#################
hack_915=
c_freq_915=915
f_step_915=-20e6
f_bases_915=0.98e9
f_roofs_915=0.840e9
signal_length_915=1000000
buffer_columns_size_915=11
num_of_thinning_iter_915=32
multiply_factor_915=1.3
num_for_alarm_915=4
mad_k_on_915=0
dbfs_linear_offset_db_915=0
dbfs_linear_abs_median_scale_915=0

#################
# 1200
#################
hack_1200=
c_freq_1200=1200
f_step_1200=-20e6
f_bases_1200=1.1e9
f_roofs_1200=1.3e9
signal_length_1200=1000000
buffer_columns_size_1200=11
num_of_thinning_iter_1200=32
multiply_factor_1200=1.3
num_for_alarm_1200=4
mad_k_on_1200=0
dbfs_linear_offset_db_1200=0
dbfs_linear_abs_median_scale_1200=0


#################
# 1500
#################
hack_1500=
c_freq_1500=1500
f_step_1500=-20e6
f_bases_1500=1.605e9
f_roofs_1500=1.405e9
signal_length_1500=1000000
buffer_columns_size_1500=11
num_of_thinning_iter_1500=32
multiply_factor_1500=1.3
num_for_alarm_1500=4
mad_k_on_1500=0
dbfs_linear_offset_db_1500=0
dbfs_linear_abs_median_scale_1500=0


#################
# 2400
#################
hack_2400=
c_freq_2400=2400
f_step_2400=-20e6
f_bases_2400=2.3e9
f_roofs_2400=2.5e9
signal_length_2400=1000000
buffer_columns_size_2400=11
num_of_thinning_iter_2400=32
multiply_factor_2400=1.3
num_for_alarm_2400=4
mad_k_on_2400=0
dbfs_linear_offset_db_2400=0
dbfs_linear_abs_median_scale_2400=0

#################
# 3300
#################
hack_3300=
c_freq_3300=3300
f_step_3300=-20e6
f_bases_3300=3.5e9
f_roofs_3300=3.3e9
signal_length_3300=1000000
buffer_columns_size_3300=11
num_of_thinning_iter_3300=32
multiply_factor_3300=1.3
num_for_alarm_3300=3
mad_k_on_3300=0
dbfs_linear_offset_db_3300=0
dbfs_linear_abs_median_scale_3300=0

#################
# 4500
#################
hack_4500=
c_freq_4500=4500
f_step_4500=-20e6
f_bases_4500=4.7e9
f_roofs_4500=4.5e9
signal_length_4500=1000000
buffer_columns_size_4500=11
num_of_thinning_iter_4500=32
multiply_factor_4500=1.3
num_for_alarm_4500=2
mad_k_on_4500=0
dbfs_linear_offset_db_4500=0
dbfs_linear_abs_median_scale_4500=0


#################
# 5200
#################
hack_5200=
c_freq_5200=5200
f_step_5200=-20e6
f_bases_5200=5.3e9
f_roofs_5200=5.1e9
signal_length_5200=1000000
buffer_columns_size_5200=11
num_of_thinning_iter_5200=32
multiply_factor_5200=1.08
num_for_alarm_5200=3
mad_k_on_5200=0
dbfs_linear_offset_db_5200=0
dbfs_linear_abs_median_scale_4500=0

#################
# 5800
#################
hack_5800=
c_freq_5800=5800
f_step_5800=-20e6
f_bases_5800=5.8e9
f_roofs_5800=5.5e9
signal_length_5800=1000000
buffer_columns_size_5800=11
num_of_thinning_iter_5800=32
multiply_factor_5800=1.08
num_for_alarm_5800=3
mad_k_on_5800=0
dbfs_linear_offset_db_5200=0
dbfs_linear_abs_median_scale_5800=0


#################
# MODULE SERVER (server_to_master)
#################
lochost=0.0.0.0
locport=5010
master_server_ip=192.168.11.223
master_server_port=3000
module_mac=bc:fc:e7:ca:87:2b
module_ip=192.168.11.223
threshold_to_alarm=5
num_of_clear_packs=5
time_to_jam=30
time_to_fresh=5
active_interval_to_send=1
passive_interval_to_send=60
gpsport=/dev/null
latitude=1
longitude=1
jamhost=127.0.0.1
jamport=3000

#################
# ORANGE SDR (915/1200/2400 -> NN_server)
#################
POROG_2400=0.01
HACKID_2400=
POROG_1200=0.01
HACKID_1200=
POROG_915=0.01
HACKID_915=
SERVER_IP_1=127.0.0.1
SERVER_PORT_1=8080
SERVER_IP_2=127.0.0.1
SERVER_PORT_2=8080

#################
# NN_SERVER
#################
FREQS=915,1200,2400
PATH_TO_NN=/app/NN_server/NN/
SRC_RESULT=/app/NN_server/result/
SRC_EXAMPLE=${PATH_TO_NN}example/

NN_1='${PATH_TO_NN}resnet18_1.pth && ${PATH_TO_NN}config_resnet18.yaml && ${SRC_EXAMPLE} && ${SRC_RESULT} && Resnet18_1_2400 && build_func_resnet18 && pre_func_resnet18 && inference_func_resnet18 && post_func_resnet18 && [drone,noise,wifi] && 10 && 1 && /app/NN_server/datasets/full_dataset_pic/'
NN_21='${PATH_TO_NN}ensemble_1.2.pth && ${PATH_TO_NN}config_ensemble.yaml && ${SRC_EXAMPLE} && ${SRC_RESULT} && ensemble_1200 && build_func_ensemble && pre_func_ensemble && inference_func_ensemble && post_func_ensemble && [drone,noise] && 10 && 1 && /app/NN_server/datasets/full_dataset/'
NN_22='${PATH_TO_NN}ensemble_915.pth && ${PATH_TO_NN}config_ensemble.yaml && ${SRC_EXAMPLE} && ${SRC_RESULT} && ensemble_915 && build_func_ensemble && pre_func_ensemble && inference_func_ensemble && post_func_ensemble && [drone,noise] && 10 && 1 && /app/NN_server/datasets/full_dataset/'

GENERAL_SERVER_IP=dronedetector-server-to-master
GENERAL_SERVER_PORT=5010
SERVER_IP=0.0.0.0
SERVER_PORT=8080

NN_HOT_RELOAD=1

