From 78d1fc9a13f84b273facb2f22a291c3d2e6ebd33 Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Sat, 19 Mar 2016 21:16:22 +0300 Subject: transceiver: Properly handle MAXDLY. Previously MAXDLY value was applied to Normal Bursts, which was nice when working with sloppy test equipment like CMD57, but useless for real world usage. At the same time documentation and de facto usage of MAXDLY in OsmoBTS and OpenBTS assumed that it actually applies to Access Bursts (RACH). So this patch changes osmo-rx behavior to apply MAXDLY to RACH bursts and introduces a new command MAXDLYNB for the old behavior. --- Transceiver52M/sigProcLib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Transceiver52M/sigProcLib.h') diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h index 870eb1a..93251b5 100644 --- a/Transceiver52M/sigProcLib.h +++ b/Transceiver52M/sigProcLib.h @@ -192,13 +192,15 @@ bool energyDetect(signalVector &rxBurst, @param sps The number of samples per GSM symbol. @param amplitude The estimated amplitude of received RACH burst. @param TOA The estimate time-of-arrival of received RACH burst. + @param maxTOA The maximum expected time-of-arrival @return positive if threshold value is reached, negative on error, zero otherwise */ int detectRACHBurst(signalVector &rxBurst, float detectThreshold, int sps, complex &litude, - float &TOA); + float &TOA, + unsigned maxTOA); /** Normal burst correlator, detector, channel estimator. -- cgit v1.2.3