aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/abis_nm.h
AgeCommit message (Collapse)AuthorFilesLines
2018-03-22backport support for 3-digit MNC with leading zerosneels/mnc3Neels Hofmeyr1-8/+1
Backport the patches with the following change-ids: osmo-bsc.git: I5b097dbb6329f284e3b4914a744d5c3ad628f715 I8e722103344186fde118b26d8353db95a4581daa I78f30aef7aa224b2e9db54c3a844d8f520b3aee0 I38ac98a4d25159cfd4f686efbfbaf8f00625a6d8 osmo-iuh.git: I29ebcddd45fe3079f8883589a83cc7216a535475 Also apply change of ipac_bcch_info.cgi to struct osmo_cell_global_id in src/ipaccess/network_listen.c, a change that appears to not have been necessary in the new split repositories. Related: OS#3010 Change-Id: Ibf50fd7e1ca5472d0a38fcb87c68227d6de44f42
2017-05-15Prepare for BTS attribute reporting via OMLMax1-1/+4
* use define for number of attributes instead of magic number * add sub_model to gsm_bts struct * expand number of BTS features * mark attributes parameter to abis_nm_get_attr() as const Change-Id: I7ecb0c4339530d3a8354a2f94b34063dda87e030 Related: OS#1614
2017-05-08Use libosmocore for SW Description parsingMax1-15/+1
Requires libosmocore with Ib63b6b5e83b8914864fc7edd789f8958cdc993cd. Change-Id: Ib94db414e94a2a1f234ac6f1cb346dca1c7a8be3
2016-11-24move to libcommon-cs: net init 2: move bsc_network_init decl to new .hNeels Hofmeyr1-0/+2
bsc_network_init() is more fit to live in a BSC specific header, move it to new common_bsc.h. It will probably also absorb the BSC-specific part of gsm_network in the future. Adjust header includes across the board. Particularly, fix abis_nm.h by explicitly including gsm_data.h: it so far relied on other headers to do that, which now is no longer always given. Change-Id: I9edfb1e748bb1cb484fadd48b0406f5b3098e89b
2014-03-26ctrl/abis: When the max_power_reduction changes, send it to the BTSHolger Hans Peter Freyther1-0/+3
In case the max_power_reduction changes, issue a new Set Radio Carrier Attributes command. OML 12.21 allows to not include the ARFCN list and the semantic I picked/understand is that a partial update is possible. Fixes: SYS#267
2012-12-19abis: Activate the newest available installed on the BTSHolger Hans Peter Freyther1-0/+1
Select thew newest software from all available file versions.
2012-12-19abis: Create a routine that can parse all SW Descriptions of a SW ConfigHolger Hans Peter Freyther1-0/+15
Be able to parse the entire SW Config IE. Parse the SW Descruption into a struct provided by the caller.
2012-08-14abis_nm: Add function abis_nm_get_attr() to get attributes from BTSHarald Welte1-0/+3
2011-09-26Fix Ericsson RBS2000 support after libosmo-abis mergeHarald Welte1-1/+1
The libosmo-abis merge broke Ericsson RBS support, as it didn't get the part right where the per-TRX OML sign_link is determined while transmitting OM2000 messages. As a result of this fix, we can remove the 'to_trx_oml' parameter to _abis_nm_sendmsg(), which is a nice cleanup.
2011-08-19src: port openBSC over libosmo-abis0.9.15Pablo Neira Ayuso1-0/+3
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-06-05abis_nm.h: Use osmocom/core/abis_nm.hHarald Welte1-2/+1
2011-05-31abis: Get the structs and values from libosmocoreHolger Hans Peter Freyther1-6/+0
Remove the forward declarations for functions and structs that have been moved to libosmocore.
2011-04-18misc: Remove sys/types.h includes from the filesHolger Hans Peter Freyther1-1/+0
These are not needed any more. We used them for u_int types but we now use uint which comes from stdint.h
2011-04-18misc: Move from u_int to uint types of stdint.hHolger Hans Peter Freyther1-64/+64
This was done with sed on the files.
2011-03-23src: use new library libosmogsm and new path to headers in libosmocorePablo Neira Ayuso1-2/+2
libosmogsm is a new library that is distributed in the libosmocore. Now, openbsc depends on it. This patch gets openbsc with this change. This patch also rewrites all include path to the new osmocom/[gsm|core] Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-02-11[BSC] Move the BTS-type specific code from bcs_init.c to bts_*.cHarald Welte1-8/+0
bsc_init.c was a big mess even only for two supported BTS models, so before adding more BTS types, this needs a cleanup. All the BTS specific code from bsc_init.c has now moved into bts_{siemens_bs11,ipaccess_nanobts}.c This has required that input_event() and nm_state_event() get both converted to proper libosmocore signals instead of referencing external symbols.
2011-01-01License change: We are now AGPLv3+ instead of GPLv2+Harald Welte1-6/+5
The reason for this is quite simple: We want to make sure anyone running a customized version of OpenBSC to operate a network will have to release all custom modifiations to the source code.
2010-12-21abis_nm: Band aid on OML initialisation by queuing messagesHolger Hans Peter Freyther1-0/+3
Instead of sending many messages we will queue the OML messages and wait for the ACK/NACK before sending the next message from the queue. We tag the msgb to remember if we need to wait for an ack or not. We keep the order of all messages, on ACKs and similiar occassions we will drown the queue until we reach a message that needs to be acked and then wait for that ack again. Possible breakage can appear when we send an OML (e.g. BS11 specific message) msg which does not need to be acked through the abis_nm_sendmsg call. The fix will be to use the _direct version of this method. Re-Enable as it might have fixed something... who knows. Conflicts: openbsc/include/openbsc/abis_nm.h openbsc/include/openbsc/gsm_data.h openbsc/src/abis_nm.c openbsc/src/gsm_data.c
2010-12-14bs11_config: show the BPORT0 / BPORT1 configuration in 'query'Harald Welte1-0/+1
This introduces abis_nm_bs11_get_bport_line_cfg() and a parser for the result.
2010-07-22ipaccess-config / network listen: ordered list of RxLevelsHarald Welte1-2/+1
Use libosmocore 'rxlev_stat' module to generate an ordered list of ARFCN's, sorted by RxLev while performing test nr. 64
2010-07-22move ip.access netowrk listen (NWL) to network_listen.cHarald Welte1-1/+1
Also, we now re-start the network listen test after it has finished, so if you run a test from ipaccess-find, the test will get re-started and re-started all the time.
2010-05-31OML: Introduce minimal VTY command set to interact with OML managed objectsHarald Welte1-0/+5
2010-05-13sw_load: Specify the trx_nr for the software loadHolger Hans Peter Freyther1-1/+1
For the multi TRX setup we will need to specify the right trx->nr to be able to flash the BTS. For the BS11 case we are ignoring the additional argument.
2010-05-13ipaccess: Send the reset to the BASEBAND_TRANSC and supply TRXHolger Hans Peter Freyther1-1/+1
Send the IPA Restart to a given BTS/TRX, change the signal callbacks to carry the trx instead of the BTS so we have an easy access to the right TRX and change the ipaccess-config to use that TRX. This is fixing the restart with a multi TRX setup. Even if we have the msg->trx, use the gsm_bts_trx_by_nr and get the TRX from the fom header. This is because the OpenBSC and the BTS numbering might not match for the multi TRX case.
2010-05-13abis: Pass the abis_om_obj_inst in the nm_state_event..Holger Hans Peter Freyther1-1/+2
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte1-0/+1
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-20move GSM protocol definitions to include/osmocore/protocol/*Harald Welte1-665/+1
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-1/+1
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-01-10[OML] parse attributes depending on BTS typeHarald Welte1-1/+3
Some NM attributes are defined differently depending on the BTS type. Having one big nm_att_tlvdef[] table for all BTS types is no longer sufficient. This patch * introduces 'struct gsm_bts_model' to describe a BTS model * adds definitions of gsm_bts_model for BS-11 and nanoBTS * changes the abis_nm_tlv_parse() function: include a bts pointer
2010-01-07bis_nm_ipaccess_set_nvattr() executes on a TRX, not a BTSHarald Welte1-1/+1
2010-01-07[abis_nm] Add abis_nm_bs11_set_pll function to change the set/work valueDaniel Willmann1-0/+1
Whether this function changes the set or the work value depends on your type of login. In FACTORY login it changes the set value, in FIELD login it changes the work value (which is what is used by the BS11 to tune the frequency).
2010-01-07[abis_nm] Add abis_nm_bs11_infield_logon to logon as user fieldDaniel Willmann1-0/+1
As this user you are able to set the PLL work value which is especially useful if your BS11 got detuned by an inaccurate oscillator in your E1 card.
2010-01-07[abis_nm] Add generic abis_nm_bs11_logon functionDaniel Willmann1-0/+1
Factoring out common logon functionality will allow us to logon as different user. abis_nm_bs11_factory_logon now uses this function.
2010-01-03abis_nm: Introduce & use a nm_is_running function to test gsm_nm_stateSylvain Munaut1-0/+1
This returns true if the gsm_nm_state can be considered 'running'. Note that we also accept availability==0xff (which is a code for no value) because according to 12.21 it is perfectly valid. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-30[abis] Dispatch a IPAC restart ACK/NACK signalHolger Hans Peter Freyther1-0/+1
* Add the NACK version to the list * Dispatch the signal when we receive the message * Handle it in ipaccess-config by exiting the application
2009-12-24use enum for operational stateHarald Welte1-0/+6
2009-11-13[OML] fix bugs in BCCH info parser for ip.accessHarald Welte1-1/+1
2009-11-13[ip.access] Parse cell global ID as part of BCCH infoHarald Welte1-1/+10
2009-11-12ip.access: Introduce parser function for BCCH Info test resultHarald Welte1-0/+45
2009-10-24[OML] Add support for ip.access SET ATTRIBUTE messageHarald Welte1-0/+3
Since TS 12.21 implements only SET ATTRIBUTE for some object classes, ip.access had to extend it to be able to set attributes on arbitrary objects. We now introduce a function implementing that message.
2009-10-20[nanoBTS] move nanoBTS initialization completely into state event handlerHarald Welte1-0/+1
2009-10-19[abis_nm] introduce and use abis_nm_ipaccess_rsl_connect()Harald Welte1-0/+2
2009-10-09add ipaccess specific attribute set messageHarald Welte1-0/+3
Partially apply 9ba65525eaa06a1768aaf35bdee98afcf8026e0a to get rid of a compile problem. The other part of the mentioned commit is still in the gprs branch. Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2009-10-08add availability state abis_nm enumHarald Welte1-0/+10
2009-08-10move chcomb4pchan to public abis_nm_chcomb4pchan() functionHarald Welte1-0/+2
2009-08-10Add {create, delete}-bport1 and bport0-{star, multidrop} to bs11-configDaniel Willmann1-1/+9
This adds the possibility to bs11-config to add the second bport and change the line config to star or multidrop.
2009-08-09add comments about channel combinationsHarald Welte1-10/+14
2009-08-08implement nanoBTS frequency error testHarald Welte1-0/+5
This helps us to detect the frequency error of BS-11 if it is located next to the nanoBTS 900. If 'ipaccess-config -l' is called, it will produce a report like <0020> ipaccess-config.c:85 TEST REPORT: test_no=0x42 test_res=0 <0020> ipaccess-config.c:108 ==> ARFCN 220, Frequency Error 22 <0020> ipaccess-config.c:108 ==> ARFCN 1, Frequency Error -37 <0020> ipaccess-config.c:108 ==> ARFCN 10, Frequency Error 0 <0020> ipaccess-config.c:108 ==> ARFCN 20, Frequency Error 11 <0020> ipaccess-config.c:108 ==> ARFCN 53, Frequency Error 5 <0020> ipaccess-config.c:108 ==> ARFCN 63, Frequency Error -4 <0020> ipaccess-config.c:108 ==> ARFCN 84, Frequency Error 11 <0020> ipaccess-config.c:108 ==> ARFCN 101, Frequency Error 0 <0020> ipaccess-config.c:108 ==> ARFCN 123, Frequency Error -52 where in this case the ARFCN 123 is the BS-11 with a frequency error larger than all the other (regular) BTS in the vicinity.
2009-08-06add function for performing 'CONNECT MULTI-DROP LINK" as per GSM 12.21Harald Welte1-0/+3
don't be confused, BS-11 does not need this. But since I wrote the code before knowing that, I can just as well commit it.
2009-08-01add ip.access specific channel combinationsHarald Welte1-0/+6