ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
VivoeMibServer Class Reference

VIVOE MIB SNMP Server - TEMPLATE EXAMPLE CLASS. More...

#include <vivoe_mib_server.h>

Inheritance diagram for VivoeMibServer:
Inheritance graph
Collaboration diagram for VivoeMibServer:
Collaboration graph

Data Structures

struct  ChannelConfig
 Channel configuration for day/night camera. More...
struct  VideoFormatConfig
 Video format configuration. More...
struct  EthernetIfConfig
 Ethernet interface configuration. More...

Public Member Functions

 VivoeMibServer (QObject *parent=nullptr)
 Constructor.
 ~VivoeMibServer ()
 Destructor.
bool start (int port=161)
 Start the SNMP server.
void stop ()
 Stop the SNMP server.
bool isRunning () const
 Check if server is running.

Private Slots

void processSnmpRequests ()
 Process SNMP requests in separate thread.

Private Member Functions

void initializeMibHandlers ()
 Initialize VIVOE MIB handlers.

Static Private Member Functions

static int handleDeviceInfo (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
 Static callback functions for SNMP agent.
static QString getDeviceDescription ()
 Helper methods for MIB data.
static QString getDeviceManufacturer ()
static QString getDevicePartNumber ()
static QString getDeviceSerialNumber ()
static QString getHardwareVersion ()
static QString getSoftwareVersion ()
static QString getFirmwareVersion ()
static QString getMibVersion ()
static int getDeviceType ()
static QString getUserDescription ()
static void initializeData ()
 Initialize static data.

Private Attributes

bool m_running
 Server state.
QThread * m_snmpThread
QTimer * m_processTimer

Static Private Attributes

static QMap< int, ChannelConfig > m_channels
 Static data for MIB responses.
static QMap< int, VideoFormatConfig > m_videoFormats
static QMap< int, EthernetIfConfig > m_ethernetInterfaces
static bool m_dataInitialized = false
static long m_deviceMode = 1
 Writable scalars.
static long m_deviceReset = 1
static long m_channelReset = 0
static QString m_deviceUserDesc = "Trailblaizer Day/Night Vision Camera"
static QString m_natoStockNumber = "5855-99-123-4567"

Detailed Description

VIVOE MIB SNMP Server - TEMPLATE EXAMPLE CLASS.

*** TEMPLATE IMPLEMENTATION FOR EDUCATIONAL/TESTING PURPOSES ***

This class provides a complete example of a VIVOE MIB-compliant SNMP server. It simulates a dual-channel day/night camera system following the VIVOE Defence Standard (Def Stan 00-082).

EXAMPLE FEATURES IMPLEMENTED:

  • Device information MIB objects (manufacturer, part number, etc.)
  • Ethernet interface table simulation
  • Video channel table with day/night configurations
  • Video format specifications for H.264 streams
  • Standard VIVOE MIB OID structure (1.3.6.1.4.1.35990.3.1.x)

USER CUSTOMIZATION GUIDE:

  1. Modify device information in get*() static methods
  2. Update channel configurations in initializeData()
  3. Customize MIB handlers for device-specific functionality
  4. Add your hardware control logic in handler callbacks
  5. Configure network settings for your deployment

TESTING:

  • Use ToolX SNMP Walk to verify MIB structure
  • Test with standard SNMP tools (snmpwalk, snmpget)
  • Validate compliance with VIVOE Defence Standard

DEPLOYMENT:

  • Designed to run as systemd service
  • Supports daemon mode for production environments
  • Requires root privileges for standard SNMP port 161

The documentation for this class was generated from the following files: