csaba.sipos has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/39315?usp=email )
Change subject: nokia_site: add object_type, object_state and reset_type
......................................................................
nokia_site: add object_type, object_state and reset_type
Change-Id: I0f31cd711768c963e5c14c0f4969ff76cb05c12b
---
M src/osmo-bsc/bts_nokia_site.c
1 file changed, 51 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/15/39315/1
diff --git a/src/osmo-bsc/bts_nokia_site.c b/src/osmo-bsc/bts_nokia_site.c
index 256b49f..1626886 100644
--- a/src/osmo-bsc/bts_nokia_site.c
+++ b/src/osmo-bsc/bts_nokia_site.c
@@ -598,6 +598,57 @@
return get_value_string(nokia_severity, severity);
}
+static const struct value_string nokia_object_type[] = {
+ { 0x01, "BCF" }, /* Base Control Function */
+ { 0x02, "OMU" }, /* Operation and Maintenance Unit */
+ { 0x04, "TRX" }, /* Transceiver (FU + CU) */
+ { 0x05, "BTS" }, /* Base Transceiver Station (1..248) */
+ { 0x07, "FU" }, /* Frame Unit */
+ { 0x08, "CU" }, /* Carrier Unit */
+ { 0x10, "TRE" }, /* Transmission Equipment (0..15) */
+ { 0x11, "TRU" }, /* Transmission Unit */
+ { 0x13, "RTSL" }, /* Radio Timeslot of a FU (0..7) */
+ { 0x14, "DMR" }, /* Digital Microwave Radio Link */
+ { 0x15, "CF" }, /* Conversion Function */
+ { 0x64, "RTC" }, /* Remote Tune Combiner */
+ { 0, NULL }
+};
+
+static const char *get_object_type_string(uint8_t object_type)
+{
+ return get_value_string(nokia_object_type, object_type);
+}
+
+static const struct value_string nokia_object_state[] = {
+ { 0x0, "Enabled" },
+ { 0x1, "Disabled" },
+ { 0x2, "Locked" },
+ { 0x3, "Unlocked" },
+ { 0x4, "Shutdown" }, /* reserved for BTS MMI use */
+ { 0x5, "Powersave" }, /* reserved for BTS MMI use */
+ { 0, NULL }
+};
+
+static const char *get_object_state_string(uint8_t object_state)
+{
+ return get_value_string(nokia_object_state, object_state);
+}
+
+static const struct value_string nokia_reset_type[] = {
+ { 0, "OMU reset" }, /* BTS is still able to carry traffic */
+ { 1, "Site reset" },
+ { 2, "reserved" },
+ { 3, "Autoconfiguration site reset" },
+ { 4, "MetroSite VTGA reset" },
+ { 5, "Total reset" }, /* Complete reset of Packet Abis BTS and Conversion
Function reset */
+ { 0, NULL }
+};
+
+static const char *get_reset_type_string(uint8_t reset_type)
+{
+ return get_value_string(nokia_reset_type, reset_type);
+}
+
/* TODO: put in a separate file ? */
/* some message IDs */
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/39315?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0f31cd711768c963e5c14c0f4969ff76cb05c12b
Gerrit-Change-Number: 39315
Gerrit-PatchSet: 1
Gerrit-Owner: csaba.sipos <metro4(a)freemail.hu>