aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx
AgeCommit message (Collapse)AuthorFilesLines
2016-01-22merge bts-specific main function into common/main.c:bts_main()Harald Welte1-246/+21
This removes a lot of copy+paste duplication between different BTS models.
2016-01-22Add new bts_model_ctrl_cmds_install()Harald Welte3-2/+9
This is one step in making the main() functions of different BTS models more similar, so we can share one code rather than multiple copies of it.
2016-01-16TRX: the L1SAP queue contains mac blocks, not bursts (cosmetic)Harald Welte1-2/+2
2016-01-16TRX: Don't hard-code 23 bytes, use GSM_MACBLOCK_LENHarald Welte2-17/+17
2016-01-16TRX: Don't use magic numbers when we have #definesHarald Welte4-23/+23
2016-01-16TRX: replace some more 2715648 magic numbers with GSM_HYPERFRAMEHarald Welte2-6/+3
2016-01-16TRX: scheduler: whitespace cleanupHarald Welte1-5/+5
2016-01-16TRX: schedule: remove dead codeHarald Welte1-6/+0
the check whether or not to send a dummy burst is done already in trx_sched_dl_burst(), so no need to have commented-out code doing that again.
2016-01-16TRX: make trx_chan_desc static, it is not used externallyHarald Welte1-1/+1
2016-01-16use existing #define for FR/EFR frame length (33/31)Harald Welte2-15/+18
2016-01-16TRX: Reduce magic numbers, introduce GSM_HYPERFRAME for 2715648Harald Welte1-16/+20
2016-01-16TRX: use const for dummy and fcch burst definitionsHarald Welte1-5/+5
2016-01-16TRX: mark scheduler data structures as 'const'Harald Welte2-22/+22
Those are read-only tables which should end up in the text segment and not in writable data.
2016-01-16TRX: some comments dscribing the scheduler.[ch] APIHarald Welte2-5/+36
2016-01-16TRX: Add stub bts_model_change_power() functionHarald Welte1-0/+6
This just fixes linking. It still needs to be properly implemented
2016-01-16TRX: remove obsolete get_mac() functionHarald Welte1-37/+0
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 Welte1-2/+2
This also ensures that a missing ortp library dependency is discovered at configure time already
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-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-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 Hauke1-1/+1
Since automake 1.13 INCLUDES is depricated and causes a warning Inspired from similar patches by Alexander Huemer for other osmocom projects.
2015-09-22Allow TRX 0..254 at VTY, even if less TRX are availableAndreas Eversberg1-1/+1
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.
2015-09-22TRX: Close TRX (shutdown all active channels) on ABIS link failureAndreas Eversberg2-3/+10
2015-09-22TRX: Add bts_model_trx_close to TRX implementationAndreas Eversberg1-2/+2
2015-09-22TRX: Fixup ciphering state names after rebasingAndreas Eversberg1-3/+3
2015-09-22TRX: No need to set mode and cipher for PDCHAndreas Eversberg1-0/+8
2015-09-22TRX: If no cipher algorithm is given, or if it is a5/0, reset cipher stateAndreas Eversberg1-1/+4
2015-09-22TRX: Set ciphering to an initial state when activating channelAndreas Eversberg1-0/+8
Handover and assignment may activate channels with ciphering already set, so we need to tell scheduler to enable/disable ciphering and set the correct cipher state.
2015-09-22TRX: Process real time scheduling option is now similar to sysmobtsAndreas Eversberg1-10/+10
2015-09-22TRX: Disable handover burst detection when closing channel during detectionAndreas Eversberg1-0/+7