aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy
AgeCommit message (Collapse)AuthorFilesLines
2016-06-17dyn PDCH: add bts_model_ts_connect() and _disconnect() stubsNeels Hofmeyr1-0/+11
Enhance bts_model_ API in preparation of dyn PDCH switching. These will be used to re-connect a TCH/F_PDCH TS in a different mode: either as TCH/F or as PDCH. All implementations so far return -ENOTSUP, and thus will cause a IPAC PDCH ACT or DEACT *NACK* to be sent to the BSC as soon as these messages are handled. Also add stubs in tests. Change-Id: I21e60c028a1333431c3ed000f788b654d1170b0d
2016-06-14Close TRX session before opening new oneJason DSouza1-1/+43
This fixes the unstable behavior (BTS loosing subscribers after some time) in case previous run of osmo-bts was interrupted (with ctrl+c for example). Change-Id: Ie2119b0b566d01f0e70b38c8a149fecb47def38d
2016-06-13octphy: Use the app. info. defaults as baseMax1-0/+2
Similar to 91565b2d51646657002f91fdc22dce3c7320e13a use default initializers. Change-Id: Ib813249f4295b034eb65658e3f43b4fe86862cf0 Fixes: Os#1642
2016-05-31octphy: Update outdated config param name in error message.Daniel Laszlo Sitzer1-1/+1
Change-Id: I45b8bc09c9aabacc5b908450fe574b5802b88be8 Reviewed-on: https://gerrit.osmocom.org/129 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
2016-03-21octphy: fix for multiple trx with more than 1 dspMax1-1/+8
Explicitly store and use "center" arfcn used by each dsp (1 dsp corresponds to 1 phy link).
2016-03-18octphy: add support for multiple trx idsMax2-2/+4
2016-03-18octphy: use octasic's routines for debug outputMax1-2/+4
2016-03-17octphy: add missing include to fix the buildMax1-0/+1
2016-03-16octphy: Enable TCH/H mode and begin testingHolger Hans Peter Freyther1-3/+0
Upcoming releases will support TCH/H and we should start to test the DSP->RTP code.
2016-03-10octphy: Use the event defaults as baseHolger Hans Peter Freyther1-0/+3
Bad parameters are passed to the event structure and the default initialization should happen.
2016-02-22Fix ocmo-bts-octphy interaction with OsmoPCUMax1-0/+1
Previously osmo-bts-octphy have not provided in-band presence information which cause off-by-one errors and misinterpretation of ph_data_ind by PCU. This fixed now by adding support for explicitly passing PH-DATA presence info. Corresponding check and in-band passing of presence information are removed. Note: this requires libosmocore version with osmo_ph_pres_info_type support integrated. [hfreyther/max: Remove + 1 from the decoded length]
2016-02-15move auto-band configuration commands to common/vty.cHarald Welte1-5/+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-15Introduce new phy_link and phy_instance abstractionHarald Welte6-231/+348
This way we can model a flexible mapping between any number of PHYs, each having multiple instances, and then map BTSs with TRXx on top of those PHYs.
2016-02-03octphy: Look-up the right timeslot and then the logical chanHolger Hans Peter Freyther1-1/+1
Use the right identifier for the timeslot and not the trx number which would always use ts==0 on the first trx. This should fix ciphering issues for TS>0 (e.g. SDCCH8 on TS==1)
2016-01-22OCTPHY: fix 'make dist' (missing header files)Harald Welte1-1/+1
2016-01-22Merge branch 'laforge/common-main'Harald Welte3-224/+34
2016-01-22merge bts-specific main function into common/main.c:bts_main()Harald Welte3-224/+34
This removes a lot of copy+paste duplication between different BTS models.
2016-01-21OCTPHY: Don't have files in EXTRA_DIST that don't exist (anymore)Harald Welte1-1/+1
This fixes a 'make dist' issue.
2016-01-16OCTPHY: Obtain information from PHY and expose it in VTYHarald Welte4-4/+136
This adds 'show trx 0 system-information' command to the VTY indicating various version information obtained from the DSP/PHY.
2016-01-16OCTPHY: Implement command re-transmission after message lossHarald Welte2-39/+216
We re-use the 'wait_l1_conf' structure for implementing the unacknowledge command window towards the PHY. This means that thre will unconditionally be a 'wait_l1_conf' now, even for requests where the caller didn't provide a call-back.
2016-01-16OCTPHY: Print NOTICE message if we receive supervisory frameHarald Welte1-1/+26
2016-01-16OCTPHY: Block PHY indications until it is confirmed openHarald Welte3-0/+12
When re-starting OsmoBTS after unclean shutdown, the PHY is already sending notifications (PH-DATA.ind, PH-TIME.ind, etc.) for the previous physical channel / timeslot configuration. At the point those messages are received, OsmoBTS might not even have A-bis OML up yet, and thus has no clue how to process such messages (and subsequently likely crashes). Let's block such primitives from passing further up the code until we have received the TRX-OPEN response.
2016-01-16OCTPHY: Fix various memory leaks and add comments on msgb ownershipHarald Welte2-36/+97
2016-01-16OCTPHY: Exit gracefully if config file specifies no phy-netdevHarald Welte1-0/+5
2016-01-16OCTPHY: Ensure we write the phy-netdev parameterHarald Welte1-0/+4
When writing the config file from the command line, we must not forget to write the phy-netdev parameter, otherwise the program will fail to re-start later :/
2016-01-16OCTPHY: Replace '-lortp' with the proper pkg-config/autofoo versionHarald Welte1-2/+2
2016-01-16Add support for Octasic OCTSDR-2G GSM PHYHarald Welte14-0/+4513
This adds support for a new PHY to OsmoBTS, the Octasic OCTSDR-2G PHY. This is a proprietary GSM PHY running on a familty of Octasic DSPs.