-- DENKOVI SNMP STACK SMIV2 SPECIFICATION CONTROL MIB
--

DENKOVI-MIB DEFINITIONS ::= BEGIN

IMPORTS
   MODULE-IDENTITY,enterprises, 
   IpAddress ,Integer32		   		FROM SNMPv2-SMI
   -- Gauge, TimeTicks     			FROM RFC1155-SMI
   DisplayString                    FROM SNMPv2-TC
   OBJECT-TYPE                      FROM RFC-1212
   NOTIFICATION-TYPE                FROM SNMPv2-SMI
   -- TRAP-TYPE                     FROM RFC-1215
   SnmpAdminString                  FROM SNMP-FRAMEWORK-MIB
   KeyChange                        FROM SNMP-USER-BASED-SM-MIB
   TEXTUAL-CONVENTION				FROM SNMPv2-TC
   MODULE-COMPLIANCE, OBJECT-GROUP , 
   NOTIFICATION-GROUP  				FROM SNMPv2-CONF;

smartDENIP32IN MODULE-IDENTITY
    LAST-UPDATED "201610140000Z"
    ORGANIZATION "Denkovi Assembly Electronics, Ltd"
    CONTACT-INFO
                  "www.denkovi.com"
    DESCRIPTION
        "The MIB for smartDEN IP-32IN controller, v1.22."

	REVISION 	"201610140000Z"
	DESCRIPTION
        "The smartDEN IP-32IN MIB module for SMIv2, v1.22."
    ::= { Denkovi 7 }
   
Denkovi                     OBJECT IDENTIFIER ::=  { enterprises 42505 }

Product                     OBJECT IDENTIFIER ::=  { smartDENIP32IN 1 }
Setup                       OBJECT IDENTIFIER ::=  { smartDENIP32IN 2 }
Control                     OBJECT IDENTIFIER ::=  { smartDENIP32IN 3 }
Traps                       OBJECT IDENTIFIER ::=  { smartDENIP32IN 4 }

--------------------------------------------------------------------------------
Name    OBJECT-TYPE
   SYNTAX DisplayString (SIZE (0..14))
   MAX-ACCESS read-write
   STATUS current
   DESCRIPTION
      "smartDEN IP-32IN Device Name (maxlen=15)"
   ::= { Product 1 }

Version    OBJECT-TYPE
   SYNTAX DisplayString
   MAX-ACCESS read-only
   STATUS current
   DESCRIPTION
      "Version"
   ::= { Product 2 }
   
Date    OBJECT-TYPE
   SYNTAX DisplayString
   MAX-ACCESS read-only
   STATUS current
   DESCRIPTION
      "Date"
   ::= { Product 3 }
--------------------------------------------------------------------------------
DigitalInputsTable OBJECT-TYPE
    SYNTAX SEQUENCE OF DigitalInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Digital Inputs Table"
    ::= { Setup 1 }

DigitalInputEntry OBJECT-TYPE
    SYNTAX DigitalInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Digital Input Entry"
    INDEX { DigitalInputNumber }
     ::= { DigitalInputsTable 1 }

DigitalInputEntry ::=
    SEQUENCE {
        DigitalInputNumber Integer (0..15),
        DigitalInputDescription DisplayString,
        DigitalInputCounter Integer32 (0..65535),
        DigitalInputFilter Integer (0..200),
        DigitalInputTrapEnabled Integer { no(0),yes(1) },
        DigitalInputTrapValue Integer (0..2),
        DigitalInputState Integer { off(0), on(1) }
    }

DigitalInputNumber OBJECT-TYPE
    SYNTAX Integer(0..15)
    MAX-ACCESS	not-accessible
    STATUS	current
    DESCRIPTION
	"Digital Input Number (0..15)"
    ::= { DigitalInputEntry 1 }

DigitalInputDescription OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Digital Input Description (maxlen=7)"
    ::= { DigitalInputEntry 2 }

DigitalInputCounter OBJECT-TYPE
    SYNTAX Integer32 (0..65535)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Digital Input Counter (0..65535)"
    ::= { DigitalInputEntry 3 }

DigitalInputFilter OBJECT-TYPE
    SYNTAX Integer (0..200)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Digital Input Filter (0..200), ms"
    ::= { DigitalInputEntry 4 }

DigitalInputTrapEnabled OBJECT-TYPE
    SYNTAX Integer { no(0),yes(1) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Digital Input Trap Enable Flag (Disabled-0, Enabled-1)"
    ::= { DigitalInputEntry 5 }

DigitalInputTrapValue OBJECT-TYPE
    SYNTAX Integer { off(0),on(1),both(2) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Digital Input Trap Value (off-0, on-1, both-2)"
    ::= { DigitalInputEntry 6 }

DigitalInputState OBJECT-TYPE
    SYNTAX Integer { off(0), on(1) }
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
        "Digital Input State (off-0, on-1)"
    ::= { DigitalInputEntry 7 }

--------------------------------------------------------------------------------
AnalogInputsTable OBJECT-TYPE
    SYNTAX SEQUENCE OF AnalogInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Analog Inputs Table"
    ::= { Setup 2 }

AnalogInputEntry OBJECT-TYPE
    SYNTAX AnalogInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Analog Input Entry"
    INDEX { AnalogInputNumber }
     ::= { AnalogInputsTable 1 }

AnalogInputEntry ::=
    SEQUENCE {
        AnalogInputNumber Integer (0..7),
        AnalogInputDescription DisplayString,
        AnalogInputLowThreshold Integer (0..1023),
        AnalogInputHighThreshold Integer (0..1023),
        AnalogInputTrapEnabled Integer { no(0),yes(1) },
        AnalogInputValue Integer (0..1023),
        AnalogInputMin DisplayString,
        AnalogInputMax DisplayString,
        AnalogInputLabel DisplayString,
        AnalogInputMeasure DisplayString
    }

AnalogInputNumber OBJECT-TYPE
    SYNTAX Integer (0..7)
    MAX-ACCESS	not-accessible
    STATUS	current
    DESCRIPTION
	"Analog Input Number (0..7)"
    ::= { AnalogInputEntry 1 }

AnalogInputDescription OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Analog Input Description (maxlen=7)"
    ::= { AnalogInputEntry 2 }

AnalogInputTrapLowThreshold OBJECT-TYPE
    SYNTAX  Integer (0..1023)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Analog Input Trap Low Threshold (0..1023)"
    ::= { AnalogInputEntry 3 }

AnalogInputTrapHighThreshold OBJECT-TYPE
    SYNTAX  Integer (0..1023)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Analog Input Trap High Threshold (0..1023)"
    ::= { AnalogInputEntry 4 }

AnalogInputTrapEnabled OBJECT-TYPE
    SYNTAX Integer { no(0),yes(1) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Analog Input Trap Enable Flag (Disabled-0, Enabled-1)"
    ::= { AnalogInputEntry 5 }

AnalogInputValue OBJECT-TYPE
    SYNTAX Integer (0..1023)
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
        "Analog Input ADC Value"
    ::= { AnalogInputEntry 6 }

AnalogInputMin OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Analog Input Min Value (maxlen=7)"
    ::= { AnalogInputEntry 7 }

AnalogInputMax OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Analog Input Max Value (maxlen=7)"
    ::= { AnalogInputEntry 8 }

AnalogInputLabel OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..3))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Analog Input Label (maxlen=4)"
    ::= { AnalogInputEntry 9 }

AnalogInputMeasure OBJECT-TYPE
    SYNTAX  DisplayString 
    MAX-ACCESS  read-only
    STATUS current
    DESCRIPTION
        "Analog Input Measured Value"
    ::= { AnalogInputEntry 10 }

--------------------------------------------------------------------------------
TemperatureInputsTable OBJECT-TYPE
    SYNTAX SEQUENCE OF TemperatureInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Temperature Inputs Table"
    ::= { Setup 3 }

TemperatureInputEntry OBJECT-TYPE
    SYNTAX TemperatureInputEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Temperature Input Entry"
    INDEX { TemperatureInputNumber }
     ::= { TemperatureInputsTable 1 }

TemperatureInputEntry ::=
    SEQUENCE {
        TemperatureInputNumber Integer (0..7),
        TemperatureInputName DisplayString,
		TemperatureInputSensorTolerance Integer (-5..5),
		TemperatureInputTrapLowThreshold Integer (-260..200),
		TemperatureInputTrapHighThreshold (-260..200),
		TemperatureInputTrapEnabled Integer { no(0),yes(1) },
        TemperatureInputValue DisplayString
    }
	
TemperatureInputNumber OBJECT-TYPE
    SYNTAX Integer (0..7)
    MAX-ACCESS	not-accessible
    STATUS	current
    DESCRIPTION
	"Temperature Input Number (0..7)"
    ::= { TemperatureInputEntry 1 }

TemperatureInputName OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Temperature Input Name (maxlen=7)"
    ::= { TemperatureInputEntry 2 }

TemperatureInputSensorTolerance OBJECT-TYPE
    SYNTAX Integer (-5..5)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Temperature Input Sensor Type(NTCACAP-0, B57500M-1)"	
    ::= { TemperatureInputEntry 3 }

TemperatureInputTrapLowThreshold OBJECT-TYPE
    SYNTAX  Integer (-55..155)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Temperature Input Trap Low Threshold (-55..155)"
    ::= { TemperatureInputEntry 4 }

TemperatureInputTrapHighThreshold OBJECT-TYPE
    SYNTAX  Integer (-55..155)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Temperature Input Trap High Threshold (-55..155)"
    ::= { TemperatureInputEntry 5 }

TemperatureInputTrapEnabled OBJECT-TYPE
    SYNTAX Integer { no(0),yes(1) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Temperature Input Trap Enable Flag (Disabled-0, Enabled-1)"
    ::= { TemperatureInputEntry 6 }	
	
TemperatureInputValue OBJECT-TYPE
    SYNTAX DisplayString 
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
        "Temperature Input Value"
    ::= { TemperatureInputEntry 7 }
--------------------------------------------------------------------------------

DigitalInputsState OBJECT-TYPE
    SYNTAX Integer32 (0..65535)
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION
        "Digital Inputs State (0..65535)"
    ::= { Control 1}
--------------------------------------------------------------------------------
Reboot OBJECT-TYPE
    SYNTAX Integer (0..255)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Reboot smartDEN IP-32IN Module"
    ::= { Control 2 }

sysUpTime OBJECT-TYPE
   SYNTAX      TimeTicks
   MAX-ACCESS  read-only
   STATUS      current
   DESCRIPTION "The time (in hundredths of a second) since the
           module was last re-initialized."
   ::= { Control 3 }

--------------------------------------------------------------------------------
TrapEnabled OBJECT-TYPE
    SYNTAX Integer { no(0),yes(1) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Trap Enable Flag (Disabled-0, Enabled-1)"
    ::= { Traps 1 }

TrapReceiverIPAddress OBJECT-TYPE
    SYNTAX  IpAddress
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Trap Receiver IP Address"
    ::= { Traps 2 }

TrapReceiverPort OBJECT-TYPE
    SYNTAX Integer32 (0..65535)
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Trap Receiver Port (0..65535)"
    ::= { Traps 3 }

TrapCommunity OBJECT-TYPE
    SYNTAX  DisplayString (SIZE (0..7))
    MAX-ACCESS  read-write
    STATUS current
    DESCRIPTION
        "Community in Sending Trap"
    ::= { Traps 4 }

TrapSending OBJECT-TYPE
    SYNTAX Integer { (0), (1) }
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION
        "Trap Sending (Level Triggered-0, Edge  Triggered-1)"
    ::= { Traps 5 }

-- Target MIB 
END   
