aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-31 21:16:57 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-21 16:25:07 +0200
commit4059e29a29039759c60624f87e45d35d922d88d1 (patch)
tree9e45ec73492b77f4f78104fc98e3c9f8a926af2d
parent46c085d794d9c973528718b62caeb41443a53417 (diff)
sysmobts: Read the temperature sensors on the device
Read the sensors that are always present and the ones that are only present on the sysmoBTS 2050.
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
index 50d8e15..92e1073 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
@@ -96,6 +96,22 @@ DEFUN(cfg_mgr, cfg_mgr_cmd,
DEFUN(show_mgr, show_mgr_cmd, "show manager",
SHOW_STR "Display information about the manager")
{
+ vty_out(vty, "Current Temperatures%s", VTY_NEWLINE);
+ vty_out(vty, " Digital: %f Celcius%s",
+ sysmobts_temp_get(SYSMOBTS_TEMP_DIGITAL,
+ SYSMOBTS_TEMP_INPUT) / 1000.0f,
+ VTY_NEWLINE);
+ vty_out(vty, " RF: %f Celcius%s",
+ sysmobts_temp_get(SYSMOBTS_TEMP_RF,
+ SYSMOBTS_TEMP_INPUT) / 1000.0f,
+ VTY_NEWLINE);
+ if (is_sbts2050_master()) {
+ int temp_pa, temp_board;
+ sbts2050_uc_check_temp(&temp_pa, &temp_board);
+ vty_out(vty, " sysmoBTS 2050 PA: %d Celcius%s", temp_pa, VTY_NEWLINE);
+ vty_out(vty, " sysmoBTS 2050 PA: %d CelciusC%s", temp_board, VTY_NEWLINE);
+ }
+
return CMD_SUCCESS;
}