Commit Graph

632 Commits

Author SHA1 Message Date
Alexander Chemeris 9ab991191b HACK: Do not discard GSM-FR frames with bad CRC. 2015-07-20 20:09:44 -04:00
Alexander Chemeris 0b305633d6 trx: Support "bad burst" frames coming from osmo-trx.
Todo: We should actually send command to enable this mode in osmo-trx.
2015-07-20 20:09:44 -04:00
Alexander Chemeris adf26f6975 trx: Process undecodable frames coming from osmo-trx.
The purpose is to support RSSI measurements even when we can't decode a burst.

This commit also cleans up and abstracts some of the code in scheduler.c
2015-07-20 20:09:44 -04:00
Alexander Chemeris ceaf0616d2 DEBUG: Bump log levels for messages useful for LOOPBACK debugging. 2015-07-20 20:09:44 -04:00
Alexander Chemeris e6a8c0d396 trx: Add debug message about a successfully decoded FR frame. 2015-07-20 20:09:44 -04:00
Alexander Chemeris 4e3bfe1412 vty: Add commands to manually activate/deactivate a channel.
This is a hack, but it's the easiest way to make BTS level loopback to work.
Another way to implement this is to have BSC/NITB to send the OML command.

Note, that the current code hardcode the channel to be TCH/F which is what we
need for the BER testing.
2015-07-20 20:07:01 -04:00
Alexander Chemeris 7533cab4bc tests: Update busrsts_test build.
We've added logging calls to the bursts processing. Add logging facility
initializatoin to the test code.
2015-07-20 20:06:16 -04:00
Alexander Chemeris 3dc5c93e22 l1sap: Fix use-after-free in loopback mode. 2015-07-20 18:44:00 -04:00
Alexander Chemeris 3b3e16c4e4 trx: fix potential use of uninitialized toa variable.
Not really a bug, as we're smart about it down the stream, but it's better to
be strict here as well.
2015-07-20 18:44:00 -04:00
Alexander Chemeris 8f8c2a621d trx: Send POWERON/OFF commands to osmo-bts only for the first channel.
osmo-trx never supported separate power control for trx's, but now it started
to be more strict about it.
2015-07-20 18:43:50 -04:00
Ivan Kluchnikov 5bb48d0c75 debian: Add gsm_data_shared.h file to make packaging possible 2015-07-17 14:15:07 +03:00
Ivan Kluchnikov 82b4fbd507 debian: Add debian directory to ease building packages 2015-07-17 14:14:37 +03:00
Ivan Kluchnikov f2f20ad82a debian: Add gsm_data_shared.c file to make packaging possible 2015-07-17 14:14:07 +03:00
Alexander Chemeris cefa52b421 trx: Assume 100% BER if total decoded bits is 0 in l1if_process_meas_res() 2015-07-17 13:51:54 +03:00
Alexander Chemeris c35c0cd6c8 trx: Cleanup unused parts of loops.c 2015-07-17 13:51:10 +03:00
Alexander Chemeris d2448c697f trx: Remove unused variables. 2015-07-17 13:50:25 +03:00
Alexander Chemeris 68923685ea trx: Fix typo in a log message. 2015-07-17 13:49:42 +03:00
Alexander Chemeris 90b4e07e42 trx: More logging for voice frame decoding functions. 2015-04-23 21:53:08 -04:00
Alexander Chemeris 209e33a8fb tests: Update bursts_test to accommodate BER calculations. 2015-04-23 21:52:10 -04:00
Alexander Chemeris e510c84860 trx: Implement BER calculations.
A known issue with this code is that BER is not updated for lost TCH frames,
because osmo-trx doesn't send any indication for them and we don't have
a callback to handle this.

Otherwise the code seem to work fine.
2015-04-23 21:42:54 -04:00
Ivan Kluchnikov 9b7e7f7622 abis: Add support of libosmo-abis v 0.3.0 2015-04-07 15:47:15 +03:00
Ivan Kluchnikov a6ad0b44ae handover fix: we can receive handover rach on trx == bts->c0 2014-12-16 16:10:37 +03:00
Thomas Tsou d913322b47 TRX: Remove extra TCH/HS puncturing value
3GPP TS 05.03 "Channel coding" specifies the puncturing matrix (1,0,1)
for class 1 information bits and tail bits valued u(0) to u(103) for a
maximum puncturing index of 311. The puncturing index 313 exceeds the
maximum index and causes osmo_conv_get_output_length() to output the
improper length of 210 instead of 211.

Signed-off-by: Thomas Tsou <tom@tsou.cc>
2014-09-23 13:32:52 +04:00
Ivan Kluchnikov eac3b8c2a6 fix: make sysmobts tests only when sysmobts is enabled 2014-05-07 18:09:06 +04:00
Andreas Eversberg d7a3b630b4 TRX: Check if Transceiver indicates an out of range clock
If frame number is out of range (>= 2715648), the scheduler's process
would end up in an infinite loop. This is because the loop would schedule
bursts until the indicated frame number is reached, which would not be
possible.

The openbts, calypso-bts and osmo-trx might send out out of range clock
indications every 3.5 hour.
2014-04-06 14:39:23 +02:00
Andreas Eversberg 5a8afc1957 handover fix: handover_frame must call handover_reset, not itself 2014-04-06 08:58:33 +02:00
Andreas Eversberg e5beda8f83 ABIS: Support of multiple RSL connections for ABIS/ipaccess 2014-04-06 08:58:32 +02:00
Andreas Eversberg 96735bb4c9 TRX: Show which TRX does not respond or rejects a command 2014-04-06 08:58:31 +02:00
Andreas Eversberg eeff81eb07 trx: Set lchan inactive, only if the dedicated channel is deactivated 2014-04-06 08:58:30 +02:00
Andreas Eversberg b95a7ccd91 TRX: Activate LCHAN of CCCH when CCCH is configured on time slot 2014-04-06 08:58:29 +02:00
Andreas Eversberg 7a9456075c HACK: Make ABIS work when reestablishing 2014-04-06 08:58:28 +02:00
Andreas Eversberg 9bb1a4a36a Fix: Call e1inp_vty_init() before reading config file 2014-04-06 08:58:27 +02:00
Andreas Eversberg 129bc60c77 TRX: Free bust buffer memory to when changing lchan type 2014-04-06 08:58:26 +02:00
Andreas Eversberg 4802b76185 TRX: Add VTY option to allow setting RTS advance in frames
RTS (ready-to-send) must be issued in advance, so BTS core and especially
osmo-pcu can provide downlink data frames early enough. In some cases PCU
might provide frames too late, so they must be dropped. If PCU provides
frames too late, due to high system load, this "RTS advance" setting must
be increased.
2014-04-06 08:58:26 +02:00
Martin Hauke c41fd8cab4 fix some typos in comments 2014-04-06 08:58:25 +02:00
Martin Hauke cc723f630e build: Use AM_CPPFLAGS in Makefile.am
Since automake 1.13 INCLUDES is depricated and causes a warning
Inspired from similar patches by Alexander Huemer for other osmocom
projects.
2014-04-06 08:58:24 +02:00
Martin Hauke 3212470d60 tests: make tests for sysmobts conditional 2014-04-06 08:58:23 +02:00
Andreas Eversberg e6df0536ad Allow TRX 0..254 at VTY, even if less TRX are available
Instead of limiting the number of TRX at VTY to the actual number of
supported TRX, VTY allows to configure any possible number of TRX. If a
TRX is configured, which is not supported by BTS model, an error message is
returned, which states that the given TRX is not supported.
2014-04-06 08:58:22 +02:00
Andreas Eversberg c26d3b7ab9 TRX: Changed logging of unserved primitives from LOGL_NOTICE to LOGL_INFO 2014-04-06 08:58:21 +02:00
Andreas Eversberg 4c40a23966 TRX: Fixed chan_nr for SACCH/8(7) at scheduler 2014-04-06 08:58:20 +02:00
Andreas Eversberg 838a2043a0 trx: Add option to set transmit power reduction via OML (BSC) 2014-04-06 08:58:19 +02:00
Andreas Eversberg 7ba9bf5efa TRX: Do not send burst on IDLE channels at TRX != C0
This is required, so the transceiver transmits no power.
2014-04-06 08:58:18 +02:00
Andreas Eversberg c7bc0fec8a Fix: Retrieve ARFCN (from OML) for TRX other than C0 2014-04-06 08:58:18 +02:00
Andreas Eversberg 2686a02f0e TRX: Close TRX (shutdown all active channels) on ABIS link failure 2014-04-06 08:58:17 +02:00
Andreas Eversberg 3d3f88f2f8 Fix: Process all TRX on GSM Time indication, not only C0 2014-04-06 08:58:16 +02:00
Andreas Eversberg 8bbe9bdc9c TRX: Add bts_model_trx_close to TRX implementation 2014-04-06 08:58:15 +02:00
Andreas Eversberg 45971cfb0f TRX: Fixup ciphering state names after rebasing 2014-04-06 08:58:14 +02:00
Andreas Eversberg e7df709ec5 TRX: No need to set mode and cipher for PDCH 2014-04-06 08:58:13 +02:00
Andreas Eversberg 29479a07fe TRX: If no cipher algorithm is given, or if it is a5/0, reset cipher state 2014-04-06 08:58:12 +02:00
Andreas Eversberg 770620b847 TRX: Set ciphering to an initial state when activating channel
Handover and assignment may activate channels with ciphering already set,
so we need to tell scheduler to enable/disable ciphering and set the
correct cipher state.
2014-04-06 08:58:11 +02:00