Change in ...osmo-trx[master]: sigProcLib: detectAnyBurst(): make TSC used to detect burst available...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Fri Jul 19 11:44:14 UTC 2019


pespin has submitted this change and it was merged. ( https://gerrit.osmocom.org/c/osmo-trx/+/14673 )

Change subject: sigProcLib: detectAnyBurst(): make TSC used to detect burst available to caller
......................................................................

sigProcLib: detectAnyBurst(): make TSC used to detect burst available to caller

This value will be sent in TRXDv1 protocol.

Related: OS#4006
Change-Id: I603b7b52f957cf897b036dbaeb22c01a55de08c3
---
M Transceiver52M/sigProcLib.cpp
M Transceiver52M/sigProcLib.h
2 files changed, 7 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/Transceiver52M/sigProcLib.cpp b/Transceiver52M/sigProcLib.cpp
index 52a6701..c22009a 100644
--- a/Transceiver52M/sigProcLib.cpp
+++ b/Transceiver52M/sigProcLib.cpp
@@ -1595,8 +1595,10 @@
   for (i = 0; i < num_seq; i++) {
     rc = detectGeneralBurst(burst, threshold, sps, target, head, tail,
                             gRACHSequences[i], ebp);
-    if (rc > 0)
+    if (rc > 0) {
+      ebp->tsc = i;
       break;
+    }
   }
 
   return rc;
@@ -1624,6 +1626,7 @@
   tail = 6 + max_toa;
   sync = gMidambles[tsc];
 
+  ebp->tsc = tsc;
   rc = detectGeneralBurst(burst, threshold, sps, target, head, tail, sync, ebp);
   return rc;
 }
@@ -1642,6 +1645,7 @@
   tail = 6 + max_toa;
   sync = gEdgeMidambles[tsc];
 
+  ebp->tsc = tsc;
   rc = detectGeneralBurst(burst, threshold, sps,
                           target, head, tail, sync, ebp);
   return rc;
diff --git a/Transceiver52M/sigProcLib.h b/Transceiver52M/sigProcLib.h
index 8442cfc..6d4ca9b 100644
--- a/Transceiver52M/sigProcLib.h
+++ b/Transceiver52M/sigProcLib.h
@@ -105,10 +105,12 @@
 /** Struct used to fill out parameters in detectAnyBurst(): estimated burst parameters
 @param amplitude The estimated amplitude of received TSC burst.
 @param toa The estimated time-of-arrival of received TSC burst (in symbols).
+ at param tsc The TSC used to detect the burst.
 */
 struct estim_burst_params {
         complex amp;
         float toa;
+        uint8_t tsc;
 };
 /**
         8-PSK/GMSK/RACH burst detector

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/14673
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I603b7b52f957cf897b036dbaeb22c01a55de08c3
Gerrit-Change-Number: 14673
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: laforge <laforge at gnumonks.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190719/033778c7/attachment.htm>


More information about the gerrit-log mailing list