aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/sysmobts_vty.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-25sysmobts: Provide VTY routines to do clock calibrationsHolger Hans Peter Freyther1-0/+28
The sysmoBTS2050 does not have a OCXO and we should not rely on the GPS module to always have a fix. Instead use the TCXO by default and from time to time (and we know we have a fix calibrate the TCXO). This can be done by: trx 0 rf-clock-info reset wait... trx 0 rf-clock-info correct write The output is currently only written to the log as the VTY connection might go away during the operation. The reset will set the approriate reference clock and the correct will attempt to determine and apply the correction. The write terminal will make sure that next on start a known good value will be used.
2013-12-28misc: Avoid using double numbers on our ARMHolger Hans Peter Freyther1-2/+2
In the perf the ARM EABI ddiv operation showed up in the most of expensive symbols. It doesn't really make much sense as the calls should only be done on configuration.
2013-11-27sysmobts: Activate the BCCH silently have have state set to activeHolger Hans Peter Freyther1-2/+2
Use the lchan->rel_act_kind field for the BCCH activatiob by OML. The lchan's should be marked as active but no event should be sent to the BSC. This is mostly like the PCU. We can now remove the secnd argument from lchan_activate.
2013-10-09sysmobts: Permit local override of transmit power above 23 dBmHarald Welte1-1/+1
This is used in the sysmoBTS 2050, where the maximum power is 40 dBm We might want to add a safeguard of some kind to prevent people from overdriving their transmitters.
2013-10-09sysmobts: make L1 power configurableHarald Welte1-0/+18
The TRX nominal output power (as seen by OML) is the aggregate power of any gain internal to the sysmoBTS (and managed by L1) and any external PA. This is what is used in trx->nominal_power; fl1h->l1_power is the transmit power to which we configure the sysmoBTS L1. This is 23 dBm (200mW) by default in the sysmoBTS 1002, and 40 dBm (5W) in the sysmoBTS 2050. However, if sysmoBTS 2050 is used in single-TRX configuration, it may be used with higher power, which we can now configure in the config file / vty. TODO: A separate, additional field that keeps track of any gain added by an external PA, e.g. if the sysmoBTS 1002 is used with a sysmoAMP.
2013-07-16sysmobts: Set the clock calibration to the value read from the eepromNicolas J. Bouliane1-1/+20
By default read the clock calibration from the EEPROM. It is still possible to set it using the cli. Signed-off-by: Nicolas J. Bouliane <nicolas.bouliane@nutaq.com>
2013-07-01misc: Fix various warnings in the codeHolger Hans Peter Freyther1-0/+4
sysmobts_vty.c: In function 'activate_lchan': sysmobts_vty.c:373:3: warning: implicit declaration of function 'lchan_activate' [-Wimplicit-function-declaration] sysmobts_vty.c:375:3: warning: implicit declaration of function 'lchan_deactivate' [-Wimplicit-function-declaration] eeprom.c: In function 'eeprom_ReadEthAddr': eeprom.c:305:5: warning: pointer targets in passing argument 3 of 'eeprom_read' differ in signedness [-Wpointer-sign] eeprom.c:260:12: note: expected 'char *' but argument is of type 'uint8_t *'
2013-06-24sysmobts: Introduce an auto-band config to ease DCS/DCS, PCS/PCS changesHolger Hans Peter Freyther1-1/+30
During development one switches from GSM900 to GSM1800 and GSM850 to GSM1900. This commit attempts to make this switch more easy. GSM1800 and GSM1900 have overlapping ARFCNs. This means that the mapping from bands to arfcn is not injective. Because of that I removed the code to deduce the band from the ARFCN. This was done in commit 8c3d807b3fc785ffb18aeb97355150c92221e8a0. The auto-band option allows to move between GSM900/GSM1800 and GSM850/GSM1900. Add a simple testcase with these auto-band configurations.
2013-06-20sysmobts: Do not write "trx-calibration-path (null)" in the config fileHolger Hans Peter Freyther1-2/+3
When not specifying a config path, then saving the running config it would end up as "(null)" and then leads to an error like this: <0006> calib_file.c:147 Failed to open '(null)/calib_rxu_850.cfg' for calibration data. Add a NULL check to avoid this issue when writing the config file.
2013-03-24oml: Introduce a SAPI queue for activation and deactivation of SAPIsDaniel Willmann1-1/+1
Put all SAPI requests into a queue and handle them one after another. Begin with the channel activation. Once the queue is empty the channel activate will be sent. For the BCCH activation we do not want to send a channel activation message and this is why we set the lchan->state to NONE. One change is that we do not attempt to call the ciphering routines on the BCCH anymore. This change is necessary to fix issues with LCHANs staying open and being marked as broken by the BSC and will help in implementing handover support as this requires a re-configuration of the lchan on the fly.
2013-03-18fixup e2cde1f48379657402332b5a95d4ce242d63069aAndreas Eversberg1-1/+1
2013-03-17Add VTY option to define minimum C/I level for RACH and normal burstAndreas Eversberg1-0/+32
2012-11-10VTY: make target uplink Rx level VTY-configurableHarald Welte1-0/+16
We used to have -75 dBm as the target value for the uplink receive level. Now this is configurable. The parameter is used as input into the power control loop that adjusts the MS transmit power in order to achieve the target rx value on the BTS Rx input.
2012-10-28sysmobts: Add support for reading calibration tables0.1.0Harald Welte1-0/+18
'trx-calibration-path' is the new VTY command indicating the path name where the calibration files can be found. Calibration is only implemented for SUPERFEMTO API version 2.4.0 or later.
2012-08-17sysmobts VTY: update to new libosmocoreHarald Welte1-64/+13
libosmocore 40832fcfb58c8c97c66e098c5705352ac5beea8e and later contain the vty_cmd_string_from_valstr() function, so we shouldn't have a local / deprecated copy anymore.
2012-07-25vty: Document the gsmtap SAPI and the dsp trace flags parametersHolger Hans Peter Freyther1-8/+31
Introduce femtobts_tracef_docs with some more information about the traceflags, add parameters to the vty_cmd_string_from_valstr for specifying the separator, the suffix and if the name should be lowered.
2012-07-05sysmobts_vty: Fix setting GSMTAP sapi, as well as save/restore in cfgHarald Welte1-2/+38
2012-06-05sysmobts: The meaning of the clock value changed from v1 to v2Holger Hans Peter Freyther1-3/+16
In v2 the calibration value is the clock error in ppb that needs to be compensated. Create a V2 specific implementation. Write the clock value unconditionally as it is initialized to 0 by default and not 0xffff.
2012-05-12sysmobts: Document the values of the clock-source in the vty commandHolger Hans Peter Freyther1-1/+5
We need to have a documentation for each possible value, add some simple ones for the available clock sources.
2012-05-12sysmobts: Save the clock-source to the config fileHolger Hans Peter Freyther1-0/+4
Make the clock names lower case to match with the vty command.
2012-04-19add vty-configurable loopback modeHarald Welte1-0/+42
this allows the BTS to loop-back any incoming data on a TCH
2012-04-19add VTY command to manually alter transmit powerHarald Welte1-0/+17
this allows for quick manual tx power changes from the VTY, particularly useful in type approval or other measurements.
2012-04-19fix VTY help strings related to TRXHarald Welte1-7/+8
2012-04-19add a VTY command for activating PDCH channels (in EGPRS mode)Harald Welte1-0/+25
This allows us to do RF measurements (EDGE EVM and the like) even without having any PCU/RLC/MAC code as of now. To use it, configure PDCH type timeslots (e.g. TS 7) in the BSC and then use "trx 0 7 activate 0" to manually activate the PDTCH lchan on top of that timeslot. The BTS will now happily transmit EDGE/8PSK data.
2012-04-14misc: Use sizeof(uint32_t) instead of simply using 32 bitHolger Hans Peter Freyther1-1/+1
This code would break in case we shrink the bitmap, use sizeof instead.
2012-03-18osmo-bts-sysmo: Add GSMTAP support for transmit (DL) pathHarald Welte1-0/+34
there are VTY commands that can be used to filter which particular L1 sapis (channel types) should be sent in GSMTAP.
2012-03-17introduce a command that permits setting the clock source via vtyHarald Welte1-0/+39
the default source is the OCXO
2011-11-07sysmobts-vty: Fix compiler warnings about the clock valueHolger Hans Peter Freyther1-2/+1
The first one just sets the val to 0xffff, the second converted the value to integer twice. sysmobts_vty.c: In function ‘cfg_trx_clkcal_def’: sysmobts_vty.c:109:15: warning: unused variable ‘clkcal’ [-Wunused-variable] sysmobts_vty.c: In function ‘cfg_trx_clkcal’: sysmobts_vty.c:122:15: warning: unused variable ‘clkcal’ [-Wunused-variable]
2011-10-12add VTY based way to set clock calibration of sysmobts L1Harald Welte1-0/+46
2011-09-19fix various compiler warnings across the codeHarald Welte1-1/+2
this deals with unused cocde, unused variables and undeclared symbols in various places.
2011-09-09Inquire DSP/FPGA version at BTS boot and check band compatibilityHarald Welte1-2/+42
2011-07-05add VTY commands for setting and showing DSP trace flagsHarald Welte1-0/+189