From b4771a6871efb3cf12b371aedc575912984ca528 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 11 Nov 2012 10:58:51 +0100 Subject: 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. 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 --- openbsc/include/openbsc/meas_feed.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 openbsc/include/openbsc/meas_feed.h (limited to 'openbsc/include/openbsc/meas_feed.h') 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 + +#include + +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 -- cgit v1.2.3