Actions
Bug #2984
closedcannot get osmo-bts-trx + fake_trx + trxcon to work
Start date:
02/22/2018
Due date:
% Done:
0%
Resolution:
Spec Reference:
Description
I'm having troubles to get osmo-bts-trx, fake_trx and trxcon to work.
- osmocomBB 928a1a42b5aebc9afda347ed1d3112c595e6bcda (318f8b78aad5961eba6b179f84e772bff759ade3 + ChangeID I3f7c83ad0624839ce42864c70396a4397b21f514 for encode_cm1)
- libosmocore f4cd228f1e238fbc824cdbdbd5eb30d99c44e079
- osmo-bts 4650c34e9423d947bd09e06482998112b978e87f (but confirmed with earlier committs yesterday, too)
FakeTRX output looks like this:
Copyright (C) 2017 by Vadim Yanitskiy <axilirator@gmail.com> License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. [i] Init CTRL interface for BTS [i] Init CTRL interface for BB [i] Init complete [i] Recv POWEROFF cmd [i] Stopping transceiver... [i] Recv POWEROFF cmd [i] Stopping transceiver... [i] Recv RXTUNE cmd [i] Recv TXTUNE cmd [i] Ignore CMD SETTSC [i] Recv POWERON CMD [i] Starting transceiver... [T] IND CLOCK 0 [i] Ignore CMD SETRXGAIN [i] Ignore CMD SETPOWER [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [i] Ignore CMD SETSLOT [T] IND CLOCK 102 [T] IND CLOCK 204 [T] IND CLOCK 306 [T] IND CLOCK 408 [i] Ignore CMD SETSLOT [T] IND CLOCK 510 [T] IND CLOCK 612 [T] IND CLOCK 714 [T] IND CLOCK 816 [i] Ignore CMD SETSLOT [T] IND CLOCK 918 [T] IND CLOCK 1020 [T] IND CLOCK 1122 [T] IND CLOCK 1224 [T] IND CLOCK 1326 [i] Ignore CMD SETSLOT [T] IND CLOCK 1428 [T] IND CLOCK 1530 [i] Recv POWEROFF cmd [i] Stopping transceiver... ^CSignal 2 received [i] Shutting down... [i] Shutdown CTRL interface for BTS [i] Shutdown CTRL interface for BB
trxcon looks like this:
Copyright (C) 2016-2017 by Vadim Yanitskiy <axilirator@gmail.com> License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. <0001> l1ctl_link.c:235 Init L1CTL link (/tmp/osmocom_l2) <0003> trx_if.c:644 Init transceiver interface <0005> sched_trx.c:112 Init scheduler <0000> trxcon.c:277 Init complete <0001> l1ctl_link.c:179 L1CTL has a new connection <0001> l1ctl.c:388 Received reset request (2) <0005> sched_trx.c:154 Reset scheduler and clock counter <0001> l1ctl.c:306 Received FBSB request (DCS1800 871) <0005> sched_trx.c:154 Reset scheduler and clock counter <0005> sched_trx.c:175 Add a new TDMA timeslot #0 <0005> sched_trx.c:244 (Re)configure TDMA timeslot #0 as BCCH+CCCH+SDCCH/4+SACCH/4 <0005> sched_trx.c:400 Activating lchan=SCH on ts=0 <0005> sched_trx.c:400 Activating lchan=BCCH on ts=0 <0005> sched_trx.c:400 Activating lchan=RACH on ts=0 <0005> sched_trx.c:400 Activating lchan=CCCH on ts=0 <0003> trx_if.c:187 No response from transceiver... <0003> trx_if.c:187 No response from transceiver... <0001> l1ctl.c:495 Received RACH request (offset=0 ra=0x17) <0003> trx_if.c:187 No response from transceiver... <0002> l1ctl_link.c:84 L1CTL has lost connection <0005> sched_trx.c:154 Reset scheduler and clock counter <0005> sched_trx.c:196 Delete TDMA timeslot #0 <0003> trx_if.c:187 No response from transceiver... <0003> trx_if.c:191 Transceiver offline <0000> trx_if.c:193 trxcon_app_fsm(main)[0x5597f6eb1ef0]{IDLE}: Event 3 not permitted
and osmo-bts-trx:
<000b> trx_if.c:240 Enqueuing TRX control command 'CMD RXTUNE 1782000' <000b> trx_if.c:240 Enqueuing TRX control command 'CMD TXTUNE 1877000' <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETTSC 7' <000b> trx_if.c:240 Enqueuing TRX control command 'CMD POWERON' <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETRXGAIN 10' <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETPOWER 0' <0006> scheduler.c:1346 Configuring multiframe with BCCH+CCCH+SDCCH/4+SACCH/4 trx=0 ts=0 <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETSLOT 0 5' <0001> oml.c:441 Sending FOM ACK. <000b> trx_if.c:450 Response message: 'RSP RXTUNE 0 1782000' <0001> oml.c:1023 OC=CHANNEL(03) INST=(00,00,00) Rx CHG ADM STATE <0001> oml.c:995 OC=CHANNEL(03) INST=(00,00,00) Rx OPSTART <0001> l1_if.c:687 bts_model_opstart: CHANNEL received <0001> oml.c:344 OC=CHANNEL INST=(00,00,00) AVAIL STATE Dependency -> OK <0001> oml.c:351 OC=CHANNEL INST=(00,00,00) OPER STATE Disabled -> Enabled <0001> oml.c:312 OC=CHANNEL INST=(00,00,00) Tx STATE CHG REP <000b> trx_if.c:450 Response message: 'RSP TXTUNE 0 1877000' <000b> trx_if.c:450 Response message: 'RSP SETTSC 0 7' <000b> trx_if.c:124 Clock indication: fn=0 <0006> scheduler_trx.c:1620 TRX Clock Ind: elapsed_us=379492839, elapsed_fn= 0, error_us=+379492839 <0006> scheduler_trx.c:1638 GSM clock jitter: -379492839 us (elapsed_fn=0) <0012> input/ipaccess.c:708 received ID get from 1234/0/0 <0000> rsl.c:249 Tx RSL RF RESource INDication <000b> trx_if.c:450 Response message: 'RSP POWERON 0' <000b> trx_if.c:450 Response message: 'RSP SETRXGAIN 0 10' <000b> trx_if.c:450 Response message: 'RSP SETPOWER 0 0' <000b> trx_if.c:450 Response message: 'RSP SETSLOT 0 0 5' <000b> trx_if.c:450 Response message: 'RSP SETSLOT 0 0 1' <000b> trx_if.c:465 Response message without command <0001> oml.c:920 OC=CHANNEL(03) INST=(00,00,01) Rx SET CHAN ATTR <0001> oml.c:982 OC=CHANNEL INST=(00,00,01) SET CHAN ATTR (TSC = 7) <0006> scheduler.c:1346 Configuring multiframe with TCH/F+SACCH trx=0 ts=1 <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETSLOT 1 1' <0001> oml.c:441 Sending FOM ACK. <0001> oml.c:1023 OC=CHANNEL(03) INST=(00,00,01) Rx CHG ADM STATE <000b> trx_if.c:450 Response message: 'RSP SETSLOT 0 1 1' <0001> oml.c:995 OC=CHANNEL(03) INST=(00,00,01) Rx OPSTART <0001> l1_if.c:687 bts_model_opstart: CHANNEL received <0001> oml.c:344 OC=CHANNEL INST=(00,00,01) AVAIL STATE Dependency -> OK <0001> oml.c:351 OC=CHANNEL INST=(00,00,01) OPER STATE Disabled -> Enabled <0001> oml.c:312 OC=CHANNEL INST=(00,00,01) Tx STATE CHG REP <0001> oml.c:920 OC=CHANNEL(03) INST=(00,00,02) Rx SET CHAN ATTR <0001> oml.c:982 OC=CHANNEL INST=(00,00,02) SET CHAN ATTR (TSC = 7) <0006> scheduler.c:1346 Configuring multiframe with TCH/F+SACCH trx=0 ts=2 <000b> trx_if.c:240 Enqueuing TRX control command 'CMD SETSLOT 2 1' <0001> oml.c:441 Sending FOM ACK. <0001> oml.c:1023 OC=CHANNEL(03) INST=(00,00,02) Rx CHG ADM STATEFrom what I can tell:
- trxcon is not receiving responses it's looking for
- osmo-bts-trx is receiving respones for commands it never sent.
All programs run on localhost, there are no patche to change port numbers or anything like that.
Files
Updated by laforge about 6 years ago
Updated by fixeria about 6 years ago
- Status changed from New to Closed
Not a bug. The problem was that fake_trx.py provides 5700-5702 ports for OsmoBTS,
and 5703-5705 for OsmocomBB/trxcon by default. This is indicated in help message
and in the wiki page: https://osmocom.org/projects/baseband/wiki/FakeTRX#Running
While trxcon by default uses 5700, so there simply was no connection.
Actions