Project

General

Profile

Bug #5219

VTY cmd "bts 0 trx 0 timeslot 1 sub-slot 0 activate fr" fails on sysmobts with BSIC 10

Added by pespin about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
08/27/2021
Due date:
% Done:

100%

Spec Reference:

Description

The same command worked fined on a osmo-bts-trx with "base_station_id_code 63".

Doing the same command on a sysmobts with "base_station_id_code 10", I a NACK from osmo-bts-symo (see osmo-bts-sysmo log below):

<0006> /git/osmo-bts/src/common/rsl.c:269 (bts=0,trx=0,ts=3,ss=0) This PHY does not support lchan TSC 0 != BSIC-TSC 2, sending NACK
<0000> /git/osmo-bts/src/common/rsl.c:1289 (bts=0,trx=0,ts=3,ss=0): Sending Channel Activated NACK: cause = 0x4f

The TS was properly configured as TCH/F on osmo-bsc.cfg.

osmo-bsc.git while running the VTY command (ts_nr may change because I tried several times, each time with a different one):

20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/bsc_vty.c:1556 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{UNUSED}: (type=NONE) attempt from VTY to activate lchan (bts=1,trx=0,ts=3,ss=0) with codec fr
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_select.c:320 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{UNUSED}: (type=TCH_F) Selected
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:389 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{UNUSED}: Received Event LCHAN_EV_ACTIVATE
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:631 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{UNUSED}: state_chg to WAIT_TS_READY
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/gsm_data.c:996 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_TS_READY}: (type=TCH_F) MS Power level update requested: 32 dBm
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/gsm_data.c:1027 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_TS_READY}: (type=TCH_F) MS Power level update (power class 0): 0 -> 31
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:722 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_TS_READY}: (type=TCH_F) Activation requested: ACTIVATE_FOR_VTY voice=no MGW-ci=none type=TCH_F tch-mode=SPEECH_V1 encr-alg=A5/0 ck=none
20210827175029010 DTS <0010> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:737 timeslot(1-0-3-TCH_F)[0x612000008f20]{UNUSED}: Received Event TS_EV_LCHAN_REQUESTED
20210827175029010 DTS <0010> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/timeslot_fsm.c:366 timeslot(1-0-3-TCH_F)[0x612000008f20]{UNUSED}: state_chg to IN_USE
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/timeslot_fsm.c:108 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_TS_READY}: Received Event LCHAN_EV_TS_READY
20210827175029010 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:757 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_TS_READY}: state_chg to WAIT_ACTIV_ACK
20210827175029011 DRSL <0003> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/abis_rsl.c:578 (bts=1,trx=0,ts=3,pchan=TCH/F,state=IN_USE) Tx RSL Channel Activate with act_type=INTRA_NORM_ASS
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/abis_rsl.c:1378 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: (type=TCH_F) Rx CHAN_ACTIV_NACK
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/abis_rsl.c:1083 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: (type=TCH_F) CHANNEL ACTIVATE NACK (cause=Service or Option not implemented [ 4f ])
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/abis_rsl.c:1088 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: Received Event LCHAN_EV_RSL_CHAN_ACTIV_NACK
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:859 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: (type=TCH_F) Handling failure, will then transition to state BORKEN
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:859 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: (type=TCH_F) lchan allocation failed in state WAIT_ACTIV_ACK: Chan Activ NACK: Service or Option not implemented (0x4f)
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:180 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: (type=TCH_F) VTY user invoked lchan activation failed (lchan allocation failed in state WAIT_ACTIV_ACK: Chan Activ NACK: Service or Option not implemented (0x4f))
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:859 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{WAIT_ACTIV_ACK}: state_chg to BORKEN
20210827175029013 DCHAN <000f> /home/pespin/dev/sysmocom/git/osmo-bsc/src/osmo-bsc/lchan_fsm.c:473 lchan(1-0-3-TCH_F-0)[0x61200000b7a0]{BORKEN}: (type=TCH_F) Clearing lchan state

Also VTY output:

OsmoBSC# bts 1 trx 0 timeslot 3 sub-slot 0 activate fr
% activating lchan (bts=1,trx=0,ts=3,ss=0) as TCH_F

Running versions:
osmo-bts.git master (f616294d8c1ebc280b7cd0a7a25c2b0a9d353a24)
osmo-bsc.git master (faf37254eb0a2b4b8d52e787f407ea7843031654)

Possible candidate breaking it (adding a .tsc=0 somehwere):

commit 2aac1765e6e301716770b2fa4e223d6e9ff6cbc7
Author: Neels Hofmeyr <neels@hofmeyr.de>
Date:   Sun Apr 25 17:02:15 2021 +0200

    implement CHANnel ACTIVate to VAMOS mode

    Related: SYS#5315 OS#4940
    Change-Id: If3ac584e4223ef7656c7fedc3bf11df87e4309ec

BTW, the failing sysmobts is "bts 1" in osmo-bsc.cfg, that may be a cause of issues if always verybody tries with "bts 0".


Related issues

Related to OsmoBSC - Bug #5244: Training Sequence Code error on Handover into sysmobtsNew10/01/2021

Associated revisions

Revision c286a110 (diff)
Added by pespin about 2 months ago

vty: Fix wrong TSC sent when activating lchan through VTY

TSC was initially set to -1 (to be picked by callee), but erased when
using designated initializers later on in the function, hence TSC being
set to 0. As a result, TSC 0 would be requested to the BTS, which may
have configured a different BSIC containing BCC!=0.

Related: OS#5219
Change-Id: I26813561ee9e7783a4004f32225f19296bd6319c

History

#1 Updated by pespin about 2 months ago

  • Description updated (diff)

#2 Updated by pespin about 2 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90

Fixed by following patch:
https://gerrit.osmocom.org/c/osmo-bsc/+/25278 vty: Fix wrong TSC sent when activating lchan through VTY

#3 Updated by pespin about 2 months ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Patch merged, resolving ticket.

#4 Updated by fixeria 18 days ago

  • Related to Bug #5244: Training Sequence Code error on Handover into sysmobts added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)