From 9757b7bc1e40f724141461940b70f3ff7442a3d8 Mon Sep 17 00:00:00 2001 From: Kurtis Heimerl Date: Thu, 5 Sep 2013 05:49:56 +0000 Subject: [PATCH] Missed some stuff. Suggested by Chris Newman git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6402 19bc5d8c-e614-43d4-8b26-e1612bc8e597 --- Transceiver52M/runTransceiver.cpp | 39 +++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp index 33ab434..ed4dc54 100644 --- a/Transceiver52M/runTransceiver.cpp +++ b/Transceiver52M/runTransceiver.cpp @@ -44,8 +44,8 @@ using namespace std; -ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db"); - +ConfigurationKeyMap getConfigurationKeys(); +ConfigurationTable gConfig("/etc/OpenBTS/OpenBTS.db", 0, getConfigurationKeys()); volatile bool gbShutdown = false; static void ctrlCHandler(int signo) @@ -139,3 +139,38 @@ int main(int argc, char *argv[]) delete trx; // delete radio; } + +ConfigurationKeyMap getConfigurationKeys() +{ + ConfigurationKeyMap map; + ConfigurationKey *tmp; + + tmp = new ConfigurationKey("TRX.RadioFrequencyOffset","128", + "~170Hz steps", + ConfigurationKey::FACTORY, + ConfigurationKey::VALRANGE, + "96:160",// educated guess + true, + "Fine-tuning adjustment for the transceiver master clock. " + "Roughly 170 Hz/step. " + "Set at the factory. " + "Do not adjust without proper calibration." + ); + map[tmp->getName()] = *tmp; + delete tmp; + + tmp = new ConfigurationKey("TRX.TxAttenOffset","0", + "dB of attenuation", + ConfigurationKey::FACTORY, + ConfigurationKey::VALRANGE, + "0:100",// educated guess + true, + "Hardware-specific gain adjustment for transmitter, matched to the power amplifier, expessed as an attenuationi in dB. " + "Set at the factory. " + "Do not adjust without proper calibration." + ); + map[tmp->getName()] = *tmp; + delete tmp; + + return map; +}