osmo-bts/src/osmo-bts-sysmo/misc
Keith Whyte d89938afa7 sysmobts-mgr: Fix path to hwmon in /sys
The path to the temperature sensor was wrong which
results in the SysmoBTS manager always considering
that the state is critical and hence powering OFF
the PA on startup. (with the default config)

As a further side-effect, the temperatures were not
available in the vty 'show manager' command.

Redacted log previous to this patch:

  sysmobts_misc.c:128 Error reading temperature
  sysmobts_mgr_2050.c:323 Going to enable the PA.
  sysmobts_mgr_temp.c:252 Failed to read the digital temperature. rc=-1
  sysmobts_mgr_temp.c:267 Failed to read the RF temperature. rc=-1
  sysmobts_mgr_temp.c:203 Moving from state NORMAL to CRITICAL.
  sysmobts_mgr_temp.c:185 System has reached critical warning.
  sysmobts_mgr_temp.c:236 OML alert sent: 0

and in the vty:

  Temperature control state: CRITICAL
  Current Temperatures
   Digital: -0.001000 Celsius
   RF:      -0.001000 Celsius

With this patch we correctly enable the PA and now can show in the vty:

  Temperature control state: NORMAL
  Current Temperatures
   Digital: 39.000000 Celsius
   RF:      35.125000 Celsius

Change-Id: Iac8e9a866ad6326874af91bd12a981f39a9a24c7
2021-05-28 17:54:26 +00:00
..
sysmobts-calib.c Move sysmobts-calib into osmo-bts-sysmo 2018-01-16 15:53:00 +01:00
sysmobts-layer1.c Fix common misspellings and typos 2019-10-17 08:05:35 +00:00
sysmobts-layer1.h Move sysmobts-calib into osmo-bts-sysmo 2018-01-16 15:53:00 +01:00
sysmobts_eeprom.h add support for sysmoBTS 1003 aka "1002 with GPS and PoE" 2021-02-15 10:57:58 +00:00
sysmobts_mgr.c cosmetic: sysmobts-mgr: fix whitespace indentation 2021-01-04 18:07:23 +01:00
sysmobts_mgr.h sysmobts_mgr: Add support for gpsd < 2.96 2018-12-18 21:40:00 +01:00
sysmobts_mgr_2050.c sysmobts: Add slave on/off action for the sysmoBTS2050 2014-12-16 20:22:28 +01:00
sysmobts_mgr_calib.c Use osmo_fd_*_{disable,enable} 2021-02-03 10:41:16 +01:00
sysmobts_mgr_nl.c Prepare for BTS attribute reporting via OML 2017-05-15 08:12:15 +00:00
sysmobts_mgr_temp.c Copy sysmobts.service to osmo-bts-sysmo 2017-06-22 10:50:00 +00:00
sysmobts_mgr_vty.c Fix common misspellings and typos 2019-10-17 08:05:35 +00:00
sysmobts_misc.c sysmobts-mgr: Fix path to hwmon in /sys 2021-05-28 17:54:26 +00:00
sysmobts_misc.h sysmobts: Add slave on/off action for the sysmoBTS2050 2014-12-16 20:22:28 +01:00
sysmobts_nl.c sysmobts-mgr: Respond to ipaccess-find broadcast messages 2014-01-17 09:32:05 +01:00
sysmobts_nl.h sysmobts-mgr: Respond to ipaccess-find broadcast messages 2014-01-17 09:32:05 +01:00
sysmobts_par.c add support for sysmoBTS 1003 aka "1002 with GPS and PoE" 2021-02-15 10:57:58 +00:00
sysmobts_par.h Prepare for BTS attribute reporting via OML 2017-05-15 08:12:15 +00:00
sysmobts_util.c sysmobts: Store a simple network config in the EEPROM as well 2017-04-30 21:45:08 +00:00