aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
AgeCommit message (Collapse)AuthorFilesLines
2009-08-06introduce '-2' commandline option for second BS-11Harald Welte1-4/+27
Using this option, you can use two BS-11 connected to the same E1 link. The first BS-11 needs to have BPORT0 and BPORT1 objects created with E1 Line Configuration attribute "multi-drop". The second BS-11 is configured with only BPORT0 in star configuration, and needs to have the OML signalling on TS6 instead of TS1. Also, a kernel patch providing a second virtual E1 interface is needed.
2009-08-06shut down the OML (and thus the BTS) when bsc_hack is terminated with ctrl+cHarald Welte1-2/+6
2009-08-06only set BCCH INFO on first TRX (C0) of BTSHarald Welte1-4/+6
2009-08-06use HARDCODED_BTSn_TS defines from bsc_hack.cHarald Welte1-19/+36
2009-08-04fix initialization of TRX1 / TS0Harald Welte1-5/+5
also fix a minor error when printing BTS/TRX number
2009-07-29complete TRX1 support for BS11Harald Welte1-19/+89
* remove old HAVE_TRX1 definition, replace it with '-1' commandline argument * make sure we actually configure the OML TRX attributes with a different ARFCN than TRX0 * make sure we configure timeslot 0 of TRX1 also in TCH/F mode This code is untested, but if you have a dual-trx BS-11, and the second TRX is activated, you should be able to run bsc_hack with the -1 option to enable and use the second trx. It works like this: * TRX1 shares E1 timeslot 0 for signalling * TRX1 RSL link uses TEI2 (TRX0 uses 1) * TRX1 on ARFCN+2, i.e. if you have TRX0 on 122, TRX1 will be 124
2009-07-28add RTP proxy mode for ip.accessHarald Welte1-1/+6
Up until now, we only supported direct RTP streams between ip.access BTS. With this commit, the user can specify '-P' to the command line to enable a RTP/RTCP proxy inside OpenBSC. The nanoBTS will then send all their voice data to OpenBSC, which will relay it to the respective destination BTS (which can be the same BTS). The default behaviour remains unchanged. Without '-P' on the command line, RTP/RTCP is exchanged directly.
2009-07-21allow user to set BSIC and TSC from command lineHarald Welte1-4/+19
2009-07-18some more comments for BS11 attributesHarald Welte1-35/+36
2009-07-16bsc_hack.c: Make adding of (nano)BTS to the network dynamicHolger Hans Peter Freyther1-13/+40
Fix the FIXME and replace the hardcoded site_id's of the nanoBTS with a command line option. You can use -i DEVICE_X for every BTS you want to handle.
2009-07-12more ip.access abis_nm attributesHarald Welte1-2/+2
we also rename some existing attributes to reflect reality
2009-07-05remove SI3 and SI4 rest octetsHarald Welte1-17/+6
As Dieter has pointed out, we currently send incorrect information in the rest octets, particularly about our GPRS capability. Since the format of the rest octets is highly complex, and we don't actually need any of those features yet, we might just fill them with padding.
2009-06-29the pointer "tall_bsc_ctx" belongs to the gsm_data.c file not to include file.Andreas Eversberg1-2/+0
2009-06-21switch to dynamically allocated BTS and TRX data structuresHarald Welte1-11/+12
This makes it much easier to do run-time configuration using the vty interface.
2009-06-20introduce talloc all over OpenBSCHarald Welte1-1/+10
2009-06-20Introduce BS and MS power control related functionsHarald Welte1-2/+9
* add bts->band field plus corresponding VTY and commandline argument * add trx->nominal_power and trx->max_power_red fields * add rsl_chan_bs_power_ctrl() to control TRX RF power for a given TS * add rsl_chan_ms_power_ctrl() to control MS RF power for a given lchan.
2009-06-20BS11: use abis_nm_set_{bts,radio}_attr()Harald Welte1-16/+14
BS11 should only use the raw message sending function if there is no standard alternative. For TRX and BTS attributes, we have the standard variant.
2009-06-10reworked MNCC codebaseHarald Welte1-1/+2
This is Harald's reworked MNCC base, slowly heading towards integration into master. The key changes are: * provide much more structure to the data in gsm_mncc * encode_* and decode_* functions now take a structure rather than tons of individual arguments (whose order nobody can remember) * make sure we don't have copies of the same code everywhere by introducing mncc_set_cause() and mncc_release_ind() * save horizontal screen space if possible * make sure we break lines > 80 characters
2009-06-10[o&m] Dispatch a signal for nacked O&M messagesHolger Hans Peter Freyther1-0/+14
When trying to operate a nanoBTS900 on channels for 1800 or the other way around the "SET BTS ATTRIBUTES" message will be nacked. Dispatch all nacked messages from abis_nm via signals. Handle this in bsc_hack.c, print a small hint and exit the application as this is considered a fatal unrecoverable error (the exit is in the app, so a library can be more robust).
2009-06-10[bsc_hack] Sanity check for the GSM1800 nanoBTSHolger Hans Peter Freyther1-0/+20
The GSM1800 requires us to use channels between 512-885. When failing to provide such a channel the OML layer will fail and no RSL connection will be opened. Add a sanity check before creating the gsm_network and fail when the channels are not within the allowed range. Assume no one is operating a BS11 in the 1800 spectrum.
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+1159