Attention is currently required from: daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/33103 )
Change subject: stream: (typo) Change callback param name of struct osmo_stream_cli from srv to cli
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/33103
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I742db401165477f85e66bb428f156ecbbd5d6665
Gerrit-Change-Number: 33103
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 31 May 2023 11:04:42 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/33105 )
Change subject: tbf: Improve TBF name description in logs
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/33105
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I86b5f042fae77721b22fc026228677bd56768ba9
Gerrit-Change-Number: 33105
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 31 May 2023 11:04:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/33102 )
Change subject: stream: Introduce and use osmo_stream_cli_fd() to get the fd
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/33102
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I7e964dea0adee8edbb9b75d2d17e7d0c5d8917d5
Gerrit-Change-Number: 33102
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 31 May 2023 11:04:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33108 )
Change subject: BTS_Tests.TC_pcu_data_ind_lqual_cb: properly send UL BLOCK.req
......................................................................
BTS_Tests.TC_pcu_data_ind_lqual_cb: properly send UL BLOCK.req
We must be using a valid TDMA Fn when scheduling UL BLOCK.req, so
so wait for a DL BLOCK.ind, take the current Fn from there and
calculate a proper TDMA Fn for the next UL block.
Change-Id: If0fb615a4136a76a939588af0131ddcfb7acd877
Related: OS#5954
---
M bts/BTS_Tests.ttcn
1 file changed, 79 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/08/33108/1
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 0a044e7..192338b 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -5326,6 +5326,66 @@
}
}
+/* Catch a L1CTL DL BLOCK.ind with the given parameters */
+private altstep as_l1ctl_dl_block_ind(out L1ctlGprsDlBlockInd block_ind,
+ template (present) GsmFrameNumber fn := ?,
+ template (present) uint3_t tn := ?,
+ template (present) uint3_t usf := ?,
+ template (present) octetstring data := ?)
+runs on test_CT {
+ var L1ctlMessage l1_dl;
+
+ [] L1CTL.receive(tr_L1CTL_GPRS_DL_BLOCK_IND(fn, tn, usf, data)) -> value l1_dl {
+ block_ind := l1_dl.payload.dl_block_ind;
+ }
+}
+
+/* tuple of TDMA frame number and timeslot number */
+private type record TdmaFnTn {
+ GsmFrameNumber fn,
+ uint3_t tn
+}
+
+/* Wait for a L1CTL DL BLOCK.ind and send an UL BLOCK.req */
+private function f_TC_pcu_tx_ul_block_req(octetstring data,
+ template (present) uint3_t tn := ?,
+ template (present) uint3_t usf := ?)
+runs on test_CT return TdmaFnTn {
+ var L1ctlGprsDlBlockInd block_ind;
+ timer T;
+
+ T.start(1.0);
+ alt {
+ [] as_l1ctl_dl_block_ind(block_ind, tn := tn, usf := usf) {
+ var integer fn := block_ind.hdr.fn;
+
+ /* Ignore PTCCH/D blocks, their Fn is too far away */
+ if (fn mod 104 == 12) {
+ repeat;
+ }
+
+ /* Every fn % 13 == 12 we have either a PTCCH or an IDLE slot, thus
+ * every fn % 13 == 8 we add 5 frames, or 4 frames othrwise. The
+ * resulting value is first fn of the next block. */
+ if (fn mod 13 == 8) {
+ fn := (fn + 5) mod (2048 * 51 * 26);
+ } else {
+ fn := (fn + 4) mod (2048 * 51 * 26);
+ }
+
+ L1CTL.send(ts_L1CTL_GPRS_UL_BLOCK_REQ(fn, block_ind.hdr.tn, data));
+ return {fn, block_ind.hdr.tn};
+ }
+ [] L1CTL.receive { repeat; }
+ [] T.timeout {
+ setverdict(fail, "Timeout waiting for DL BLOCK.ind (RTS)");
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__);
+ }
+ }
+
+ return {0, 0}; /* make TITAN happy */
+}
+
/* Tune the L1 to PDCH on the given timeslot number */
private function f_TC_pcu_l1ctl_est_pdch(uint3_t tn) runs on test_CT {
var ConnHdlrPars pars := valueof(t_Pars(ts_RslChanNr_PDCH(tn), ts_RSL_ChanMode_SIGN));
@@ -5890,9 +5950,11 @@
var int16_t lqual_cb;
timer T := 1.0;
- /* Send a random PDTCH frame over Um
- * FIXME: we need to wait for a DL block and user Fn from there. */
- L1CTL.send(ts_L1CTL_GPRS_UL_BLOCK_REQ(0, 7, '0000'O & f_rnd_octstring(21)));
+ L1CTL.clear;
+ PCU.clear;
+
+ /* Send a random Uplink block over the Um */
+ f_TC_pcu_tx_ul_block_req('0000'O & f_rnd_octstring(21), tn := 7);
T.start;
alt {
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33108
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If0fb615a4136a76a939588af0131ddcfb7acd877
Gerrit-Change-Number: 33108
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: falconia, pespin, fixeria.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/33069 )
Change subject: trx TCH DL: transmit invalid speech frames instead of dummy FACCH
......................................................................
Patch Set 2: Code-Review+1
(3 comments)
Patchset:
PS2:
This patch sounds reasonable for me.
File src/osmo-bts-trx/sched_lchan_tchf.c:
https://gerrit.osmocom.org/c/osmo-bts/+/33069/comment/b36d97a9_b17b32d0
PS1, Line 500: what is the correct BTS Tx behavior for frame
: * gaps in TCH/AFS
> I hear you - I just don't have the needed AMR expertise to implement proper BFI transmission for AMR […]
What we could do though is to add a task in redmine and put the OS#xxxx number next to the fixme.
File src/osmo-bts-trx/sched_lchan_tchf.c:
https://gerrit.osmocom.org/c/osmo-bts/+/33069/comment/9820ac66_4a9ee9c6
PS2, Line 479: * speech frame with inverted CRC3, designed to induce a BFI
Wouldn't it be more clear to call it "speech block"?
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/33069
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I78106802a0aa4af39859c75d29fe0e77037899fe
Gerrit-Change-Number: 33069
Gerrit-PatchSet: 2
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 31 May 2023 10:58:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: falconia <falcon(a)freecalypso.org>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/33103 )
Change subject: stream: (typo) Change callback param name of struct osmo_stream_cli from srv to cli
......................................................................
stream: (typo) Change callback param name of struct osmo_stream_cli from srv to cli
Change-Id: I742db401165477f85e66bb428f156ecbbd5d6665
---
M src/stream.c
1 file changed, 13 insertions(+), 4 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/03/33103/1
diff --git a/src/stream.c b/src/stream.c
index b3721c5..6afb7ca 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -261,10 +261,10 @@
int sk_domain;
int sk_type;
uint16_t proto;
- int (*connect_cb)(struct osmo_stream_cli *srv);
- int (*disconnect_cb)(struct osmo_stream_cli *srv);
- int (*read_cb)(struct osmo_stream_cli *srv);
- int (*write_cb)(struct osmo_stream_cli *srv);
+ int (*connect_cb)(struct osmo_stream_cli *cli);
+ int (*disconnect_cb)(struct osmo_stream_cli *cli);
+ int (*read_cb)(struct osmo_stream_cli *cli);
+ int (*write_cb)(struct osmo_stream_cli *cli);
void *data;
int flags;
int reconnect_timeout;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/33103
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I742db401165477f85e66bb428f156ecbbd5d6665
Gerrit-Change-Number: 33103
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: newchange