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

January 2025

  • 1 participants
  • 1491 discussions
[S] Change in pysim[master]: cards: Avoid exception seen with (some) GSM-R SIM cards
by laforge 12 Jan '25

12 Jan '25
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/39292?usp=email ) Change subject: cards: Avoid exception seen with (some) GSM-R SIM cards ...................................................................... cards: Avoid exception seen with (some) GSM-R SIM cards Some old cards are classic SIM and not based on UICCs. Such cards do not offer the capability of selecting applications. Let's avoid running into an exception by providing dummy methods that simply fail for each AID selection. Change-Id: Ib3457496380c0c5096052ad7799970ee620dee33 Closes: OS#6691 --- M pySim/cards.py 1 file changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/92/39292/1 diff --git a/pySim/cards.py b/pySim/cards.py index b7958f4..4fde211 100644 --- a/pySim/cards.py +++ b/pySim/cards.py @@ -73,6 +73,16 @@ # callers having to do hasattr('read_aids') ahead of every call. return [] + def adf_present(self, adf: str = "usim") -> bool: + # a non-UICC doesn't have any applications. Convenience helper to avoid + # callers having to do hasattr('read_aids') ahead of every call. + return False + + def select_adf_by_aid(self, adf: str = "usim", scc: Optional[SimCardCommands] = None) -> Tuple[Optional[Hexstr], Optional[SwHexstr]]: + # a non-UICC doesn't have any applications. Convenience helper to avoid + # callers having to do hasattr('read_aids') ahead of every call. + return (None, None) + class SimCardBase(CardBase): """Here we only add methods for commands specified in TS 51.011, without -- To view, visit https://gerrit.osmocom.org/c/pysim/+/39292?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: Ib3457496380c0c5096052ad7799970ee620dee33 Gerrit-Change-Number: 39292 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge(a)osmocom.org>
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by csaba.sipos 12 Jan '25

12 Jan '25
Attention is currently required from: laforge. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email to look at the new patch set (#4). The following approvals got outdated and were removed: Verified-1 by Jenkins Builder Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... nokia_site: introduce hopping control for Nokia *Site nokia_site hopping-type 0 sets baseband hopping nokia_site hopping-type 1 sets sythesizer (RF) hopping Signed-off-by: csaba.sipos <metro4(a)freemail.hu> Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 --- A doc/examples/osmo-bsc/nokia/osmo-bsc.metrosite.RF-hopping.2TRX.cfg M include/osmocom/bsc/bts.h M src/osmo-bsc/bts_nokia_site.c M src/osmo-bsc/bts_vty.c 4 files changed, 209 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/90/39290/4 -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 4 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-Attention: laforge <laforge(a)osmocom.org>
1 0
0 0
[L] Change in libosmo-netif[master]: beginning of twrtp documentation
by falconia 11 Jan '25

11 Jan '25
falconia has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/39291?usp=email ) Change subject: beginning of twrtp documentation ...................................................................... beginning of twrtp documentation Change-Id: I90976edfd8c66c2d1c5bc7939e0a49f725a02f3f --- M Makefile.am M configure.ac A doc/Makefile.am A doc/manuals/Makefile.am A doc/manuals/twrtp-guide-docinfo.xml A doc/manuals/twrtp-guide.adoc 6 files changed, 267 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/91/39291/1 diff --git a/Makefile.am b/Makefile.am index fd03b74..defd38e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,7 @@ AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6 ACLOCAL_AMFLAGS = -I m4 -SUBDIRS = include src examples utils tests +SUBDIRS = include src doc examples utils tests pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libosmo-netif.pc diff --git a/configure.ac b/configure.ac index 9b52901..8ee5a4d 100644 --- a/configure.ac +++ b/configure.ac @@ -126,12 +126,56 @@ AC_PATH_PROG(DOXYGEN,doxygen,false) AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false && test "x$doxygen" = "xyes") +# Generate manuals +AC_ARG_ENABLE(manuals, + [AS_HELP_STRING( + [--enable-manuals], + [Generate manual PDFs [default=no]], + )], + [osmo_ac_build_manuals=$enableval], [osmo_ac_build_manuals="no"]) +AM_CONDITIONAL([BUILD_MANUALS], [test x"$osmo_ac_build_manuals" = x"yes"]) +AC_ARG_VAR(OSMO_GSM_MANUALS_DIR, [path to common osmo-gsm-manuals files, overriding pkg-config and "../osmo-gsm-manuals" + fallback]) +if test x"$osmo_ac_build_manuals" = x"yes" +then + # Find OSMO_GSM_MANUALS_DIR (env, pkg-conf, fallback) + if test -n "$OSMO_GSM_MANUALS_DIR"; then + echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (from env)" + else + OSMO_GSM_MANUALS_DIR="$($PKG_CONFIG osmo-gsm-manuals --variable=osmogsmmanualsdir 2>/dev/null)" + if test -n "$OSMO_GSM_MANUALS_DIR"; then + echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (from pkg-conf)" + else + OSMO_GSM_MANUALS_DIR="../osmo-gsm-manuals" + echo "checking for OSMO_GSM_MANUALS_DIR... $OSMO_GSM_MANUALS_DIR (fallback)" + fi + fi + if ! test -d "$OSMO_GSM_MANUALS_DIR"; then + AC_MSG_ERROR("OSMO_GSM_MANUALS_DIR does not exist! Install osmo-gsm-manuals or set OSMO_GSM_MANUALS_DIR.") + fi + + # Find and run check-depends + CHECK_DEPENDS="$OSMO_GSM_MANUALS_DIR/check-depends.sh" + if ! test -x "$CHECK_DEPENDS"; then + CHECK_DEPENDS="osmo-gsm-manuals-check-depends" + fi + if ! $CHECK_DEPENDS; then + AC_MSG_ERROR("missing dependencies for --enable-manuals") + fi + + # Put in Makefile with absolute path + OSMO_GSM_MANUALS_DIR="$(realpath "$OSMO_GSM_MANUALS_DIR")" + AC_SUBST([OSMO_GSM_MANUALS_DIR]) +fi + AC_OUTPUT( libosmo-netif.pc include/Makefile include/osmocom/Makefile include/osmocom/netif/Makefile src/Makefile + doc/Makefile + doc/manuals/Makefile examples/Makefile utils/Makefile tests/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..f2c4de1 --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = manuals diff --git a/doc/manuals/Makefile.am b/doc/manuals/Makefile.am new file mode 100644 index 0000000..800d0e1 --- /dev/null +++ b/doc/manuals/Makefile.am @@ -0,0 +1,9 @@ +EXTRA_DIST = twrtp-guide-docinfo.xml twrtp-guide.adoc + +if BUILD_MANUALS + ASCIIDOC = twrtp-guide.adoc + include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc + + OSMO_REPOSITORY = libosmo-netif + include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc +endif diff --git a/doc/manuals/twrtp-guide-docinfo.xml b/doc/manuals/twrtp-guide-docinfo.xml new file mode 100644 index 0000000..3537c23 --- /dev/null +++ b/doc/manuals/twrtp-guide-docinfo.xml @@ -0,0 +1,22 @@ + +<authorgroup> + <author> + <firstname>Mychaela</firstname> + <surname>Falconia</surname> + <email>falcon(a)freecalypso.org</email> + <authorinitials>MNF</authorinitials> + <affiliation> + <shortaffil>SD2G</shortaffil> + <orgname>San Diego 2G Association</orgname> + <jobtitle>Founder and CTO</jobtitle> + </affiliation> + </author> +</authorgroup> + +<legalnotice> + <para> + The author of this document is a stateless person who does not + participate in the institution of copyright. This document + is in the public domain. + </para> +</legalnotice> diff --git a/doc/manuals/twrtp-guide.adoc b/doc/manuals/twrtp-guide.adoc new file mode 100644 index 0000000..2d1dce4 --- /dev/null +++ b/doc/manuals/twrtp-guide.adoc @@ -0,0 +1,190 @@ += Guide to ThemWi RTP endpoint library + +The RTP implementation library described in this document was developed by +Mother Mychaela N. Falconia under Themyscira Wireless branding and then +contributed to Osmocom in 2025. It is currently under consideration for +merging into `libosmo-netif`; once merged, it will be automatically available +to any application that is built with the standard suite of Osmocom libraries. + +This document is written to describe the library as it will appear and +function if the proposal to merge it into `libosmo-netif` is accepted. + +== Introduction + +ThemWi RTP endpoint library, consisting of `<osmocom/netif/twrtp.h>` and +`<osmocom/netif/twjit.h>` blocks provided by `libosmo-netif`, is intended +for interworking between an RTP stream and a fixed timing system such as +GSM Um interface TCH or T1/E1 TDM. Such interworking consists of two +fundamental elements: + +* In every fixed time quantum, the interworking element receives a unit of + speech or CSData media from the fixed source and emits an RTP packet + carrying that quantum of speech or CSData. + +* In the opposite direction, the fixed timing system requires a quantum of + speech or CSData to be fed to it on every tick without fail, yet the + interworking element has no control over when RTP packets may arrive + from the IP network. This direction of interworking requires a rather + complex element called a jitter buffer, an element whose design and + configuration always involves some trade-offs and compromises. + +=== Domain of application + +The present library is *not* intended to be an all-purpose implementation +of IETF RFCs 3550 and 3551, supporting all possible RTP use cases as +envisioned by IETF. Instead it is intended to support RTP _as it is used_ +in these two specific telecom network environments: + +* 3GPP networks that use RTP according to TS 26.102 and TS 48.103; + +* The way RTP is used to transport G.711 PSTN traffic across the public + Internet in what may be colloquially referred to as IP-PSTN. + +The two 3GPP specs referenced above prescribe a fixed packetization time +of 20 ms for all codecs on AoIP interface. Furthermore, they stipulate +that: + +* In the case of compressed speech transport, each RTP packet carries + exactly one frame of the speech codec in use; + +* In the case of uncompressed G.711 speech or CSData transport, each RTP + packet carries exactly 160 payload octets (20 ms worth) of what would + have been a 64 kbit/s timeslot in T1/E1 transport. + +This fixed-quantum property, namely the property that every RTP packet +carries exactly one fixed quantum of speech or CSData, where the duration +of this quantum is known at connection setup time and cannot suddenly +change from one packet to the next, is required by the present ThemWi +RTP endpoint library - this requirement constitutes a fundamental aspect +of its architectural design. + +An RTP endpoint implementation library that imposes the just-described +requirement is sufficient for the purpose of building IP-based GSM networks +that follow 3GPP TS 48.103 (the requirements of that spec are in agreement +with the library constraint), and it is also sufficient for interfacing +to IP-PSTN by way of common commercial PSTN-via-SIP connectivity providers. + +In the case of IP-PSTN, the author of the present library has experience +only with North American PSTN-via-SIP connectivity providers. In all +of our operational experience so far, these IP-PSTN connectivity providers +behave in ways that are fully compatible with the expectations of the +present RTP library, as long as the following conditions are met: + +* No attempt is made to use any codecs other than PCMU or PCMA: + don't include any other codecs in the SDP offer, and send only SDP answers + that select either PCMU or PCMA out of the received multi-codec offer. + +* No attempt is made to use any other `ptime` besides the most common + industry standard of 20 ms. + +In all operational experience so far, incoming INVITE SDPs indicate either +`a=ptime:20` or `a=maxptime:20`, and when we indicate `a=ptime:20` in all +SDPs we send out, the IP-PSTN peer always sends us 20 ms RTP packets, +as opposed to some other packetization interval which would break +the fixed-quantum model assumed by the present RTP library. + +However, it needs to be acknowledged that the present library is *not* +suitable for general-purpose, IETF-style applications outside of +``walled garden'' 3GPP networks or the semi-walled environment of +IP-PSTN with ``well-behaved'' entities: there are many behaviors that +are perfectly legal per the RFCs, but are not supported by the present +library. Having a peer send RTP with a packetization interval that is +different from what we asked for via `ptime` attribute is one of those +behaviors that is allowed by IETF, but not supported by this library. + +=== Configurable quantum duration and time scale + +For every RTP stream it handles, the library needs to know two key +parameters: + +* The scale or ``clock rate'' used for RTP timestamps, i.e., how many + timestamp units equal one millisecond of physical time; + +* The ``quantum'' duration in milliseconds. + +*Quantum* is the term used in this RTP endpoint library for the unit +of speech or CSData carried in one RTP packet. In Kantian philosophy terms, +a quantum of speech or CSData is the thing-in-itself (a single codec frame, +or a contiguous chunk of 160 PCM samples grabbed from an ISDN B channel), +whereas the RTP packet that carries said quantum is one particular transport +representation of that thing-in-itself. + +In most applications of this library (all 3GPP codecs other than AMR-WB, +and all IP-PSTN applications in our experience so far), the time scale +is 8000 timestamp units per second (or 8 per millisecond, as it appears +in the actual APIs) and the time duration of a single quantum is 20 ms, +hence one quantum equals 160 timestamp units. +Both parameters (RTP timestamp clock rate in kHz and the number of ms +per quantum) are configurable at the time of endpoint creation, allowing +RTP endpoints for AMR-WB, or perhaps G.711 or CSData applications with +different packetization times - but they cannot be changed later in +the lifetime of an allocated endpoint. + +For ease of exposition, the rest of this document will assume that +one quantum equals 20 ms in time or 160 RTP timestamp units. If these +numbers are different in your application, substitute accordingly. + +== Jitter buffer model + +In the interworking direction from incoming RTP to the fixed timing system, +the latter will poll the RTP endpoint (or more precisely, the jitter buffer +portion thereof) for a quantum of media every 20 ms, whenever that quantum +is required for transmission on GSM Um TCH or for TDM output etc. +The job of the jitter buffer is to match previously received RTP packets +to these fixed-timing output polls, while striving to meet these two +conflicting goals: + +* Any time that elapses between an RTP packet being received and its + payload being passed as a quantum to the fixed timing system constitutes + added latency - which needs to be minimized. + +* IP-based transport always involves some jitter: the time delta between + the receipt of one RTP packet and the arrival of its successor is very + unlikely to be exactly equal to 20 ms every time. This jitter may be + already present in the RTP stream from its source if that source is + an IP-native BTS that does not pass through E1 Abis and thus exposes + the inherent jitter of GSM TDMA multiframe structure, but even if + the source is perfectly timed, some jitter will still be seen on the + receiving end. Depending on the actual amount of jitter seen in a + given deployment, it may be necessary to introduce some latency-adding + buffering in the receiving RTP endpoint - otherwise the function of + interworking to the fixed timing system at the destination will perform + poorly, as will be seen in the ensuing sections. + +This chapter covers the design and operation of `twjit`, the jitter buffer +component of ThemWi RTP endpoint library. + +=== Flows and handovers + +In `twjit` terminology, a single RTP flow is a portion (or the whole) +of an RTP stream that exhibits the following two key properties: + +* All packets have the same SSRC; + +* The RTP timestamp increment from each packet to the next always equals + the fixed quantum duration expressed in timestamp units, i.e., 160 + in most practical applications. + +A handover in `twjit` terminology is a point in the incoming RTP stream +at which either of the following events occurs: + +* An SSRC change is seen; + +* The RTP timestamp advances by an increment that is not an integral multiple + of the expected fixed quantum duration. In contrast, if an RTP timestamp + increment is seen that _is_ an integral multiple of the quantum, but that + integral multiple is more than one, and there is enough buffering in the + system such that this event is seen before the jitter buffer underruns, + such events are *not* treated as handovers: instead it is assumed to be + an occurrence of either packet loss or reordering. + +A handover in `twjit` is thus a transition from one flow to the next. +This term was adopted because such transitions are expected to occur +when an RTP stream belonging to a single call switches from one BSS endpoint +to another (in the same BSS or in a different one) upon radio handover events +in GSM and other cellular networks, but handovers in `twjit` sense can also +occur in other applications that aren't GSM. For example, if an IP-PSTN peer +we are conversing with suddenly decides, for its own reasons known only to +itself, to change its SSRC or jump its RTP output timescale, our `twjit` +instance will treat that event as a handover. + -- To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/39291?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmo-netif Gerrit-Branch: master Gerrit-Change-Id: I90976edfd8c66c2d1c5bc7939e0a49f725a02f3f Gerrit-Change-Number: 39291 Gerrit-PatchSet: 1 Gerrit-Owner: falconia <falcon(a)freecalypso.org>
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by csaba.sipos 11 Jan '25

11 Jan '25
Attention is currently required from: laforge. csaba.sipos has posted comments on this change by csaba.sipos. ( https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email ) Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... Patch Set 3: (1 comment) Patchset: PS3: @laforge@osmocom.org Jenkins gave this error: Documentation error (missing docs): <command id='nokia_site nokia_hopping (0|1)'> <param name='1' doc='(null)' /> Not sure how and where to fix this. Do I need to create a new example config file in examples/nokia, or I can add it to the existing one, maybe I need to add this somewhere else? Looked at a few bts_vty.c additions lately, but none of them edited anything else. The patch itself is runtime tested against InSite (no hopping), and MetroSite (RF hopping), both works as expected. Thanks! -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 3 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-Attention: laforge <laforge(a)osmocom.org> Gerrit-Comment-Date: Sat, 11 Jan 2025 19:07:15 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by csaba.sipos 11 Jan '25

11 Jan '25
Attention is currently required from: csaba.sipos. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email to look at the new patch set (#3). The following approvals got outdated and were removed: Verified-1 by Jenkins Builder Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... nokia_site: introduce hopping control for Nokia *Site nokia_site hopping-type 0 sets baseband hopping nokia_site hopping-type 1 sets sythesizer (RF) hopping Signed-off-by: csaba.sipos <metro4(a)freemail.hu> Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 --- M include/osmocom/bsc/bts.h M src/osmo-bsc/bts_nokia_site.c M src/osmo-bsc/bts_vty.c 3 files changed, 49 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/90/39290/3 -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 3 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-Reviewer: Jenkins Builder Gerrit-Attention: csaba.sipos <metro4(a)freemail.hu>
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by Jenkins Builder 11 Jan '25

11 Jan '25
Attention is currently required from: csaba.sipos. Jenkins Builder has posted comments on this change by csaba.sipos. ( https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email ) Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... Patch Set 2: (1 comment) File src/osmo-bsc/bts_vty.c: Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20869): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/7715478d_8db87d3d?usp… : PS2, Line 478: if (!is_nokia_bts(bts)) { suspect code indent for conditional statements (16, 32) -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 2 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-Reviewer: Jenkins Builder Gerrit-Attention: csaba.sipos <metro4(a)freemail.hu> Gerrit-Comment-Date: Sat, 11 Jan 2025 18:35:49 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by csaba.sipos 11 Jan '25

11 Jan '25
Attention is currently required from: csaba.sipos. Hello Jenkins Builder, I'd like you to reexamine a change. Please visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email to look at the new patch set (#2). The following approvals got outdated and were removed: Verified-1 by Jenkins Builder Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... nokia_site: introduce hopping control for Nokia *Site nokia_site hopping-type 0 sets baseband hopping nokia_site hopping-type 1 sets sythesizer (RF) hopping Signed-off-by: csaba.sipos <metro4(a)freemail.hu> Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 --- M include/osmocom/bsc/bts.h M src/osmo-bsc/bts_nokia_site.c M src/osmo-bsc/bts_vty.c 3 files changed, 49 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/90/39290/2 -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newpatchset Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 2 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-Reviewer: Jenkins Builder Gerrit-Attention: csaba.sipos <metro4(a)freemail.hu>
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by Jenkins Builder 11 Jan '25

11 Jan '25
Jenkins Builder has posted comments on this change by csaba.sipos. ( https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email ) Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... Patch Set 1: (29 comments) File src/osmo-bsc/bts_nokia_site.c: Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/12154456_4e0d81b9?usp… : PS1, Line 1137: switch (hopping_type) { switch and case should be at the same indent File src/osmo-bsc/bts_vty.c: Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/658f9929_9242d19e?usp… : PS1, Line 469: cfg_bts_nokia_site_hopping_type_cmd, code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/d3e9c9c3_a57e5e62?usp… : PS1, Line 469: cfg_bts_nokia_site_hopping_type_cmd, please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/936bc0ef_d42eabf5?usp… : PS1, Line 470: "nokia_site nokia_hopping (0|1)", code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/6c34df9f_b55ae118?usp… : PS1, Line 470: "nokia_site nokia_hopping (0|1)", please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/45aa982e_4689318b?usp… : PS1, Line 471: NOKIA_STR code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/cb91dca0_007a17e0?usp… : PS1, Line 471: NOKIA_STR please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/cf115d0d_e2f49dcf?usp… : PS1, Line 472: "This parameter sets the frequency hopping type for Nokia *Site\n" code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/e2b9498c_f7b56bc1?usp… : PS1, Line 472: "This parameter sets the frequency hopping type for Nokia *Site\n" please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/946f4a9b_b5bf97d5?usp… : PS1, Line 473: "0=Baseband hopping, 1=Synthesizer (RF) hopping\n", code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/d967ca2b_0aa1cbe7?usp… : PS1, Line 473: "0=Baseband hopping, 1=Synthesizer (RF) hopping\n", please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/f2c378fa_78b8a635?usp… : PS1, Line 474: CMD_ATTR_IMMEDIATE) code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/f411af94_fb316456?usp… : PS1, Line 474: CMD_ATTR_IMMEDIATE) please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/e33bbbdb_2e11dec6?usp… : PS1, Line 476: struct gsm_bts *bts = vty->index; code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/257e62d8_c43a662b?usp… : PS1, Line 476: struct gsm_bts *bts = vty->index; please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/713a4a4e_a54e687b?usp… : PS1, Line 478: if (!is_nokia_bts(bts)) { code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/2243de2e_3d2b06ba?usp… : PS1, Line 478: if (!is_nokia_bts(bts)) { please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/783d1560_87e9a727?usp… : PS1, Line 479: vty_out(vty, "%% BTS is not of Nokia *Site type%s", code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/334dd2fc_f9e2d4cb?usp… : PS1, Line 479: vty_out(vty, "%% BTS is not of Nokia *Site type%s", please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/05698914_f15da317?usp… : PS1, Line 480: VTY_NEWLINE); code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/23e88df5_fbadb913?usp… : PS1, Line 480: VTY_NEWLINE); please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/c7635a0d_a1bc4354?usp… : PS1, Line 481: return CMD_WARNING; code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/49bb6f26_80f4886a?usp… : PS1, Line 481: return CMD_WARNING; please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/4ec5c987_dd158407?usp… : PS1, Line 482: } code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/d4df6351_c60a6266?usp… : PS1, Line 482: } please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/1f2c7fb3_c1fa0c50?usp… : PS1, Line 484: bts->nokia.nokia_hopping = atoi(argv[0]); code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/4a2d7537_482dfc8f?usp… : PS1, Line 484: bts->nokia.nokia_hopping = atoi(argv[0]); please, no spaces at the start of a line Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/e142ea38_f6e70c6f?usp… : PS1, Line 486: return CMD_SUCCESS; code indent should use tabs where possible Robot Comment from checkpatch (run ID jenkins-gerrit-lint-20868): https://gerrit.osmocom.org/c/osmo-bsc/+/39290/comment/52b69d58_eb367d30?usp… : PS1, Line 486: return CMD_SUCCESS; please, no spaces at the start of a line -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 1 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu> Gerrit-CC: Jenkins Builder Gerrit-Comment-Date: Sat, 11 Jan 2025 18:09:48 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
[M] Change in osmo-bsc[master]: nokia_site: introduce hopping control for Nokia *Site
by csaba.sipos 11 Jan '25

11 Jan '25
csaba.sipos has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email ) Change subject: nokia_site: introduce hopping control for Nokia *Site ...................................................................... nokia_site: introduce hopping control for Nokia *Site nokia_site hopping-type 0 sets baseband hopping nokia_site hopping-type 1 sets sythesizer (RF) hopping Signed-off-by: csaba.sipos <metro4(a)freemail.hu> Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 --- M include/osmocom/bsc/bts.h M src/osmo-bsc/bts_nokia_site.c M src/osmo-bsc/bts_vty.c 3 files changed, 49 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/90/39290/1 diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h index 248c746..cb49361 100644 --- a/include/osmocom/bsc/bts.h +++ b/include/osmocom/bsc/bts.h @@ -488,7 +488,8 @@ no_loc_rel_cnf:1, /* don't wait for RSL REL CONF */ bts_reset_timer_cnf, /* timer for BTS RESET */ did_reset:1, /* we received a RESET ACK */ - wait_reset:2; /* we are waiting for reset to complete */ + wait_reset:2, /* we are waiting for reset to complete */ + nokia_hopping:1; /* hopping type selection for Nokia */ struct osmo_timer_list reset_timer; } nokia; }; diff --git a/src/osmo-bsc/bts_nokia_site.c b/src/osmo-bsc/bts_nokia_site.c index 14d4388..3a12b57 100644 --- a/src/osmo-bsc/bts_nokia_site.c +++ b/src/osmo-bsc/bts_nokia_site.c @@ -1102,7 +1102,7 @@ */ static int make_bts_config(struct gsm_bts *bts, uint8_t bts_type, int n_trx, uint8_t * fu_config, - int need_hopping) + int need_hopping, int hopping_type) { /* is it an InSite BTS ? */ if (bts_type == 0x0E || bts_type == 0x0F || bts_type == 0x10) { /* TODO */ @@ -1132,11 +1132,27 @@ len += (sizeof(bts_config_1) + (n_trx - 1)); memcpy(fu_config + len, bts_config_2, sizeof(bts_config_2)); - /* set hopping mode (Baseband and RF hopping work for the MetroSite) */ - if (need_hopping) - fu_config[len + 2 + 1] = 1; /* 0: no hopping, 1: Baseband hopping, 2: RF hopping */ + /* set hopping mode */ + if (need_hopping) { + switch (hopping_type) { + /* 0: no hopping, 1: Baseband hopping, 2: RF hopping */ + case 0: + LOG_BTS(bts, DNM, LOGL_INFO, "Baseband hopping selected!\n"); + fu_config[len + 2 + 1] = 1; + break; + case 1: + LOG_BTS(bts, DNM, LOGL_INFO, "Synthesizer (RF) hopping selected!\n"); + fu_config[len + 2 + 1] = 2; + break; + default: + LOG_BTS(bts, DNM, LOGL_INFO, "No hopping is selected!\n"); + fu_config[len + 2 + 1] = 0; + break; + } + } len += sizeof(bts_config_2); + /* set extended cell radius for each TRX */ for (i = 0; i < n_trx; i++) { memcpy(fu_config + len, bts_config_3, sizeof(bts_config_3)); @@ -1381,6 +1397,9 @@ int ret; int hopping = 0; int need_hopping = 0; + int hopping_type = 0; + + hopping_type = bts->nokia.nokia_hopping; memset(config, 0, sizeof(config)); @@ -1407,7 +1426,7 @@ idx++; } - ret = make_bts_config(bts, bts_type, idx, config + len, need_hopping); + ret = make_bts_config(bts, bts_type, idx, config + len, need_hopping, hopping_type); len += ret; #if 0 /* debugging */ diff --git a/src/osmo-bsc/bts_vty.c b/src/osmo-bsc/bts_vty.c index f6ee514..a023591 100644 --- a/src/osmo-bsc/bts_vty.c +++ b/src/osmo-bsc/bts_vty.c @@ -464,6 +464,28 @@ return CMD_SUCCESS; } + +DEFUN_ATTR(cfg_bts_nokia_site_hopping_type, + cfg_bts_nokia_site_hopping_type_cmd, + "nokia_site nokia_hopping (0|1)", + NOKIA_STR + "This parameter sets the frequency hopping type for Nokia *Site\n" + "0=Baseband hopping, 1=Synthesizer (RF) hopping\n", + CMD_ATTR_IMMEDIATE) +{ + struct gsm_bts *bts = vty->index; + + if (!is_nokia_bts(bts)) { + vty_out(vty, "%% BTS is not of Nokia *Site type%s", + VTY_NEWLINE); + return CMD_WARNING; + } + + bts->nokia.nokia_hopping = atoi(argv[0]); + + return CMD_SUCCESS; +} + #define OML_STR "Organization & Maintenance Link\n" #define IPA_STR "A-bis/IP Specific Options\n" @@ -4926,6 +4948,7 @@ install_element(BTS_NODE, &cfg_bts_nokia_site_skip_reset_cmd); install_element(BTS_NODE, &cfg_bts_nokia_site_no_loc_rel_cnf_cmd); install_element(BTS_NODE, &cfg_bts_nokia_site_bts_reset_timer_cnf_cmd); + install_element(BTS_NODE, &cfg_bts_nokia_site_hopping_type_cmd); install_element(BTS_NODE, &cfg_bts_stream_id_cmd); install_element(BTS_NODE, &cfg_bts_deprecated_stream_id_cmd); install_element(BTS_NODE, &cfg_bts_oml_e1_cmd); -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39290?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Idb1d269d2ee80d72ede2394125e8acedf0ee8b06 Gerrit-Change-Number: 39290 Gerrit-PatchSet: 1 Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu>
1 0
0 0
[L] Change in osmo-pcap[master]: client: Introduce osmo_pcap_file to prepare support for pcapng
by laforge 11 Jan '25

11 Jan '25
Attention is currently required from: pespin. laforge has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-pcap/+/39288?usp=email ) Change subject: client: Introduce osmo_pcap_file to prepare support for pcapng ...................................................................... Patch Set 1: (1 comment) File src/osmo_pcap_file.c: https://gerrit.osmocom.org/c/osmo-pcap/+/39288/comment/350e4c6d_f6f85c9c?us… : PS1, Line 38: osmo_pcap_file_global_header_size do we reeally need a function for this? Do we ever expect that there will be a future file format which will return anything but a constant here? Especially since we are not passing any data/context into the function, I have a hard time imagining any future implementation that would not return a constant? -- To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39288?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-pcap Gerrit-Branch: master Gerrit-Change-Id: Ifd389a2a32897e101c62fd280ddca984d485d373 Gerrit-Change-Number: 39288 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-CC: laforge <laforge(a)osmocom.org> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Sat, 11 Jan 2025 14:56:19 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • ...
  • 150
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.