diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-11-11 10:58:51 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-01-01 13:03:03 +0100 |
commit | b4771a6871efb3cf12b371aedc575912984ca528 (patch) | |
tree | cfda932aa489b0ec304ceac51f2a6b123191714d /openbsc/include/openbsc/meas_feed.h | |
parent | 7ff77ec713c6569715077344563ff9ab1719619c (diff) |
Initial support for export + curses-visualization of measurements
This extends osmo_nitb to offer a UDP feed of real-time measurement
reports, which can be used by (a variety of) external tools for
visualization or other processing.
We also add a small ncurses based tool (meas_vis) which shows a
baragraph display of the last few mobile stations that were active,
indicating their uplink/downlink receive level and quality.
<WARNING>
This sends non-portable structures like gsm_meas_rep over UDP
and assumes the receiver has identical alignment and endianness! Before
this feature is merged, it either needs to be converted to a unix domain
socket (but they don't do multicast, which would be nice) or the wire
format needs to change into something portable with defined alignment
and encoding
</WARNING>
Diffstat (limited to 'openbsc/include/openbsc/meas_feed.h')
-rw-r--r-- | openbsc/include/openbsc/meas_feed.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/meas_feed.h b/openbsc/include/openbsc/meas_feed.h new file mode 100644 index 000000000..65d09b896 --- /dev/null +++ b/openbsc/include/openbsc/meas_feed.h @@ -0,0 +1,29 @@ +#ifndef _OPENBSC_MEAS_FEED_H +#define _OPENBSC_MEAS_FEED_H + +#include <stdint.h> + +#include <openbsc/meas_rep.h> + +struct meas_feed_hdr { + uint8_t msg_type; + uint8_t reserved; + uint16_t version; +}; + +struct meas_feed_meas { + struct meas_feed_hdr hdr; + char imsi[15+1]; + char name[31+1]; + char scenario[31+1]; + struct gsm_meas_rep mr; +}; + +enum meas_feed_msgtype { + MEAS_FEED_MEAS = 0, +}; + +#define MEAS_FEED_VERSION 0 + + +#endif |