forked from kristrev/data-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compact_zmq_format.h
125 lines (111 loc) · 5.87 KB
/
compact_zmq_format.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
#pragma once
#define MONROE_ZMQ_DATA_VERSION 1
#define MONROE_ZMQ_DATA_ID_SYSEVENT "MONROE.META.NODE.EVENT"
#define MONROE_ZMQ_DATA_ID_SENSOR "MONROE.META.NODE.SENSOR"
#define MONROE_ZMQ_DATA_ID_MODEM "MONROE.META.DEVICE.MODEM"
#define MONROE_ZMQ_DATA_ID_CONNECTIVITY "MONROE.META.CONNECTIVITY"
#define MONROE_ZMQ_DATA_ID_GPS "MONROE.META.DEVICE.GPS"
#define MONROE_ZMQ_TOPIC_SYSEVENT "MONROE.META.NODE.EVENT"
#define MONROE_ZMQ_TOPIC_SENSOR "MONROE.META.NODE.SENSOR"
#define MONROE_ZMQ_TOPIC_MODEM "MONROE.META.DEVICE.MODEM"
#define MONROE_ZMQ_TOPIC_CONNECTIVITY "MONROE.META.DEVICE.CONNECTIVITY"
#define MONROE_ZMQ_TOPIC_GPS "MONROE.META.DEVICE.GPS"
#define MONROE_ZMQ_TOPIC_MODEM_STATE "STATE"
#define MONROE_ZMQ_TOPIC_MODEM_MODE "MODE"
#define MONROE_ZMQ_TOPIC_MODEM_SIGNAL "SIGNAL"
#define MONROE_ZMQ_TOPIC_MODEM_LTE_BAND "LTE_BAND"
#define MONROE_ZMQ_TOPIC_MODEM_ISP_NAME "ISP_NAME"
#define MONROE_ZMQ_TOPIC_MODEM_UPDATE "UPDATE"
#define MONROE_ZMQ_TOPIC_MODEM_IP_ADDR "IP_ADDR"
#define MONROE_ZMQ_TOPIC_MODEM_LOC_CHANGE "LOC_CHANGE"
#define MONROE_ZMQ_TOPIC_MODEM_NW_MCCMNC_CHANGE "NW_MCCMNC_CHANGE"
#define ZMQ_KEY_SEQ "seq"
#define ZMQ_KEY_TSTAMP "tstamp"
// these are disabled if -DMONROE is not set
#define ZMQ_KEY_DATAID ""
#define ZMQ_KEY_DATAVERSION ""
#define ZMQ_KEY_CID "cid"
#define ZMQ_KEY_DEVICE_MODE "device_mode"
#define ZMQ_KEY_DEVICE_SUBMODE "device_submode"
#define ZMQ_KEY_DEVICE_STATE "device_state"
#define ZMQ_KEY_ECIO "ecio"
#define ZMQ_KEY_ENODEB_ID "enodeb_id"
#define ZMQ_KEY_ICCID "iccid"
#define ZMQ_KEY_IF_NAME "if_name"
#define ZMQ_KEY_IMSI "imsi"
#define ZMQ_KEY_IMSI_MCCMNC "imsi_mccmnc"
#define ZMQ_KEY_IMEI "imei"
#define ZMQ_KEY_IP_ADDR "ip_addr"
#define ZMQ_KEY_INTERNAL_IP_ADDR "internal_ip_addr"
#define ZMQ_KEY_ISP_NAME "isp_name"
#define ZMQ_KEY_LAC "lac"
#define ZMQ_KEY_LTE_RSRP "lte_rsrp"
#define ZMQ_KEY_LTE_FREQ "lte_freq"
#define ZMQ_KEY_LTE_RSSI "lte_rssi"
#define ZMQ_KEY_LTE_RSRQ "lte_rsrq"
#define ZMQ_KEY_LTE_BAND "lte_band"
#define ZMQ_KEY_LTE_PCI "lte_pci"
#define ZMQ_KEY_MODE "mode"
#define ZMQ_KEY_NW_MCCMNC "nw_mccmnc"
#define ZMQ_KEY_RSCP "rscp"
#define ZMQ_KEY_RSSI "rssi"
#define ZMQ_KEY_SIGNAL "signal"
#define ZMQ_KEY_ALTITUDE "alt"
#define ZMQ_KEY_LONGITUDE "lon"
#define ZMQ_KEY_LATITUDE "lat"
#define ZMQ_KEY_NUMSAT "num_sat"
#define ZMQ_KEY_NMEA "nmea_raw"
#define ZMQ_KEY_SPEED "speed"
#define ZMQ_KEY_INTERFACEID "interface_id"
#define ZMQ_KEY_INTERFACENAME "interface_name"
#define ZMQ_KEY_OPERATOR "operator"
#define ZMQ_TOPIC_RADIO_CELL_LOCATION_GERAN "RADIO.CELL_LOCATION_GERAN"
#define ZMQ_TOPIC_RADIO_GSM_RR_CELL_SEL_RESEL_PARAM "RADIO.GSM_RR_CELL_SEL_RESEL_PARAM"
#define ZMQ_TOPIC_RADIO_GRR_CELL_RESEL "RADIO.GRR_CELL_RESEL"
#define ZMQ_TOPIC_RADIO_GSM_RR_CIPHER_MODE "RADIO.GSM_RR_CIPHER_MODE"
#define ZMQ_TOPIC_RADIO_GSM_RR_CHANNEL_CONF "RADIO.GSM_RR_CHANNEL_CONF"
#define ZMQ_KEY_RADIO_CELL_ID "cell_id"
#define ZMQ_KEY_RADIO_PLMN "plmn"
#define ZMQ_KEY_RADIO_LAC "lac"
#define ZMQ_KEY_RADIO_ARFCN "arfcn"
#define ZMQ_KEY_RADIO_BSIC "bsic"
#define ZMQ_KEY_RADIO_TIMING_ADVANCE "timing_advance"
#define ZMQ_KEY_RADIO_RX_LEV "rx_lev"
#define ZMQ_KEY_RADIO_CELL_GERAN_INFO_NMR "cell_geran_info_nmr"
#define ZMQ_KEY_RADIO_SERVING_BCCH_ARFCN "serving_bcch_arfcn"
#define ZMQ_KEY_RADIO_SERVING_PBCCH_ARFCN "serving_pbcch_arfcn"
#define ZMQ_KEY_RADIO_SERVING_PRIORITY_CLASS "serving_priority_class"
#define ZMQ_KEY_RADIO_SERVING_RXLEV_AVG "serving_rxlev_avg"
#define ZMQ_KEY_RADIO_SERVING_C1 "serving_c1"
#define ZMQ_KEY_RADIO_SERVING_C2 "serving_c2"
#define ZMQ_KEY_RADIO_SERVING_C31 "serving_c31"
#define ZMQ_KEY_RADIO_SERVING_C32 "serving_c32"
#define ZMQ_KEY_RADIO_SERVING_FIVE_SECOND_TIMER "serving_five_second_timer"
#define ZMQ_KEY_RADIO_CELL_RESELET_STATUS "cell_reselet_status"
#define ZMQ_KEY_RADIO_RECENT_CELL_SELECTION "recent_cell_selection"
#define ZMQ_KEY_RADIO_GRR_CELL_NEIGHBORS "grr_cell_neighbors"
#define ZMQ_KEY_RADIO_CIPHERING_STATE "ciphering_state"
#define ZMQ_KEY_RADIO_CIPHERING_ALGORITHM "ciphering_algorithm"
#define ZMQ_KEY_RADIO_CELL_RESELECT_HYSTERESIS "cell_reselect_hysteresis"
#define ZMQ_KEY_RADIO_MS_TXPWR_MAX_CCH "ms_txpwr_max_cch"
#define ZMQ_KEY_RADIO_RXLEV_ACCESS_MIN "rxlev_access_min"
#define ZMQ_KEY_RADIO_POWER_OFFSET_VALID "power_offset_valid"
#define ZMQ_KEY_RADIO_POWER_OFFSET "power_offset"
#define ZMQ_KEY_RADIO_NECI "neci"
#define ZMQ_KEY_RADIO_ACS "acs"
#define ZMQ_KEY_RADIO_OPT_RESELECT_PARAM_IND "opt_reselect_param_ind"
#define ZMQ_KEY_RADIO_CELL_BAR_QUALIFY "cell_bar_qualify"
#define ZMQ_KEY_RADIO_CELL_RESELECT_OFFSET "cell_reselect_offset"
#define ZMQ_KEY_RADIO_TEMPORARY_OFFSET "temporary_offset"
#define ZMQ_KEY_RADIO_PENALTY_TIME "penalty_time"
#define ZMQ_KEY_RADIO_NUM_DED_CHANS "num_ded_chans"
#define ZMQ_KEY_RADIO_DTX_INDICATOR "dtx_indicator"
#define ZMQ_KEY_RADIO_POWER_LEVEL "power_level"
#define ZMQ_KEY_RADIO_STARTING_TIME_VALID "starting_time_valid"
#define ZMQ_KEY_RADIO_STARTING_TIME "starting_time"
#define ZMQ_KEY_RADIO_CIPHER_FLAG "cipher_flag"
#define ZMQ_KEY_RADIO_CIPHER_ALGORITHM "cipher_algorithm"
#define ZMQ_KEY_RADIO_AFTER_CHANNEL_CONFIG "after_channel_config"
#define ZMQ_KEY_RADIO_BEFORE_CHANNEL_CONFIG "before_channel_condif"
#define ZMQ_KEY_RADIO_CHANNEL_MODE_1 "channel_mode_1"
#define ZMQ_KEY_RADIO_CHANNEL_MODE_2 "channel_mode_2"