https://osmocom.org/
https://osmocom.org/favicon.ico?1664741409
2018-11-13T19:09:24Z
Open Source Mobile Communications
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=12579
2018-11-13T19:09:24Z
fixeria
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-7 priority-2 priority-default" href="/issues/3458">Bug #3458</a>: apps/grgsm_trx: [ERROR] [STREAMER] recv packet demuxer unexpected sid 0xXX</i> added</li></ul>
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=12580
2018-11-13T20:11:14Z
pespin
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul><p>Pushed some commits to help with this kind of issue:</p>
<p>remote: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-bts/+/11765">https://gerrit.osmocom.org/#/c/osmo-bts/+/11765</a> bts-trx: trx_if: Use struct to store CTRL msg parsed responses<br />remote: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-bts/+/11766">https://gerrit.osmocom.org/#/c/osmo-bts/+/11766</a> bts-trx: setup timer once at creation time<br />remote: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-bts/+/11767">https://gerrit.osmocom.org/#/c/osmo-bts/+/11767</a> common: Implement OML for trx_set_available(1)<br />remote: <a class="external" href="https://gerrit.osmocom.org/#/c/osmo-bts/+/11768">https://gerrit.osmocom.org/#/c/osmo-bts/+/11768</a> bts-trx: Allow re-try without exit if POWERON fails in osmo-trx</p>
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=12581
2018-11-13T20:14:20Z
pespin
<ul></ul><p>I used something like this to simulate osmo-trx start failing ocasionally:<br /><pre>
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index d6ddce8..c889d88 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -241,6 +241,8 @@ void Transceiver::setSignalHandler(osmo_signal_cbfn cbfn)
* launch threads to handle sample I/O. Re-synchronize the transmit burst
* counters to the central radio clock here as well.
*/
+ #include <sys/time.h>
+
bool Transceiver::start()
{
ScopedLock lock(mLock);
@@ -257,6 +259,14 @@ bool Transceiver::start()
mLastClockUpdateTime = time;
mLatencyUpdateTime = time;
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ srandom(tv.tv_usec);
+ if(random() % 3 != 0) {
+ LOG(ALERT) << "Device failed to start";
+ return false;
+ }
+
if (!mRadioInterface->start()) {
LOG(ALERT) << "Device failed to start";
return false;
</pre></p>
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=12582
2018-11-14T11:32:58Z
pespin
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Feedback</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li></ul><p>I tried updating to UHD 3.12 using debian testing repos, but it pulls in too many deps:</p>
<pre>
# cat sources.list.d/testing.list
deb http://ftp.de.debian.org/debian/ testing main non-free contrib
deb-src http://ftp.de.debian.org/debian/ testing main non-free contrib
deb http://security.debian.org/debian-security testing/updates main contrib non-free
deb-src http://security.debian.org/debian-security testing/updates main contrib non-free
</pre>
<pre>
# cat apt.conf.d/99defaultrelease
APT::Default-Release "stable";
</pre>
<pre>
root@osmo-gsm-tester-rnd:/etc/apt/preferences.d# apt-get -t testing install uhd-host
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpython3.5-dev python3.5 python3.5-dev python3.5-minimal
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
gcc-8-base libapt-inst2.0 libapt-pkg5.0 libboost-atomic1.62-dev libboost-atomic1.62.0 libboost-chrono1.62-dev libboost-chrono1.62.0
libboost-context1.62-dev libboost-context1.62.0 libboost-coroutine1.62-dev libboost-coroutine1.62.0 libboost-date-time1.62-dev libboost-date-time1.62.0
libboost-exception1.62-dev libboost-fiber1.62-dev libboost-fiber1.62.0 libboost-filesystem1.62-dev libboost-filesystem1.62.0
libboost-graph-parallel1.62-dev libboost-graph-parallel1.62.0 libboost-graph1.62-dev libboost-graph1.62.0 libboost-iostreams1.62-dev
libboost-iostreams1.62.0 libboost-locale1.62-dev libboost-locale1.62.0 libboost-log1.62-dev libboost-log1.62.0 libboost-math1.62-dev libboost-math1.62.0
libboost-mpi-python1.62-dev libboost-mpi-python1.62.0 libboost-mpi1.62-dev libboost-mpi1.62.0 libboost-program-options1.62-dev
libboost-program-options1.62.0 libboost-python1.62-dev libboost-python1.62.0 libboost-random1.62-dev libboost-random1.62.0 libboost-regex1.62-dev
libboost-regex1.62.0 libboost-serialization1.62-dev libboost-serialization1.62.0 libboost-signals1.62-dev libboost-signals1.62.0 libboost-system1.62-dev
libboost-system1.62.0 libboost-test1.62-dev libboost-test1.62.0 libboost-thread1.62-dev libboost-thread1.62.0 libboost-timer1.62-dev libboost-timer1.62.0
libboost-type-erasure1.62-dev libboost-type-erasure1.62.0 libboost-wave1.62-dev libboost-wave1.62.0 libboost1.62-dev libc-bin libc-dev-bin libc-l10n libc6
libc6-dbg libc6-dev libevent-2.1-6 libevent-core-2.1-6 libevent-pthreads-2.1-6 libfabric1 libgfortran5 libhwloc-dev libhwloc5 libicu-le-hb0 libicu60
libncurses6 libncursesw6 libopenmpi3 libpmix2 libpsm2-2 libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal
libpython3.6-stdlib libssl-dev libssl1.1 libstdc++6 libtinfo6 libuhd3.12.0 libzstd1 locales python3 python3-apt python3-cffi-backend python3-crypto
python3-dbus python3-dev python3-distutils python3-gi python3-lib2to3 python3-markupsafe python3-minimal python3-yaml python3.6 python3.6-dev
python3.6-minimal
Suggested packages:
libboost1.62-doc gccxml libmpfrc++-dev libntl-dev glibc-doc libhwloc-contrib-plugins gnuradio python3-doc python3-tk python3-venv python3-apt-dbg
python-apt-doc python-crypto-doc python-dbus-doc python3-dbus-dbg python3.6-venv python3.6-doc
Recommended packages:
apt
The following NEW packages will be installed:
gcc-8-base libevent-2.1-6 libevent-core-2.1-6 libevent-pthreads-2.1-6 libgfortran5 libicu-le-hb0 libicu60 libncurses6 libncursesw6 libopenmpi3 libpmix2
libpsm2-2 libpython3.6 libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib libtinfo6 libuhd3.12.0 libzstd1 python3-distutils python3-lib2to3
python3.6 python3.6-dev python3.6-minimal
The following packages will be upgraded:
libapt-inst2.0 libapt-pkg5.0 libboost-atomic1.62-dev libboost-atomic1.62.0 libboost-chrono1.62-dev libboost-chrono1.62.0 libboost-context1.62-dev
libboost-context1.62.0 libboost-coroutine1.62-dev libboost-coroutine1.62.0 libboost-date-time1.62-dev libboost-date-time1.62.0 libboost-exception1.62-dev
libboost-fiber1.62-dev libboost-fiber1.62.0 libboost-filesystem1.62-dev libboost-filesystem1.62.0 libboost-graph-parallel1.62-dev
libboost-graph-parallel1.62.0 libboost-graph1.62-dev libboost-graph1.62.0 libboost-iostreams1.62-dev libboost-iostreams1.62.0 libboost-locale1.62-dev
libboost-locale1.62.0 libboost-log1.62-dev libboost-log1.62.0 libboost-math1.62-dev libboost-math1.62.0 libboost-mpi-python1.62-dev
libboost-mpi-python1.62.0 libboost-mpi1.62-dev libboost-mpi1.62.0 libboost-program-options1.62-dev libboost-program-options1.62.0 libboost-python1.62-dev
libboost-python1.62.0 libboost-random1.62-dev libboost-random1.62.0 libboost-regex1.62-dev libboost-regex1.62.0 libboost-serialization1.62-dev
libboost-serialization1.62.0 libboost-signals1.62-dev libboost-signals1.62.0 libboost-system1.62-dev libboost-system1.62.0 libboost-test1.62-dev
libboost-test1.62.0 libboost-thread1.62-dev libboost-thread1.62.0 libboost-timer1.62-dev libboost-timer1.62.0 libboost-type-erasure1.62-dev
libboost-type-erasure1.62.0 libboost-wave1.62-dev libboost-wave1.62.0 libboost1.62-dev libc-bin libc-dev-bin libc-l10n libc6 libc6-dbg libc6-dev libfabric1
libhwloc-dev libhwloc5 libpython3-dev libpython3-stdlib libssl-dev libssl1.1 libstdc++6 locales python3 python3-apt python3-cffi-backend python3-crypto
python3-dbus python3-dev python3-gi python3-markupsafe python3-minimal python3-yaml uhd-host
</pre>
<p>But anyway, hopefully patches to osmo-bts-trx should be enough to get TTCN3 tests passing when this kind of issue occurs.</p>
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=14381
2019-05-09T14:19:46Z
tnt
<ul></ul><p>This looks very very much like the improper reset bug of UHD.</p>
<p>Use newer UHD or a fpga image that has the workaround. Nothing that can really be done in osmo-trx.</p>
OsmoTRX - Bug #3692: osmo-trx-uhd fails to start with UHD "recv packet demuxer unexpected sid"
https://osmocom.org/issues/3692?journal_id=16044
2019-09-20T10:31:30Z
pespin
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>I haven't seen this bug for a while, since we started using newer debian and UHD (3.14). Closing the ticket.</p>