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/.
fixeria gerrit-no-reply at lists.osmocom.orgfixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/14786 Change subject: driveTxPriorityQueue(): use trxd_hdr_common for message parsing ...................................................................... driveTxPriorityQueue(): use trxd_hdr_common for message parsing Change-Id: If6a93e2b7fc9ada55edbdd16352cd4f7040e3d2a --- M Transceiver52M/Transceiver.cpp 1 file changed, 8 insertions(+), 6 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/86/14786/1 diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp index 1e0339b..4cd8637 100644 --- a/Transceiver52M/Transceiver.cpp +++ b/Transceiver52M/Transceiver.cpp @@ -914,6 +914,7 @@ int msgLen; int burstLen; char buffer[EDGE_BURST_NBITS + 50]; + struct trxd_hdr_common *chdr; // check data socket msgLen = read(mDataSockets[chan], buffer, sizeof(buffer)); @@ -934,12 +935,13 @@ return false; } - int timeSlot = (int) buffer[0]; - uint32_t frameNum = 0; - for (int i = 0; i < 4; i++) - frameNum = (frameNum << 8) | (0x0ff & buffer[i+1]); + /* Common header part: HDR version, TDMA TN & FN */ + chdr = (struct trxd_hdr_common *) buffer; - LOG(DEBUG) << "rcvd. burst at: " << GSM::Time(frameNum,timeSlot); + /* Convert TDMA FN to the host endianness */ + chdr->fn = ntohl(chdr->fn); + + LOG(DEBUG) << "rcvd. burst at: " << GSM::Time(chdr->fn, chdr->tn); int RSSI = (int) buffer[5]; BitVector newBurst(burstLen); @@ -948,7 +950,7 @@ while (itr < newBurst.end()) *itr++ = *bufferItr++; - GSM::Time currTime = GSM::Time(frameNum,timeSlot); + GSM::Time currTime = GSM::Time(chdr->fn, chdr->tn); addRadioVector(chan, newBurst, RSSI, currTime); -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/14786 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: If6a93e2b7fc9ada55edbdd16352cd4f7040e3d2a Gerrit-Change-Number: 14786 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <axilirator at gmail.com> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190715/ffbdfbc4/attachment.htm>