pespin has uploaded this change for review. ( 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(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/73/14673/1 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). +@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: 1 Gerrit-Owner: pespin <pes...@sysmocom.de> Gerrit-MessageType: newchange