aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/sysmobts_vty.c
AgeCommit message (Collapse)AuthorFilesLines
2016-07-28Fix dsp tracing at phy configMax1-0/+17
Due to missing runtime cmd patching DSP tracing was not possible at phy level of config file. No it is possible to specify it as follows: ... phy 0 instance 0 dsp-trace-flag debug dsp-trace-flag mph_cnf ... Change-Id: Ibbbf81d2c4b5d3adbcbc1f08a844d262e603e571
2016-02-15sysmobts_vty: Fix null-check for pinstHarald Welte1-1/+1
There was a copy+paste error, checking for plink but we should check for pinst. This was found by coverity (CID 1351424).
2016-02-15move auto-band configuration commands to common/vty.cHarald Welte1-26/+0
It remains up to the individual BTS hardware models to decide whether or not to register those commands (depending on whether they support the feature) via cfg_bts_auto_band_cmd / cfg_bts_no_auto_band_cmd
2016-02-15LC15/sysmobts: Don't try to refer to fl1h from PHY configHarald Welte1-68/+26
At the time the phy link / phy instance level VTY configuration commands are parsed, we did not yet call l1if_open() and thus pinst->u.{lc15,sysmobts}.hdl == NULL. PHY or PHY instance specific configuration must thus be stored inside the phy_link or phy_instance itself, and not inside the (not yet existing) handle. We solve this by moving around some parameters: * clk_use_eeprom/clk_cal/clk_src/calib_path get replicated in phy_instance * min_qual_{rach,norm} are moved into the generic part (which means that osmo-bts-octphy and osmo-bts-trx should also implement them)
2016-02-15sysmobts/LC15: Fix startup-time DSP trace flage configurationHarald Welte1-0/+36
Due to the changes introduced by the phy_link API, it's not easy to set the default DSP trace flags via a command line argument anymore. We now rather introduce a persitent VTY configuration command, by which the default DSP tracing configuration can be set (for each PHY). The persistent trace flags are stored in the phy_instance, while the current operational run-time flags are in fl1h->phy_instance.
2016-02-15introduce + use new generic vty_get_phy_instance()Harald Welte1-22/+6
this function is intended to be used by VTY commands that need to resolve a given PHY interface.
2016-02-15port sysmobts to phy_link/phy_instance abstractionHarald Welte1-56/+90
2016-01-04fix large amount of compiler warnings in common and sysmobts codeHarald Welte1-0/+1
2015-09-22move MS power control handling from sysmobts to common partHarald Welte1-7/+4
MS uplink power control is required in pretty much any BTS, and we cannot assume that they PHY / L1 will always take care of it by itself. So the correspondign code is moved to common/power_control.c and called from the generic part of L1SAP. The corresponding VTY paramter has been moved from the sysmobts-specific trx VTY node to the common BTS VTY node.
2015-09-22Move gsmtap VTY commands from osmo-bts-sysmo to common partAndreas Eversberg1-80/+0
2014-08-24New generic transmit power handlingHarald Welte1-47/+1
In order to support transmit power reduction by thermal management as well as the variety of new internal / external PA configurations of BTSs, we need a slightly more complex system. Also, as at high power a single dB can be quite a big difference, we are now doing all computations in milli-dB(m), i.e. 1/10000 bel. Ramping is now used both for up and down ramping, as that is useful in cases where you want to gracefully shut down a cell by shrinking its radius, gradually handing over subscribers to neighboring cells. Furthermore, this code is becoming part of the 'common' codebase, as it is not really specific to how sysmobts is working. The user can specify a single aggregate value for external system gain/attenuation. Let's say you have 1dB loss of antenna cable, so you can put that as 'user-gain -1' into the config, which means that a 'transmit power of 20dBm' will be compensatet for that and the TRX is instructed to output 21dBm to compensate the cable loss. Similarly, external PAs can be described by a positive user-gain. One of the next steps will be to communicate those values and the nominal power capability of the specific BTS to the BSC, so the BSC will automatically show correct signal levels in the VTY and log files. The code includes provisions for future extensions regarding * an external and an internal PA with calibration tables * a thermal attenuation setting to be controlled by the site manager
2014-07-30sysmobts: Make it possible to slowly ramp up the output powerHolger Hans Peter Freyther1-1/+45
For systems with a bigger PA enabling the full output power at once might draw more current than a power supply can provide. This code will step up the output power in smaller steps to avoid this situation.
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