Commit Graph

262 Commits

Author SHA1 Message Date
Harald Welte ed607f475f increae the RACH quality threshold to 5dB C/I 2011-07-07 18:17:31 +02:00
Harald Welte be598e3afd RSL: Send fake CIPHERING MODE COMPLETE
we do this as a hack as long as the MSC assumes the BTS supports
A5, but the L1 really doesn't support it yet.
2011-07-07 18:16:35 +02:00
Harald Welte 540410c123 RSL: implement RSL ENCR CMD, feed L3_INFO to LAPDm
This is not full encrpytion support, the bts-model part still
needs to detect the ENCR CMD when de-queueing from LAPDm and enable
the de-ciphering, detect the arrival of the first encrypted frame,
etc, enable en-ciphering, ...
2011-07-07 11:50:45 +02:00
Harald Welte 39eadbbb17 sysmbts L1 if: implement 'dead DSP L1 detection'
when we activate the SCH in the DSP, we start a 5-second timer.  If
we ever do not receive any MPH-TIME.ind primitives from L1 within
that time frame, we stop the process (and will be re-spawned)
2011-07-05 16:59:27 +02:00
Harald Welte 547b1d1916 l1_if: send EMPTY-FRAME.req instead of fill frame on TCH/F + FACCH 2011-07-05 16:15:26 +02:00
Harald Welte 1920738840 L1/OML: De-activate L1 SAPIs in opposite order of activation
L1 wants TCH to be activated before FACCH, and it wants FACCH
to be de-activated before TCH.  By iterating the array in iverse
order, we ensure this.
2011-07-05 14:27:30 +02:00
Harald Welte 79cf0bb1e6 increase RACH threshold to 1 dB C/I 2011-07-05 14:13:52 +02:00
Harald Welte 977fcbc2db add some missing #include directives 2011-07-05 13:52:29 +02:00
Harald Welte 7ab9b777c6 add command line option '-p' to specify DSP trace flags as hex mask 2011-07-05 13:47:42 +02:00
Harald Welte 017300623b Fix compilation of paging.c
Sometimes I really feel stupid...
2011-07-05 13:38:15 +02:00
Harald Welte f78927a9a8 paging: Fix 'empty paging' message contents
Thanks to Dieter Spaar for spotting this bug
2011-07-05 13:36:26 +02:00
Harald Welte 5df3cf9db2 paging: correct contents of L2 Pseudo-Length
thanks to Dieter Spaar for spotting this one
2011-07-05 13:35:28 +02:00
Harald Welte 12b647998c add VTY commands for setting and showing DSP trace flags 2011-07-05 12:21:27 +02:00
Harald Welte ead4863de1 sysmobts: add value_string for dsp trace flags 2011-07-05 00:43:50 +02:00
Harald Welte 260fcfc8d0 logging: Add DSP log subsystem 2011-07-05 00:43:33 +02:00
Harald Welte b17a47e6e1 measurement: fix missing \n at end of log output 2011-07-02 22:44:27 +02:00
Harald Welte 2b384c3ee1 remove FIXME that has long been fixed 2011-07-02 21:07:05 +02:00
Harald Welte db4455acfa add init script and screenrc for l1fwd 2011-07-02 15:57:37 +02:00
Harald Welte 43b669a9f3 untested code to dynamically set L1 band based on ARFCN number 2011-07-02 00:20:49 +02:00
Harald Welte a5ea80e9b6 start screen in detached/background mode 2011-07-01 23:09:45 +02:00
Harald Welte cc6bf663e7 add init script for screen-based respawn 2011-07-01 19:54:16 +02:00
Harald Welte b10e9781d6 add respawn script and screenrc for respawning the process in screen 2011-07-01 19:51:32 +02:00
Harald Welte 18d0818710 make it clear why we terminate 2011-07-01 19:03:30 +02:00
Harald Welte 288d0c04c8 logging sanitization (use proper log levels, etc.) 2011-07-01 18:54:10 +02:00
Harald Welte f788d79411 sysmobts-remote: Remove hard-coded BTS IP address
The BTS IP address can now be specified by the L1FWD_BTS_HOST env
variable.

Option parsing would not have been that easy to integrate without
touching the main program...
2011-07-01 18:25:22 +02:00
Harald Welte f15cef94f7 fix various compiler warnings 2011-07-01 18:22:01 +02:00
Harald Welte 9fa0cce100 fix BTS initialization order
The sequence is as follows:

0) start osmo-bts
1) start connection attempts to BTS
2) issue L1-RESET.req
3) receive L1-RESET.conf
4) issue RF-ACTIVATE.req
5) receive RF-ACTIVATE.conf
6) receive attributes for TRX
7) receive opstart for TRX
8) issue MPH-INIT.req
[...]

The important point here is: We don't want the BSC to set TRX attributes or do
TRX opstart before our RF related hardware is initialized.
2011-07-01 18:09:34 +02:00
Harald Welte 0f827275d7 sysmo-bts: Ignore OPSTART on the TRX until we have seen SET ATTR 2011-07-01 16:02:19 +02:00
Harald Welte 4450a1530c sysmo-bts: properly initialize the nominal power, print it at startup 2011-07-01 11:27:41 +02:00
Harald Welte 062d96e38b measurements: avoid division by zero 2011-06-30 17:31:54 +02:00
Harald Welte b849684181 deactivate RF + exit when the Abis link is gone
The idea is that the BTS process is re-spawned from init/upstart/systemd
2011-06-29 20:42:14 +02:00
Harald Welte 1eb4d4893c add logging related vty commands 2011-06-29 20:20:11 +02:00
Harald Welte 2bc0e10fa1 RSL/LAPDM: make sure we do lapdm_channel_reset()
this will free / flush any of the queued messages and give us a
clean start for the next user of the same lapdm channel.
2011-06-29 19:14:58 +02:00
Harald Welte 3b7480d5c3 RSL: clarify msgb free scheme in rsl 2011-06-29 19:14:44 +02:00
Harald Welte 40e820d882 OML: fix memory leaks by centralized msgb_free() for rx msgs 2011-06-29 18:57:58 +02:00
Harald Welte ae5dfdc416 Fix memory leak in abis code: Free msgb after tx'ing it 2011-06-29 18:55:03 +02:00
Harald Welte 5a7877457b set talloc ctx for msgb's to make sure we see them in talloc report 2011-06-29 18:46:28 +02:00
Harald Welte b9919bd2a6 Fix support of SDCCH4
In SDCCH4, we use lchan number 0...3 for the SDCCH/SACCH, and
we statically use lchan[4] as the dummy for activating the CCCH
L1 SAPIs.

In order to make combined and non-combined CCCH orthogonal, we simply
also use lchan[4] in that case.  On a 'pure' CCCH, therefore lchan
0..3 are unused and 4 is the actual CCCH.
2011-06-29 18:35:38 +02:00
Harald Welte 8188e1949b sysmo-bts: Bring TCH (FACCH) into a working state 2011-06-29 17:51:16 +02:00
Harald Welte 45b767c7be RSL: Log all RLL messages from A-bis to LAPDm 2011-06-29 17:49:52 +02:00
Harald Welte 1904e50f87 sysmo-bts: Fix TCH/F activation 2011-06-29 15:25:31 +02:00
Harald Welte 9852328aae don't print ((....)) in RSL debug output 2011-06-29 15:05:49 +02:00
Harald Welte 35030111f4 Sysmocom l1if: Don't print hex-dumps of AGCH/SACCH messages anymore 2011-06-29 14:12:36 +02:00
Harald Welte a7d6261108 sysmocom L1: raise the threshold for ignored RACH bursts
the RACH burst detection in the physical layer is appranetly providing many
false positives, and we need to raise the bar a bit in order to not allocate
channels in a useless way...
2011-06-29 14:09:59 +02:00
Harald Welte ee3d0fcb77 make sure we forward EXTENDED MEAS REP to the BSC 2011-06-29 14:09:15 +02:00
Harald Welte 24f22dff1e remove debugging printf in sysinfo code 2011-06-29 13:25:26 +02:00
Harald Welte 5830bfe411 rsl / meas rep: properly check if UNIT DATA IND is really a 04.08 meas rep 2011-06-29 12:43:09 +02:00
Harald Welte 6818881d72 implement baseic uplink measurement processing + reporting
* gather measurements from each PH-DATA.ind
* check every TDMA frame about meas period expiration
* compute averages after period expired
* put MS DL MEAS REP into RSL MEAS RES messages, include UL meas

bugs:
* L3 INFO content seems to have some offset
* is_sub is not set anywhere
* measurement periods might have up/downlink offset
2011-06-29 10:36:07 +02:00
Harald Welte c5e01c8bd4 implement RSL DEACTIVATE SACCH 2011-06-28 12:11:51 +02:00
Harald Welte d04d43098d paging: add paging_reset() function 2011-06-27 23:51:02 +02:00