lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

February 2026

  • 1 participants
  • 1500 discussions
[M] Change in osmo-trx[master]: build: install common/GSM/transceiver libraries for emscripten and ad...
by Timur Davydov 28 Feb '26

28 Feb '26
Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email ) Change subject: build: install common/GSM/transceiver libraries for emscripten and add pkg-config files ...................................................................... build: install common/GSM/transceiver libraries for emscripten and add pkg-config files Expose previously internal libs (libcommon, libGSM, libtransceiver_common) when building with emscripten, install headers and generate .pc files. Keep them noinst for native builds. Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c --- M .gitignore M CommonLibs/Makefile.am M GSM/Makefile.am M Makefile.am M Transceiver52M/Makefile.am M Transceiver52M/arch/common/Makefile.am M configure.ac A libGSM.pc.in A libcommon.pc.in A libtransceiver_common.pc.in 10 files changed, 124 insertions(+), 20 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/43/42243/1 diff --git a/.gitignore b/.gitignore index fc567db..1995586 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ *.o *.lo *.la +*.pc +*.wasm +*.out.js Transceiver52M/osmo-trx-uhd Transceiver52M/osmo-trx-usrp1 Transceiver52M/osmo-trx-lms @@ -35,6 +38,7 @@ # automake/autoconf *.in +!*.pc.in .deps .libs .dirstamp diff --git a/CommonLibs/Makefile.am b/CommonLibs/Makefile.am index 4a0652d..477f416 100644 --- a/CommonLibs/Makefile.am +++ b/CommonLibs/Makefile.am @@ -25,8 +25,6 @@ AM_CXXFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) -noinst_LTLIBRARIES = libcommon.la - libcommon_la_SOURCES = \ BitVector.cpp \ LinkedLists.cpp \ @@ -37,14 +35,8 @@ trx_rate_ctr.cpp \ trx_vty.c \ debug.c -libcommon_la_LIBADD = \ - $(LIBOSMOCORE_LIBS) \ - $(LIBOSMOCTRL_LIBS) \ - $(LIBOSMOVTY_LIBS) \ - -lpthread \ - $(NULL) -noinst_HEADERS = \ +common_headers = \ BitVector.h \ PRBS.h \ Interthread.h \ @@ -59,3 +51,21 @@ debug.h \ osmo_signal.h \ config_defs.h + +if HAVE_EMSCRIPTEN +lib_LTLIBRARIES = libcommon.la +include_HEADERS = $(common_headers) + +libcommon_la_LDFLAGS = -rpath $(libdir) +else +noinst_LTLIBRARIES = libcommon.la +noinst_HEADERS = $(common_headers) + +libcommon_la_LIBADD = \ + $(LIBOSMOCORE_LIBS) \ + $(LIBOSMOCTRL_LIBS) \ + $(LIBOSMOVTY_LIBS) \ + -lpthread \ + $(NULL) +endif + diff --git a/GSM/Makefile.am b/GSM/Makefile.am index a2f5db0..4a6ae77 100644 --- a/GSM/Makefile.am +++ b/GSM/Makefile.am @@ -23,10 +23,19 @@ AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) #AM_CXXFLAGS = -O2 -g -noinst_LTLIBRARIES = libGSM.la - libGSM_la_SOURCES = \ GSMCommon.cpp -noinst_HEADERS = \ +gsm_headers = \ GSMCommon.h + +if HAVE_EMSCRIPTEN +lib_LTLIBRARIES = libGSM.la +include_HEADERS = $(gsm_headers) + +libGSM_la_LDFLAGS = -rpath $(libdir) +else +noinst_LTLIBRARIES = libGSM.la +noinst_HEADERS = $(gsm_headers) +endif + diff --git a/Makefile.am b/Makefile.am index 33d8bfa..d7eccc8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -43,6 +43,14 @@ doc \ $(NULL) +if HAVE_EMSCRIPTEN +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = \ + libcommon.pc \ + libGSM.pc \ + libtransceiver_common.pc +endif + BUILT_SOURCES = $(top_srcdir)/.version $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index 0b63b16..5b1c945 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -27,8 +27,6 @@ AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) AM_CFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) -noinst_LTLIBRARIES = libtransceiver_common.la - COMMON_SOURCES = \ radioInterface.cpp \ radioVector.cpp \ @@ -50,7 +48,7 @@ radioInterfaceResamp.cpp \ radioInterfaceMulti.cpp -noinst_HEADERS = \ +transceiver_headers = \ Complex.h \ radioInterface.h \ radioVector.h \ @@ -100,7 +98,7 @@ ms/l1ctl_server_cb.cpp \ ms/ms_trxcon_if.cpp -noinst_HEADERS += \ +transceiver_headers += \ ms/ms.h \ ms/threadsched.h \ ms/bladerf_specific.h \ @@ -116,6 +114,16 @@ endif +if HAVE_EMSCRIPTEN +lib_LTLIBRARIES = libtransceiver_common.la +include_HEADERS = $(transceiver_headers) + +libtransceiver_common_la_LDFLAGS = -rpath $(libdir) +else +noinst_LTLIBRARIES = libtransceiver_common.la +noinst_HEADERS = $(transceiver_headers) +endif + bin_PROGRAMS = if DEVICE_UHD diff --git a/Transceiver52M/arch/common/Makefile.am b/Transceiver52M/arch/common/Makefile.am index 6b37906..c0ddd7b 100644 --- a/Transceiver52M/arch/common/Makefile.am +++ b/Transceiver52M/arch/common/Makefile.am @@ -11,5 +11,8 @@ libarch_common_la_SOURCES = \ convolve_base.c \ - convert_base.c \ - fft.c + convert_base.c + +if NOT_HAVE_EMSCRIPTEN + libarch_common_la_SOURCES += fft.c +endif diff --git a/configure.ac b/configure.ac index ff73d09..3e131c4 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,19 @@ AC_PATH_PROG([RM_PROG], [rm]) AC_LANG([C++]) +dnl Detect emscripten compiler +case "$CC" in +*emcc*) + emscripten=yes + ;; +*) + emscripten=no + ;; +esac +AM_CONDITIONAL(HAVE_EMSCRIPTEN, test "x$emscripten" = "xyes") +AM_CONDITIONAL(NOT_HAVE_EMSCRIPTEN, test "x$emscripten" != "xyes") +AC_SUBST([HAVE_EMSCRIPTEN], [$emscripten]) + dnl patching ${archive_cmds} to affect generation of file "libtool" to fix linking with clang AS_CASE(["$LD"],[*clang*], [AS_CASE(["${host_os}"], @@ -66,8 +79,13 @@ PKG_PROG_PKG_CONFIG([0.20]) AC_LIBTOOL_WIN32_DLL -AC_ENABLE_SHARED dnl do build shared libraries -AC_DISABLE_STATIC dnl don't build static libraries +if test "x$emscripten" = "xyes"; then + AC_DISABLE_SHARED dnl don't build shared libraries (emscripten) + AC_ENABLE_STATIC dnl do build static libraries (emscripten) +else + AC_ENABLE_SHARED dnl do build shared libraries + AC_DISABLE_STATIC dnl don't build static libraries +fi AC_PROG_LIBTOOL dnl Checks for header files. @@ -285,8 +303,10 @@ AM_CONDITIONAL(ARCH_ARM_A15, [test "x$with_neon_vfpv4" = "xyes"]) AM_CONDITIONAL(ENABLE_MS_TRX, [test "x$with_mstrx" = "xyes"]) +if test "x$emscripten" != "xyes"; then PKG_CHECK_MODULES(LIBUSB, libusb-1.0) PKG_CHECK_MODULES(FFTWF, fftw3f) +fi # Generate manuals AC_ARG_ENABLE(manuals, @@ -354,6 +374,9 @@ dnl Output files AC_CONFIG_FILES([\ + libcommon.pc \ + libGSM.pc \ + libtransceiver_common.pc \ Makefile \ CommonLibs/Makefile \ GSM/Makefile \ diff --git a/libGSM.pc.in b/libGSM.pc.in new file mode 100644 index 0000000..d877ca6 --- /dev/null +++ b/libGSM.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Osmocom TRX GSM Library +Description: GSM helpers for osmo-trx +Version: @VERSION@ +Requires: +Requires.private: +Libs: -L${libdir} -lGSM +Libs.private: +Cflags: -I${includedir}/ diff --git a/libcommon.pc.in b/libcommon.pc.in new file mode 100644 index 0000000..b169021 --- /dev/null +++ b/libcommon.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Osmocom TRX Common Library +Description: Common utility library for osmo-trx +Version: @VERSION@ +Requires: +Requires.private: libosmocore libosmoctrl libosmovty +Libs: -L${libdir} -lcommon +Libs.private: @LIBOSMOCORE_LIBS@ @LIBOSMOCTRL_LIBS@ @LIBOSMOVTY_LIBS@ @PTHREAD_LIBS@ +Cflags: -I${includedir}/ @LIBOSMOCORE_CFLAGS@ @LIBOSMOCTRL_CFLAGS@ @LIBOSMOVTY_CFLAGS@ @PTHREAD_CFLAGS@ diff --git a/libtransceiver_common.pc.in b/libtransceiver_common.pc.in new file mode 100644 index 0000000..5da57d0 --- /dev/null +++ b/libtransceiver_common.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Osmocom TRX Transceiver Common Library +Description: Transceiver common code for osmo-trx +Version: @VERSION@ +Requires: +Requires.private: libosmocore libosmoctrl libosmovty +Libs: -L${libdir} -ltransceiver_common +Libs.private: @LIBOSMOCORE_LIBS@ @LIBOSMOCTRL_LIBS@ @LIBOSMOVTY_LIBS@ @PTHREAD_LIBS@ +Cflags: -I${includedir}/ @LIBOSMOCORE_CFLAGS@ @LIBOSMOCTRL_CFLAGS@ @LIBOSMOVTY_CFLAGS@ @PTHREAD_CFLAGS@ -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42243?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I2495c5b5c79f2fe74bef83902058e1d2207c1f3c Gerrit-Change-Number: 42243 Gerrit-PatchSet: 1 Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
1 0
0 0
[XL] Change in osmo-trx[master]: feat(usdr): add USDR backend support (osmo-trx-usdr)
by Timur Davydov 28 Feb '26

28 Feb '26
Attention is currently required from: Hoernchen, fixeria, laforge, pespin. Timur Davydov has posted comments on this change by Timur Davydov. ( https://gerrit.osmocom.org/c/osmo-trx/+/42198?usp=email ) Change subject: feat(usdr): add USDR backend support (osmo-trx-usdr) ...................................................................... Patch Set 5: (30 comments) File Transceiver52M/device/usdr/USDRDevice.h: https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/d686e44c_b4e80738?usp… : PS4, Line 12: This program is distributed in the hope that it will be useful, > please keep with the "* " at the start of the line. Added the `*` prefix. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/31d6048c_a4a4a89c?usp… : PS4, Line 46: struct DeviceParameters { > Can we use "struct dev_desc" like in all other devices I'm seeing? Yes, replaced with `struct dev_desc` for consistency with the other devices. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/fc8aab80_928d031a?usp… : PS4, Line 48: * time correction for TX timestamp, in seconds, to align it with RX timestamp, which is needed to achieve correct > This still look like >120 chars? Fixed, wrapped to stay under 120 chars. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/a1467606_bcf1f64c?usp… : PS4, Line 54: using DeviceParametersMap = std::map<std::string, DeviceParameters>; > Can we use dev_map_t like all other devices I'm seeing? Yes, replaced with `dev_map_t` for consistency with the other devices. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/971f01a9_f8c3ac66?usp… : PS4, Line 86: public: > Keep order in all other device classes, where public goes first. Reordered the class members to match the structure used in the other device classes (public section first). https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/695fe674_e665d97f?usp… : PS4, Line 115: /** > trailing whitespace Removed trailing whitespace. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/3176a15a_9aec5aa0?usp… : PS4, Line 116: * @brief Read samples from the USDR. > imho no need to re-add all the API documentation here for an implemenetation of a virtual function. […] Ack. I’ve removed the duplicated documentation from the implementation and submitted a separate patch improving the API documentation in `radioDevice.h` https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/5bd3f95d_c0921444?usp… : PS4, Line 126: bool *underrun = nullptr); > align to firs tchar in "(" Aligned as suggested. File Transceiver52M/device/usdr/USDRDevice.cpp: https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/93114d84_aadb7c43?usp… : PS4, Line 12: This program is free software: you can redistribute it and/or modify > Please keep "* " at the start and same indentation as above. Added the `*` prefix. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/c5c368ad_97b29b50?usp… : PS4, Line 84: if (res) { > tbh I don't like exceptions being added here for no good reason. […] Removed the exceptions, switched to return code checking for consistency with other devices. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/7749812b_4102ad38?usp… : PS4, Line 191: const int loglevel = parse_config(args, "loglevel", 3); > So AFAIU "loglevel" is not something one really the low level library […] I’ve added a logging callback similar to the other backends. However, I’d prefer not to enable full debug logging inside the low-level library and then filter everything in the callback, as this would unnecessarily spam the logging system. For now, I kept the driver parameter loglevel, so the library only emits messages up to the configured level. If VTY-based control is required, loglevel can be set to 9. Alternatively, I can implement updating the driver loglevel dynamically from VTY (if that’s feasible in this context). https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/52da6059_d49ab232?usp… : PS4, Line 199: const double rate = 0.27083333333e6 * tx_sps; > where does this magic number come from? Can we have it in a define with some comment? It comes from 1083333.33333 sps / 4. In fact, this corresponds to the GSM symbol rate, and I already found a `GSMRATE` constant defined. I replaced the magic number with `GSMRATE` https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/3e69f7cb_576b7bb0?usp… : PS4, Line 203: uint64_t val; > Try putting all variable declarations at the top of the function. I've moved the variable declarations to the top of the function, except for const ones in some functions. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/8cb3406d_dc3cceb3?usp… : PS4, Line 221: usdr_dme_set_uint_exception(dev, "/dm/sdr/0/tx/gain", 0); > Sounds like we may want to have all these paths applied as defines and macros instead of hardcoding […] Added the suggested macros and replaced the hardcoded paths accordingly. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/2c3fa475_27e25b22?usp… : PS4, Line 228: const char* fmt = "ci16"; > this looks like a candaidate for a define too. or a const to be put at the start of the file. Moved it to a #define at the top of the file. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/98218450_2defb621?usp… : PS4, Line 246: usdr_dms_sync_exception(dev, "rx", ped.size(), ped.data()); > Same, we should imho avoid all these hardcoded strings. Replaced the remaining hardcoded strings with defines. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/5c4d9331_3e37cd73?usp… : PS4, Line 260: if (dev) { > early return: […] Implemented as suggested. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/920a6e31_3e2cd58a?usp… : PS4, Line 269: return false; > LOGC(DDEV, ERR) << "Device already started"; Added an error message. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/429df755_eaaa6db0?usp… : PS4, Line 296: return !started; > return true; Implemented as suggested. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/43edea18_c727c50a?usp… : PS4, Line 327: double USDRDevice::setTxGain(double dB, size_t chan) > This function afacit is not used anywhere not required by base class? […] Removed all unused functions. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/c0efb466_353bd4bb?usp… : PS4, Line 382: try { > I'd say better to do as other backends are doing: […] Reworked it to follow the other backends: values are now cached per channel in arrays (rx_gains, tx_gains, rx_freqs, tx_freqs, etc.). https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/d7e4dd74_21a7f0a4?usp… : PS4, Line 392: TIMESTAMP timestamp, bool *underrun) > wrong indentation Fixed the indentation. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/ae31405e_b30f2fab?usp… : PS4, Line 394: if (!started) > Please look at other backends and try to mimic what they are doing, eg. checking […] Replaced the check with the same bufs.size() != chans validation as used in the other backends, for consistency. https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/11759752_811e7ff2?usp… : PS4, Line 421: bool *underrun, TIMESTAMP timestamp) > wrong indentation Fixed https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/374673e2_814771bb?usp… : PS4, Line 475: std::string USDRDevice::getTxAntenna(size_t chan ) > extra space at the end. Removed https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/ab9b85b5_48dbb42b?usp… : PS4, Line 492: return GSM::Time(6,7); > missing space between "," and "7". Added space https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/7fc27f08_a2f528bf?usp… : PS4, Line 610: return new USDRDevice(iface, cfg); > Do extra checks here for this device in provided cfg, see LMSDevice. […] I don’t think additional device-specific checks are needed here. I’ve only added a basic validity check for the pointer to ensure it’s not null. File debian/osmo-trx-usdr.install: https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/a100251b_a999f647?usp… : PS4, Line 3: /usr/bin/osmo-trx-usdr > why do some start with / and some not? It surprised me as well. I followed the existing pattern used in other Debian install files in this repository. For example: - debian/osmo-trx-uhd.install - debian/osmo-trx-lms.install - debian/osmo-trx-usrp1.install - debian/osmo-trx-ipc.install File doc/manuals/chapters/trx-backends.adoc: https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/88cf39db_2ca0cc80?usp… : PS3, Line 86: where multiple small SDRs are combined to present one or more TRX instances > > Multi-TRX deployments are achieved by running multiple osmo-trx-usdr instances, typically one per […] Updated the documentation according to your remarks. File doc/manuals/chapters/trx-devices.adoc: https://gerrit.osmocom.org/c/osmo-trx/+/42198/comment/c9688264_bc0ce831?usp… : PS4, Line 127: instances. The current _osmo-trx-usdr_ backend operates in single-channel mode. > missing new line at the end of file. Added the missing newline at the end of the file. -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42198?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I5d1d25921514954c4929ae6e7352168b3ceb05df Gerrit-Change-Number: 42198 Gerrit-PatchSet: 5 Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: Hoernchen <ewild(a)sysmocom.de> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-CC: osmith <osmith(a)sysmocom.de> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Sat, 28 Feb 2026 21:19:46 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: Timur Davydov <dtv.comp(a)gmail.com>
1 0
0 0
[XL] Change in osmo-trx[master]: feat(usdr): add USDR backend support (osmo-trx-usdr)
by Timur Davydov 28 Feb '26

28 Feb '26
Attention is currently required from: Hoernchen, Timur Davydov, fixeria, laforge. Hello Jenkins Builder, pespin, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-trx/+/42198?usp=email to look at the new patch set (#5). The following approvals got outdated and were removed: Verified+1 by Jenkins Builder Change subject: feat(usdr): add USDR backend support (osmo-trx-usdr) ...................................................................... feat(usdr): add USDR backend support (osmo-trx-usdr) - Implement USDRDevice backend for Transceiver52M - Add --with-usdr configure option and build integration - Add systemd service unit (osmo-trx-usdr.service) - Add Debian packaging files for osmo-trx-usdr - Provide example configuration file - Extend manuals and device documentation with USDR backend section Change-Id: I5d1d25921514954c4929ae6e7352168b3ceb05df --- M .gitignore M Transceiver52M/Makefile.am M Transceiver52M/device/Makefile.am A Transceiver52M/device/usdr/Makefile.am A Transceiver52M/device/usdr/USDRDevice.cpp A Transceiver52M/device/usdr/USDRDevice.h M configure.ac M contrib/systemd/Makefile.am A contrib/systemd/osmo-trx-usdr.service A debian/osmo-trx-usdr.install A debian/osmo-trx-usdr.postinst M doc/examples/Makefile.am A doc/examples/osmo-trx-usdr/osmo-trx-usdr.cfg M doc/manuals/Makefile.am M doc/manuals/chapters/trx-backends.adoc M doc/manuals/chapters/trx-devices.adoc 16 files changed, 1,025 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/98/42198/5 -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42198?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I5d1d25921514954c4929ae6e7352168b3ceb05df Gerrit-Change-Number: 42198 Gerrit-PatchSet: 5 Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-CC: Hoernchen <ewild(a)sysmocom.de> Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-CC: osmith <osmith(a)sysmocom.de> Gerrit-Attention: Hoernchen <ewild(a)sysmocom.de> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: Timur Davydov <dtv.comp(a)gmail.com>
1 0
0 0
[M] Change in osmo-trx[master]: radio: improve API documentation in RadioDevice
by Timur Davydov 28 Feb '26

28 Feb '26
Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/42242?usp=email ) Change subject: radio: improve API documentation in RadioDevice ...................................................................... radio: improve API documentation in RadioDevice Change-Id: I7b41c549d743ad180a1ddcd8c0313e1003860070 --- M Transceiver52M/device/common/radioDevice.h 1 file changed, 161 insertions(+), 38 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/42/42242/1 diff --git a/Transceiver52M/device/common/radioDevice.h b/Transceiver52M/device/common/radioDevice.h index 5c962d1..c2c4ba1 100644 --- a/Transceiver52M/device/common/radioDevice.h +++ b/Transceiver52M/device/common/radioDevice.h @@ -53,105 +53,228 @@ static RadioDevice *make(InterfaceType type, const struct trx_cfg *cfg); - /** Initialize the USRP */ + /** + * @brief Open the radio device and initialize it with the provided configuration + * @return NORMAL == 0 if the radio device was successfully opened and initialized, -1 otherwise + */ virtual int open() = 0; virtual ~RadioDevice() { } - /** Start the USRP */ + /** + * @brief Start the radio device + * @return true if the radio was successfully started, false otherwise + */ virtual bool start()=0; - /** Stop the USRP */ + /** + * @brief Stop the radio device + * @return true if the radio device was successfully stopped, false otherwise + */ virtual bool stop()=0; - /** Get the Tx window type */ + /** + * @brief Get the type of the transmit window, which can be one of TX_WINDOW_USRP1, TX_WINDOW_FIXED, + * or TX_WINDOW_LMS1. + * The transmit window type determines how the radio device handles the timing of transmitted samples. + * @return The type of the transmit window used by the radio device + */ virtual enum TxWindowType getWindowType()=0; /** - Read samples from the radio. - @param buf preallocated buf to contain read result - @param len number of samples desired - @param overrun Set if read buffer has been overrun, e.g. data not being read fast enough - @param timestamp The timestamp of the first samples to be read - @param underrun Set if radio does not have data to transmit, e.g. data not being sent fast enough - @return The number of samples actually read - */ + * @brief Read samples from the radio device. + * @param buf preallocated buf to contain read result + * @param len number of samples desired + * @param overrun Set if read buffer has been overrun, e.g. data not being read fast enough + * @param timestamp The timestamp of the first samples to be read + * @param underrun Set if radio device does not have data to transmit, e.g. data not being sent fast enough + * @return The number of samples actually read + */ virtual int readSamples(std::vector<short *> &bufs, int len, bool *overrun, TIMESTAMP timestamp = 0xffffffff, bool *underrun = 0) = 0; + /** - Write samples to the radio. - @param buf Contains the data to be written. - @param len number of samples to write. - @param underrun Set if radio does not have data to transmit, e.g. data not being sent fast enough - @param timestamp The timestamp of the first sample of the data buffer. - @return The number of samples actually written - */ + * @brief Write samples to the radio device. + * @param buf Contains the data to be written. + * @param len number of samples to write. + * @param underrun Set if radio device does not have data to transmit, e.g. data not being sent fast enough + * @param timestamp The timestamp of the first sample of the data buffer. + * @return The number of samples actually written + */ virtual int writeSamples(std::vector<short *> &bufs, int len, bool *underrun, TIMESTAMP timestamp) = 0; - /** Update the alignment between the read and write timestamps */ + /** + * @brief Update the alignment between the read and write timestamps + * @param timestamp The timestamp to use for alignment + * @return true if the alignment was successfully updated, false otherwise + */ virtual bool updateAlignment(TIMESTAMP timestamp)=0; - /** Set the transmitter frequency */ + /** + * @brief Set the transmitter frequency + * @param wFreq The frequency to set + * @param chan The channel to set the frequency for + * @return true if the transmitter frequency was successfully set, false otherwise + */ virtual bool setTxFreq(double wFreq, size_t chan = 0) = 0; - /** Set the receiver frequency */ + /** + * @brief Set the receiver frequency + * @param wFreq The frequency to set + * @param chan The channel to set the frequency for + * @return true if the receiver frequency was successfully set, false otherwise + */ virtual bool setRxFreq(double wFreq, size_t chan = 0) = 0; - /** Returns the starting write Timestamp*/ + /** + * @brief Get the initial write timestamp, which is the timestamp of the first sample to be transmitted + * after starting the device. + * @return The initial write timestamp + */ virtual TIMESTAMP initialWriteTimestamp(void)=0; - /** Returns the starting read Timestamp*/ + /** + * @brief Get the initial read timestamp, i.e. the timestamp of the first received sample + * after starting the device. + * @return The initial read timestamp + */ virtual TIMESTAMP initialReadTimestamp(void)=0; - /** returns the full-scale transmit amplitude **/ + /** + * @brief Returns the full-scale transmit amplitude + * Usually is set to half the ADC range multiplied by 1/√2 + * (i.e. ADC_range/2 * 1/√2 ≈ ADC_range/2 * 0.70710678) to avoid clipping for complex samples I + jQ. + * With |I|, |Q| <= 1/√2 the magnitude I^2 + Q^2 <= 1. + * @return The full-scale transmit amplitude + */ virtual double fullScaleInputValue()=0; - /** returns the full-scale receive amplitude **/ + /** + * @brief Returns the full-scale receive amplitude + * Usually is set to half of ADC range, e.g. 32767 for a 16-bit ADC. + * @return The full-scale receive amplitude + */ virtual double fullScaleOutputValue()=0; - /** sets the receive chan gain, returns the gain setting **/ + /** + * @brief Set the receive channel gain + * @param dB The gain value in dB + * @param chan The channel to set the gain for + * @return The actual gain setting after applying the change + */ virtual double setRxGain(double dB, size_t chan = 0) = 0; - /** gets the current receive gain **/ + /** + * @brief Get the current receive channel gain + * @param chan The channel to get the gain for + * @return The current gain setting + */ virtual double getRxGain(size_t chan = 0) = 0; - /** return maximum Rx Gain **/ + /** + * @brief Get the maximum Rx Gain + * @return The maximum Rx Gain + */ virtual double maxRxGain(void) = 0; - /** return minimum Rx Gain **/ + /** + * @brief Get the minimum Rx Gain + * @return The minimum Rx Gain + */ virtual double minRxGain(void) = 0; - /** return base RSSI offset to apply for received samples **/ + /** + * @brief Get the RSSI offset for a given channel to apply for received samples + * @param chan The channel to get the RSSI offset for + * @return The RSSI offset for the given channel + */ virtual double rssiOffset(size_t chan) = 0; - /** returns the Nominal transmit output power of the transceiver in dBm, negative on error **/ + /** + * @brief Get the nominal transmit output power for a given channel + * @param chan The channel to get the nominal transmit output power for + * @return The nominal transmit output power in dBm, negative on error + */ virtual int getNominalTxPower(size_t chan = 0) = 0; - /** sets the RX path to use, returns true if successful and false otherwise */ + /** + * @brief Sets the RX path to use + * @param ant The antenna to set + * @param chan The channel to set the antenna for + * @return True if successful, false otherwise + */ virtual bool setRxAntenna(const std::string &ant, size_t chan = 0) = 0; - /** return the used RX path */ + /** + * @brief Get the used RX path + * @param chan The channel to get the antenna for + * @return The current RX path + */ virtual std::string getRxAntenna(size_t chan = 0) = 0; - /** sets the RX path to use, returns true if successful and false otherwise */ + /** + * @brief Sets the TX path to use + * @param ant The antenna to set + * @param chan The channel to set the antenna for + * @return True if successful, false otherwise + */ virtual bool setTxAntenna(const std::string &ant, size_t chan = 0) = 0; - /** return the used RX path */ + /** + * @brief Get the used TX path + * @param chan The channel to get the antenna for + * @return The current TX path + */ virtual std::string getTxAntenna(size_t chan = 0) = 0; - /** return whether user drives synchronization of Tx/Rx of USRP */ + /** + * @brief Return whether user drives synchronization of Tx/Rx + * @return true if user drives synchronization of Tx/Rx, false otherwise + */ virtual bool requiresRadioAlign() = 0; - /** Minimum latency that the device can achieve */ + /** + * @brief Return the minimum latency the radio device can achieve + * @return The minimum latency + */ virtual GSM::Time minLatency() = 0; /** Return internal status values */ + + /** + * @brief Get the transceiver frequency + * @param chan The channel to get the frequency for + * @return The current transceiver frequency + */ virtual double getTxFreq(size_t chan = 0) = 0; + + /** + * @brief Get the receiver frequency + * @param chan The channel to get the frequency for + * @return The current receiver frequency + */ virtual double getRxFreq(size_t chan = 0) = 0; + + /** + * @brief Return actual sample rate of the radio device + * @return The current sample rate + */ virtual double getSampleRate()=0; + /** + * @brief Set the power attenuation for a given channel + * @param atten The attenuation value in dB + * @param chan The channel to set the attenuation for + * @return The actual attenuation setting after applying the change + */ virtual double setPowerAttenuation(int atten, size_t chan) = 0; + + /** + * @brief Get the power attenuation for a given channel + * @param chan The channel to get the attenuation for + * @return The current attenuation setting + */ virtual double getPowerAttenuation(size_t chan=0) = 0; protected: -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/42242?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: I7b41c549d743ad180a1ddcd8c0313e1003860070 Gerrit-Change-Number: 42242 Gerrit-PatchSet: 1 Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
1 0
0 0
[S] Change in libosmo-asn1-tcap[master]: Use talloc to allocate asn1c decoded structs
by fixeria 28 Feb '26

28 Feb '26
Attention is currently required from: daniel, lynxis lazus, osmith, pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42219?usp=email ) Change subject: Use talloc to allocate asn1c decoded structs ...................................................................... Patch Set 4: Code-Review+1 (1 comment) Patchset: PS4: Giving others a chance to take a look. -- To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42219?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-asn1-tcap Gerrit-Branch: master Gerrit-Change-Id: I6d885527caa5b60011b4fac341b93026ab1833d9 Gerrit-Change-Number: 42219 Gerrit-PatchSet: 4 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: daniel <dwillmann(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Sat, 28 Feb 2026 18:17:38 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in libosmo-asn1-tcap[master]: Introduce API osmo_asn1_tcap_TCMessage_decode()
by fixeria 28 Feb '26

28 Feb '26
Attention is currently required from: pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42238?usp=email ) Change subject: Introduce API osmo_asn1_tcap_TCMessage_decode() ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42238?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-asn1-tcap Gerrit-Branch: master Gerrit-Change-Id: I02923afb3936a1acf6643def27528e35e4b03e86 Gerrit-Change-Number: 42238 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Sat, 28 Feb 2026 18:11:16 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in libosmo-asn1-tcap[master]: Add README.md
by fixeria 28 Feb '26

28 Feb '26
Attention is currently required from: osmith, pespin. fixeria has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42216?usp=email ) Change subject: Add README.md ...................................................................... Patch Set 2: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42216?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-asn1-tcap Gerrit-Branch: master Gerrit-Change-Id: Ie3fa506cb9b40992cebe6942ea833a2e49ba2680 Gerrit-Change-Number: 42216 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Sat, 28 Feb 2026 17:39:24 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmo-sigtran[master]: Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode()
by laforge 28 Feb '26

28 Feb '26
Attention is currently required from: pespin. laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/42239?usp=email ) Change subject: Use new libosmo-asn1-tcap API osmo_asn1_tcap_TCMessage_decode() ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/42239?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: Iebeb2808c54c5b82026a1b31d985aa73f602b42a Gerrit-Change-Number: 42239 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Sat, 28 Feb 2026 13:11:56 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[M] Change in libosmo-asn1-tcap[master]: Add README.md
by laforge 28 Feb '26

28 Feb '26
Attention is currently required from: fixeria, osmith, pespin. laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42216?usp=email ) Change subject: Add README.md ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42216?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-asn1-tcap Gerrit-Branch: master Gerrit-Change-Id: Ie3fa506cb9b40992cebe6942ea833a2e49ba2680 Gerrit-Change-Number: 42216 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Sat, 28 Feb 2026 13:11:38 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in libosmo-asn1-tcap[master]: Use talloc to allocate asn1c decoded structs
by laforge 28 Feb '26

28 Feb '26
Attention is currently required from: daniel, fixeria, lynxis lazus, osmith, pespin. laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42219?usp=email ) Change subject: Use talloc to allocate asn1c decoded structs ...................................................................... Patch Set 4: Code-Review+1 (1 comment) File src/tcap.c: https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42219/comment/9a5b4d1d_2e3… : PS2, Line 29: vo > @laforge@osmocom.org see https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42238 and […] Done -- To view, visit https://gerrit.osmocom.org/c/libosmo-asn1-tcap/+/42219?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmo-asn1-tcap Gerrit-Branch: master Gerrit-Change-Id: I6d885527caa5b60011b4fac341b93026ab1833d9 Gerrit-Change-Number: 42219 Gerrit-PatchSet: 4 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de> Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Attention: daniel <dwillmann(a)sysmocom.de> Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu> Gerrit-Comment-Date: Sat, 28 Feb 2026 13:11:21 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: laforge <laforge(a)osmocom.org> Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
1 0
0 0
  • ← Newer
  • 1
  • 2
  • 3
  • 4
  • ...
  • 150
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.