view pathloss/egli.c @ 94:f9ef582c199c

tfo-ut: check in tfo-fr.bin and tfo-efr.bin Each of these binary files is an extract from MSC-side E1 timeslot recording in a Nokia TCSM2 TFO session involving a cross-connect between two TRAU channels. The extracts have been chosen to begin at the point where the TRAU starts emitting TFO frames, thereby beginning with a series of TFO frames that contain an embedded TFO_TRANS message. In each experiment, one of the two cross-connected TRAU channels emitted two "plain" TFO frames (not containing embedded TFO messages) in between the initial embedded TFO_TRANS and the subsequent embedded TFO_REQ_L; this channel was chosen for the present extracts. Each extract is thus 2560 PCM samples, containing 16 aligned TFO frames: 5 carrying TFO_TRANS, 2 plain, 9 carrying TFO_REQ_L.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 18 Mar 2025 22:56:23 +0000
parents 0cfea66a15f3
children
line wrap: on
line source

/*
 * RF range calculation per Egli model
 */

#define	_GNU_SOURCE
#include <math.h>
#include "range_func.h"

float rf_range_egli(float freq_mhz, float path_loss, float bts_ant_m,
		    float ms_ant_m)
{
	float l, r, x;

	l = 20.0f * log10f(freq_mhz / 40.0f);
	r = path_loss - l;
	x = bts_ant_m * ms_ant_m;
	return sqrtf(x / pow10f(r / -20.0f));
}