Change in osmocom-bb[master]: trx_toolkit/data_msg.py: fix: extend RSSI value range to [-47..-120]

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Fri May 31 18:43:00 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/14305


Change subject: trx_toolkit/data_msg.py: fix: extend RSSI value range to [-47..-120]
......................................................................

trx_toolkit/data_msg.py: fix: extend RSSI value range to [-47..-120]

Change-Id: I9fce3462db14bd273a1498762cc9293fc888b45a
---
M src/target/trx_toolkit/data_msg.py
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/05/14305/1

diff --git a/src/target/trx_toolkit/data_msg.py b/src/target/trx_toolkit/data_msg.py
index 3393ddb..da109d9 100644
--- a/src/target/trx_toolkit/data_msg.py
+++ b/src/target/trx_toolkit/data_msg.py
@@ -294,8 +294,10 @@
 class DATAMSG_TRX2L1(DATAMSG):
 	# Constants
 	HDR_LEN = 8
+
+	# rxlev2dbm(0..63) gives us [-110..-47], plus -10 dbm for noise
 	RSSI_MIN = -120
-	RSSI_MAX = -50
+	RSSI_MAX = -47
 
 	# Min and max values of int16_t
 	TOA256_MIN = -32768

-- 
To view, visit https://gerrit.osmocom.org/14305
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9fce3462db14bd273a1498762cc9293fc888b45a
Gerrit-Change-Number: 14305
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190531/7d858db3/attachment.html>


More information about the gerrit-log mailing list