aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-26bsc_init: Do not use magic numbers for GSM 12.21 states.Holger Hans Peter Freyther1-6/+6
2010-04-26bsc_init: Remove printf that sneaked in.Holger Hans Peter Freyther1-2/+0
2010-04-20[vty] Allow to set the RACH NM attributes on a per BTS basisHolger Hans Peter Freyther1-0/+16
Be able to tune the RACH settings of the BTS via the vty interface, by default they are initialized to -1 which means we will use the content of the static array (BTS default) and can be changed via the VTY interface. I have verified the setting on the nanoBTS with wireshark and I have tested writing the config file.
2010-04-19Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-8/+13
Conflicts: openbsc/include/openbsc/abis_rsl.h openbsc/include/openbsc/mgcp.h openbsc/src/abis_rsl.c openbsc/src/chan_alloc.c openbsc/src/handover_logic.c openbsc/src/mgcp/mgcp_network.c openbsc/src/vty/command.c openbsc/src/vty_interface.c
2010-04-18GPRS: Enable EGPRS coding schemes in Cell Attributes if 'gprs mode egprs'Harald Welte1-4/+9
2010-04-18GPRS: change 'gprs enabled <0-1>' to 'gprs mode (none|gprs|egprs)'Harald Welte1-4/+4
This causes some config file breakage but sounds like a much cleaner approach than to have two separate config variables for this.
2010-04-17[statistics] Keep track of OML/RSL failures of the BTS.Holger Hans Peter Freyther1-0/+5
2010-04-15[bsc_init] When the RSL/OML connection drops, free all lchansHolger Hans Peter Freyther1-2/+27
Free all allocated channels on the TRX that failed, go through lchan_free to signal higher layers and then force a reset of the channel. Make the TRX and TS unusable by setting the operational set to 0 (not really defined) which should be reset once the RSL is coming up again.
2010-04-13[statistics] Keep track of OML/RSL failures of the BTS.Holger Hans Peter Freyther1-0/+5
2010-04-11[bsc_init] When the RSL/OML connection drops, free all lchanHolger Hans Peter Freyther1-2/+27
Free all allocated channels on the TRX that failed, go through lchan_free to signal higher layers and then force a reset of the channel. Make the TRX and TS unusable by setting the operational set to 0 (not really defined).
2010-03-24Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-9/+144
Keep a static version as the shell script is not dealing well with branch tags/names containing text. Resolve merge conflict in the Makefile.am by adding both sides to the list of sources for the libbsc.a Conflicts: openbsc/configure.in openbsc/src/Makefile.am
2010-03-24Move the version/copyright string to a separate fileHolger Hans Peter Freyther1-14/+0
It didn't really belong into the bsc_init.c... now we could even easily autogenerate this file.
2010-03-24Include bscconfig.h without ../ for the srcdir != build dir caseHolger Hans Peter Freyther1-1/+1
2010-03-24Move the copyright and version header to bsc_init.cHolger Hans Peter Freyther1-0/+14
The copyright/version will be used from within the VTY code which might be linked into binaries even when bsc_hack.c is not linked into it.
2010-03-24Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-17/+14
* Move to libosmocore * Move to new debugging architecture * Register the BTS types * Has only been compile tested Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/include/openbsc/ipaccess.h openbsc/include/openbsc/mgcp.h openbsc/include/openbsc/msgb.h openbsc/include/openbsc/tlv.h openbsc/src/Makefile.am openbsc/src/abis_rsl.c openbsc/src/bsc_init.c openbsc/src/bsc_mgcp.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_subscriber_base.c openbsc/src/msgb.c openbsc/src/rest_octets.c openbsc/src/sccp/sccp.c openbsc/src/vty/command.c openbsc/src/vty_interface.c openbsc/tests/Makefile.am
2010-03-22GPRS: make NSEI configurable from VTYHarald Welte1-0/+4
2010-03-22GPRS: remove outdated FIXME about patching CGIHarald Welte1-1/+0
2010-03-22GPRS: remove "#define GPRS" compile-time defineHarald Welte1-16/+14
It is now possible to enable/disable GPRS support purely based on the vty / config file.
2010-03-22GPRS: make NSVC parameters VTY-configurableHarald Welte1-2/+7
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte1-1/+130
This new gprs-conf branch is intended to contain everything needed to configure GPRS in the nanoBTS, but without implementing the SGSN/GGSN functionality. The SGSN/GGSN development will happen in a branch based on this branch called "gprs-sgsn"
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-2/+2
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-02-09[bsc] Allow to set a EGSM900, RGSM900 ARFCNHolger Hans Peter Freyther1-2/+4
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
2010-02-09[bsc] Allow to set a EGSM900, RGSM900 ARFCNHolger Hans Peter Freyther1-2/+4
For R-GSM900 the channels 955-1023 are within the 900er band. The System Information Type generation can not cope with these channels yet.
2010-01-03[bsc_init] Send OPSTART if SITE_MANAGER reports off-lineSylvain Munaut1-2/+4
The exact sequence the states the BTS goes through is slightly different for one of the nanoBTS 139 I have and it needs this to start. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-31[misc] Utilize rf_locking by setting the nm_state.administrativeHolger Hans Peter Freyther1-2/+1
* On start the vty code will call the abis_nm method and this will set the administrative state to unlock/lock * During startup the BTS will report its state as well and would possible overwrite the set administrative. We are only going to update the administrative if it was 0 before. This appears to work on all of my tests. In case this will not be the case for others we will have to split the administrative into two sets one for the BTS and one for the BSC.
2009-12-24print ARFCN, LAC and CID when bootstrapping RSLHarald Welte1-3/+4
2009-12-23Fix segfault in case BTS has more TRX than we have configuredHarald Welte1-0/+2
2009-12-22bts: Allow config of RACH control parameters tx-integer & max retransSylvain Munaut1-5/+0
Tweaking theses can be useful especially tx-integer that influence both the spread of rach attemps and the delay between two attemps. Looking up GSM 04.08 3.3.1.1.2 & 10.5.2.29 can help determine good values. The default are choosed with a wide spacing between attemps (tx integer = 9 -> T=12 & S=217 (non-combined CCCH/SDCCH) or 115 (for combined CCCH/SDCCH)). This alleviates the problem of responding to several RACH attempts by a same MS, allocating several RF channels when only 1 is needed. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22missing semicolon at end of statementHarald Welte1-1/+1
2009-12-22Merge commit 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-290/+79
Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/abis_rsl.c openbsc/src/chan_alloc.c openbsc/src/gsm_04_08.c openbsc/src/gsm_data.c openbsc/src/vty_interface.c The biggest problem is the moving of the RTP code into the RSL layer. This may break quite some things...
2009-12-21it's LOGL_ERROR, not LOG_ERRORHarald Welte1-1/+1
2009-12-21make sure bootstrap_bts() only contains static initializationHarald Welte1-3/+5
values that might change at runtime are moved to set_system_infos() which we might now also call at runtime to update the BTS with changes in the SI
2009-12-21remove duplicate flag for cell barringHarald Welte1-3/+1
it's sufficient if we keep the state of cell barring in one place
2009-12-21[gprs] SI 13 should only be generated on C0 (BCCH-carrying TRX)Harald Welte1-7/+8
2009-12-20remove hand full of 'extern ipacc_rtp_direct' definitionsHarald Welte1-1/+0
and instead declare it in gsm_data.h
2009-12-19system_information: DEBUGP() SI13/5/6 during startupHarald Welte1-12/+12
2009-12-17logging: introduce log levels at caller siteHarald Welte1-14/+14
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-12-17[handover] first functional handover implementationHarald Welte1-0/+1
With this commit, we can successfully hand over a channel from one cell to another cell. We implement asynchronous intra-BSC (but inter-BTS) handover. Changes: * introduce new DHO log category * extend rsl_chan_activate_lchan() with argument for HO reference * introduce actual minimal handover decision making in handover_decision.c * various fixes to bsc_handover_start() in handover_logic.c
2009-12-16[system_information] Print more debugging about what's going onHarald Welte1-5/+11
2009-12-14make sure BSIC is patched into NM tables before initializing BS11Harald Welte1-0/+1
2009-12-12[VTY] add more cell reselection parameters to VTYHarald Welte1-2/+0
allow setting of 'cell reselection hysteresis' and 'rxlev access min' from VTY for experiments with cell reselection.
2009-12-12add warning about accept-all network on non-barred cellsHarald Welte1-0/+8
2009-12-01Replace template-based SYSTEM INFORMATION with real implementationHarald Welte1-277/+52
Before this commit, OpenBSC used templates for the SYSTEM INFO 1, 2, 3, 4, 5 and 6 messages. Those templates were patched in various places to reflect the network config like ARFCN. Now, we actually generate those SI messages ourselves, using values from the configuration file, and even calculating neighbor cell lists. All bts'es that you have configured in OpenBSC will end up in the neighbor cell list - which should be more than sufficient for the current small-single-site networks.
2009-11-24Merge branch 'master' into on-waves/bsc-masterHolger Hans Peter Freyther1-5/+1
Conflicts: openbsc/src/abis_nm.c openbsc/src/bsc_init.c openbsc/src/vty_interface.c
2009-11-24[vty] Add option to disable RF on a given TRX.Holger Hans Peter Freyther1-2/+14
- Make sure that on runtime the Radio Carrier can be locked and unlocked. The vty code calls into the Abis NM to lock/unlock the channel and the state is stored there. - Make sure that on start the Radio Carries remains offline and we are not starting it. On start the radio carrier is either locked or unlocked. This means the RSL will not connect until the RF is unlocked. It will connect then. To see RSL bringup failures one needs to parse the RSL nack message. - When the TRX is locked on startup the RSL link will only be established after it will be unlocked.
2009-11-24[bsc_init] Activate the RC and the RSL link from the Software Activated CallbackHolger Hans Peter Freyther1-27/+22
On cold start the RSL link will not be brought up. Wait for the Software to be Activated before starting the RSL link. This is working reliable on the BTS I have tested with. This is a partial revert of 8406ec2437fcc28906b2085e305d79ae73accc2a and was discussed on the mailinglist.
2009-11-20[vty] Add option to disable RF on a given TRX.Holger Hans Peter Freyther1-4/+24
- Make sure that on runtime the Radio Carrier can be locked and unlocked. The vty code calls into the Abis NM to lock/unlock the channel and the state is stored there. - Make sure that on start the Radio Carries remains offline and we are not starting it. On start the radio carrier is either locked or unlocked. This means the RSL will not connect until the RF is unlocked. It will connect then. To see RSL bringup failures one needs to parse the RSL nack message.
2009-11-20[bsc_init] Activate the RC and the RSL link from the Software Activated CallbackHolger Hans Peter Freyther1-27/+22
On cold start the RSL link will not be brought up. Wait for the Software to be Activated before starting the RSL link. This is working reliable on the BTS I have tested with.
2009-11-17[si] Make it possible to set the NECI value...Holger Hans Peter Freyther1-0/+4
Allow to configure the NECI value... and change code that is relying on the NECI value.
2009-11-17[abis_nm] avoid integer-to-pointer casting and associated gcc warningsHarald Welte1-2/+5