path: root/src/pcu_vty_functions.cpp
diff options
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 11:26:38 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commite4bcb62dbf89bf882805e3824251a3013f3eecd7 (patch)
tree0156c0493db4141a6fb44da8918de59fe6452579 /src/pcu_vty_functions.cpp
parent20f6fd1b63355b9a3ab1423cb24b73ca27f57243 (diff)
ms: Store the L1 measurement values in the MS objects
This commits adds the GprsMs::update_l1_meas() and GprsMs::l1_meas() methods to store and access the measurement values. The internal state is updated depending on which values are actually set. In addition, these values are shown in the output of the 'show ms imsi|tlli' command. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/pcu_vty_functions.cpp')
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 39c5ee4..bf4843f 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -67,6 +67,18 @@ static int show_ms(struct vty *vty, GprsMs *ms)
vty_out(vty, " MS class: %d%s", ms->ms_class(), VTY_NEWLINE);
vty_out(vty, " LLC queue length: %d%s", ms->llc_queue()->size(),
+ if (ms->l1_meas()->have_rssi)
+ vty_out(vty, " RSSI: %d dBm%s",
+ ms->l1_meas()->rssi, VTY_NEWLINE);
+ if (ms->l1_meas()->have_ber)
+ vty_out(vty, " Bit error rate: %d %%%s",
+ ms->l1_meas()->ber, VTY_NEWLINE);
+ if (ms->l1_meas()->have_link_qual)
+ vty_out(vty, " Link quality: %d dB%s",
+ ms->l1_meas()->link_qual, VTY_NEWLINE);
+ if (ms->l1_meas()->have_bto)
+ vty_out(vty, " Burst timing offset: %d/4 bit%s",
+ ms->l1_meas()->bto, VTY_NEWLINE);
if (ms->ul_tbf())
vty_out(vty, " Uplink TBF: TFI=%d, state=%s%s",