MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / getConfigurationKeys

Function getConfigurationKeys

TransceiverRAD1/runTransceiver.cpp:148–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148ConfigurationKeyMap getConfigurationKeys()
149{
150 ConfigurationKeyMap map;
151 ConfigurationKey *tmp;
152
153 tmp = new ConfigurationKey("TRX.IP","127.0.0.1",
154 "",
155 ConfigurationKey::CUSTOMERWARN,
156 ConfigurationKey::IPADDRESS,
157 "",
158 true,
159 "IP address of the transceiver application."
160 );
161 map[tmp->getName()] = *tmp;
162 delete tmp;
163
164 tmp = new ConfigurationKey("TRX.Port","5700",
165 "",
166 ConfigurationKey::FACTORY,
167 ConfigurationKey::PORT,
168 "",
169 true,
170 "IP port of the transceiver application."
171 );
172 map[tmp->getName()] = *tmp;
173 delete tmp;
174
175 tmp = new ConfigurationKey("TRX.RadioFrequencyOffset","128",
176 "~170Hz steps",
177 ConfigurationKey::FACTORY,
178 ConfigurationKey::VALRANGE,
179 "96:160",// educated guess
180 true,
181 "Fine-tuning adjustment for the transceiver master clock. "
182 "Roughly 170 Hz/step. "
183 "Set at the factory. "
184 "Do not adjust without proper calibration."
185 );
186 map[tmp->getName()] = *tmp;
187 delete tmp;
188
189 tmp = new ConfigurationKey("TRX.RadioNumber","0",
190 "",
191 ConfigurationKey::FACTORY,
192 ConfigurationKey::VALRANGE,
193 "0:9", // Not likely to have 10 radios on the same computer. Not likely to have >1
194 true,
195 "If non-0, use multiple radios on the same cpu, numbered 1-9. Must change TRX.Port also. Provide a separate config file for each OpenBTS+Radio combination using the environment variable or --config command line option."
196 );
197 map[tmp->getName()] = *tmp;
198 delete(tmp);
199
200 tmp = new ConfigurationKey("TRX.TxAttenOffset","0",
201 "dB of attenuation",
202 ConfigurationKey::FACTORY,
203 ConfigurationKey::VALRANGE,
204 "0:100",// educated guess
205 true,

Callers 2

runTransceiver.cppFile · 0.70
getAllConfigurationKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected