From c7f36c282a917a4718f9b116ba59d2daffa16eb2 Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Wed, 16 Apr 2014 22:24:00 -0400 Subject: Transceiver52M: Decode SCH and adjust GSM clock When in MS acquisition mode, attempt to decode SCH and establish the BTS frame timing. Lock the transceiver GSM clock to the BTS by adjusting the clock value by the measured burst-SCH offset. Add tracking state, TRX_MODE_MS_TRACKING, which continues to detect and decode the SCH with timing tracking, but only on SCH poitions within the 51 multiframe. Signed-off-by: Thomas Tsou --- Transceiver52M/Transceiver.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Transceiver52M/Transceiver.h') diff --git a/Transceiver52M/Transceiver.h b/Transceiver52M/Transceiver.h index c167519..170af77 100644 --- a/Transceiver52M/Transceiver.h +++ b/Transceiver52M/Transceiver.h @@ -155,6 +155,8 @@ private: signalVector &burst, complex &, float &toa); + bool decodeSCH(SoftVector *burst, GSM::Time *time); + /** Detect normal bursts */ bool detectTSC(TransceiverState *state, signalVector &burst, @@ -238,6 +240,7 @@ public: TRX_MODE_OFF, TRX_MODE_BTS, TRX_MODE_MS_ACQUIRE, + TRX_MODE_MS_TRACK, }; protected: -- cgit v1.2.3