aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-26 21:23:40 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-26 21:24:37 +0200
commitac98b545a8c850bdaa16dc6e70d93d33f1cceaf4 (patch)
treefea54cc447933d97d95701e18eb5aa7674c672fc /contrib
parentad10f0f533e6e702e03faffa5dd48a0044d224f3 (diff)
sysmobts-calib: For gps the sign/difference appears to be different
For the sysmoBTS 2050 this appears to have a different sign. We can't test this with NWL right now so we will need to see if this is a case of ping/pong.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sysmobts-calib/sysmobts-calib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/sysmobts-calib/sysmobts-calib.c b/contrib/sysmobts-calib/sysmobts-calib.c
index 053032d5..a111d1d5 100644
--- a/contrib/sysmobts-calib/sysmobts-calib.c
+++ b/contrib/sysmobts-calib/sysmobts-calib.c
@@ -318,6 +318,16 @@ static int calib_get_clock_error(void)
return -1;
}
+ /*
+ * Empiric gps error determination. With revE and firmware v3.3
+ * the clock error for TCXO to GPS appears to have a different
+ * sign. The device in question doesn't have a networklisten mode
+ * so it is impossible to verify that this only applies to GPS.
+ */
+ if (source == SuperFemto_ClkSrcId_GpsPps)
+ clkErr *= -1;
+
+
/* this is an absolute clock error */
printf("The calibration value is: %d\n", clkErr);
return 0;