aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-12-13RSL: Be more spec compliant in terms of ms / bs power controllaforge/power_controlHarald Welte2-11/+74
TS 08.58 requires that BTS-autonomous MS power control is _not_ used, if only the MS Power IE is present in a channel activation. Rather, in order to enable the BTS-autonomous power control loop, the MS Power Parameters must be included. So far we were always enabling MS power control, even in the absence of the MS Power parmeters IE. This is fixed now. This meanas you will need a correspondingly new OsmoBSC/OsmoNITB that sends this IE, or you loose MS (uplink) power control altogether. The content of the MS Power Parameters IE is parsed, but the threshold values not used yet at this point.
2015-12-12LAPDm: Use T200 settings from OML rather than libosmocore defaultsHarald Welte3-1/+65
2015-12-07sysmobts: Catch up with the API changes and specify the versionHolger Hans Peter Freyther2-0/+15
API revision 5.1 allows us to pass a version number for the rx/tx calibration and the DSP/FPGA will inform us about clock errors.
2015-12-07sysmobts: support eeprom map version 2Minh-Quang Nguyen2-61/+446
[hfreyther: Accept the mixing of whitespace to ease future merges]
2015-12-06use talloc pool for msgb and ortp libraryHarald Welte2-2/+6
by using a talloc pool, we avoid having to go back to the libc malloc pool all the time. The msgb allocations and libortp allocations happen quite frequently during processing and show up as one of the high priority items in osmo-bts profiles on sysmoBTS with 14 concurrent TCH/H calls (highest load scenario). talloc still consumes significant CPU, this is mostly due to the zero-initialization of all the associated buffers. Strictly speaking we shouldn't need this, but any change there would require lots of testing, as there might be hidden assumptions in the code? In some percentage of cases, talloc still seems to fall back on malloc for msgb allocations, which is currently a bit of a mystery. The pools certainly are large enough, talloc_reprt() rarely reports more than a few tens of kilobytes used by the msgb pool.
2015-12-05osmo-bts-sysmo: Disable DSP trace flags by defaultHarald Welte2-2/+2
2015-12-05l1sap: Ensure we only pass PHY primitives of active lchansHarald Welte1-45/+41
In some situations, a PHY might send us a primitive for a logical channel that is not (or no longer) active. Passing such primitives higher up the stack is asking for trouble. Specifically, LAPDm instances cannot accept messages once their instance has been released. We introduce two new helper functions: get_lchan_by_chan_nr() as well as get_active_lchan_by_chan_nr(). The former just centralizes the look-up of the lchan by timeslot number and sub-slot number. The latter also checks to ensure the lchan is active, which is used for PH-DATA / PH-RTS primitives. To the contrary, MPH primitives generally don't require the cahnnel to be active for processing.
2015-12-03common/rsl.c: The presence of a valied measurement result is DEBUGHarald Welte1-1/+1
we shouldn't consider the presence of a valid measurement result as something NOTICEable
2015-11-20sysmobts: Dont recycle PHY primitive for L1SAP in PH-DATA.indHarald Welte1-20/+14
2015-11-20sysmobts: fix ph_data_req() msgb handling + alignmentHarald Welte1-24/+16
The way we recycle the msgb with a l1sap header when transforming a PH-DATA.req L1SAP primitive into a PHY/L1 primitive was flawed in several ways: 1) the way the L1SAP header was stored in the buffer didn't provide sufficient tailroom for the L1 primitive 2) the alignment of the data in L1SAP is at a 32bit bounadry, but not in the L1 primitive, causing unaligned accesses.
2015-11-20cope with 'struct gsm_bts' without a tsc memberHarald Welte2-3/+3
This was introduced in openbsc.git a2bbc5ec0e6481bb5b65da7bdbde03a424437af4
2015-11-05tests/Makefile.am: Don't use sysmobts SUBDIRS twiceHarald Welte1-4/+0
probably a git merge artefact of some sort...
2015-11-05TRX: catch up with trhe amr_mode naming changesHarald Welte2-11/+11
OpenBSC introduced a naming change in 615ed46a6ab25f71a7ab0d8201d33b4dbf8fc5b0 but osmo-bts fixes were only about osmo-bts-sysmo, not osmo-bts-trx. This updates osmo-bts-trx accordingly.
2015-11-05Don't blindly link against '-lortp' but use pkg-config for thatHarald Welte7-12/+13
This also ensures that a missing ortp library dependency is discovered at configure time already
2015-11-05Revert "configure.ac: Add subdir-objects to suppress warnings"Harald Welte1-1/+1
This reverts commit 94a05abb98fcb1a5002f327888635f3af860c9a9. The tests don't work well with subdir-objects, so we have to live with the warnings meanwhile until somebody finds time to find the magic spell to solve the autotools quest.
2015-10-12configure.ac: Better description for --enable-sysmocom-bts and --enable-trxHarald Welte1-4/+4
2015-10-12configure.ac: Add subdir-objects to suppress warningsHarald Welte1-1/+1
automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities.
2015-10-12configure.ac: Depend on libosmotrau 0.3.2 (ortp statistics)Harald Welte1-1/+1
2015-10-12configure.ac: Only require libgps if building for sysmoBTSHarald Welte1-1/+3
2015-10-03amr: Catch-up for the non-RTP mode after amr renameHolger Hans Peter Freyther1-1/+1
2015-10-03amr: Catch up with the amr_mode changesHolger Hans Peter Freyther2-11/+11
Use the bts_modes for all the types. As there are two instances know. One for the ms and one for the bts. Manual compile fix and not tested on HW
2015-09-22Merge branch '201509-trx-rebase'0.4.0Harald Welte54-34/+10123
2015-09-22TRX: Add missing call to abis_init()Harald Welte1-0/+2
This somehow got lost during the latest rebase.
2015-09-22make osmo-bts-trx provide bts_model_adjst_ms_pwr()Harald Welte1-0/+7
2015-09-22fixup tests after bts_model_adjst_ms_pwrHarald Welte1-0/+1
2015-09-22tests: Update busrsts_test build.Alexander Chemeris2-1/+4
We've added logging calls to the bursts processing. Add logging facility initializatoin to the test code.
2015-09-22trx: fix potential use of uninitialized toa variable.Alexander Chemeris1-1/+1
Not really a bug, as we're smart about it down the stream, but it's better to be strict here as well.
2015-09-22trx: Send POWERON/OFF commands to osmo-bts only for the first channel.Alexander Chemeris1-2/+8
osmo-trx never supported separate power control for trx's, but now it started to be more strict about it.
2015-09-22trx: Assume 100% BER if total decoded bits is 0 in l1if_process_meas_res()Alexander Chemeris1-1/+2
2015-09-22trx: Cleanup unused parts of loops.cAlexander Chemeris1-7/+2
2015-09-22trx: Remove unused variables.Alexander Chemeris1-2/+2
2015-09-22trx: Fix typo in a log message.Alexander Chemeris1-1/+1
2015-09-22trx: More logging for voice frame decoding functions.Alexander Chemeris1-21/+67
2015-09-22tests: Update bursts_test to accommodate BER calculations.Alexander Chemeris2-9/+50
2015-09-22trx: Implement BER calculations.Alexander Chemeris5-180/+208
A known issue with this code is that BER is not updated for lost TCH frames, because osmo-trx doesn't send any indication for them and we don't have a callback to handle this. Otherwise the code seem to work fine.
2015-09-22TRX: Remove extra TCH/HS puncturing valueThomas Tsou1-1/+1
3GPP TS 05.03 "Channel coding" specifies the puncturing matrix (1,0,1) for class 1 information bits and tail bits valued u(0) to u(103) for a maximum puncturing index of 311. The puncturing index 313 exceeds the maximum index and causes osmo_conv_get_output_length() to output the improper length of 210 instead of 211. Signed-off-by: Thomas Tsou <tom@tsou.cc>
2015-09-22TRX: Check if Transceiver indicates an out of range clockAndreas Eversberg1-7/+15
If frame number is out of range (>= 2715648), the scheduler's process would end up in an infinite loop. This is because the loop would schedule bursts until the indicated frame number is reached, which would not be possible. The openbts, calypso-bts and osmo-trx might send out out of range clock indications every 3.5 hour.
2015-09-22TRX: Show which TRX does not respond or rejects a commandAndreas Eversberg1-3/+4
2015-09-22trx: Set lchan inactive, only if the dedicated channel is deactivatedAndreas Eversberg1-4/+3
2015-09-22TRX: Activate LCHAN of CCCH when CCCH is configured on time slotAndreas Eversberg1-0/+12
2015-09-22TRX: Free bust buffer memory to when changing lchan typeAndreas Eversberg1-0/+9
2015-09-22TRX: Add VTY option to allow setting RTS advance in framesAndreas Eversberg3-4/+20
RTS (ready-to-send) must be issued in advance, so BTS core and especially osmo-pcu can provide downlink data frames early enough. In some cases PCU might provide frames too late, so they must be dropped. If PCU provides frames too late, due to high system load, this "RTS advance" setting must be increased.
2015-09-22TRX: fix some typos in commentsMartin Hauke2-8/+8
2015-09-22build: Use AM_CPPFLAGS in Makefile.amMartin Hauke3-3/+3
Since automake 1.13 INCLUDES is depricated and causes a warning Inspired from similar patches by Alexander Huemer for other osmocom projects.
2015-09-22tests: make tests for sysmobts conditionalMartin Hauke1-0/+4
2015-09-22Allow TRX 0..254 at VTY, even if less TRX are availableAndreas Eversberg4-8/+7
Instead of limiting the number of TRX at VTY to the actual number of supported TRX, VTY allows to configure any possible number of TRX. If a TRX is configured, which is not supported by BTS model, an error message is returned, which states that the given TRX is not supported.
2015-09-22TRX: Changed logging of unserved primitives from LOGL_NOTICE to LOGL_INFOAndreas Eversberg1-4/+4
2015-09-22TRX: Fixed chan_nr for SACCH/8(7) at schedulerAndreas Eversberg1-1/+1
2015-09-22trx: Add option to set transmit power reduction via OML (BSC)Andreas Eversberg3-2/+34
2015-09-22TRX: Do not send burst on IDLE channels at TRX != C0Andreas Eversberg1-0/+5
This is required, so the transceiver transmits no power.