On Thu, Jul 14, 2011 at 11:33 AM, Giuseppe Modugno <[email protected]
> wrote:
> **
> On 14 Jul 2011 at 10:17, Fulko Hew wrote:
>
... snip ...
> > Simple Integer:
> >
> > Why not just have SYNTAX INTEGER (0..100)?
> > Why the complicated 0 to 1000 with steps of 5? and a special 'mute'
> indicator?
> >
> > Personally... I'd go with INTEGER (0..100).
>
> 'mute' is very nice for the user because he can use it without
> remembering the associated value (in this case is 0, but it could be another
> value).
>
> Also the steps are important: the value represents a real volume gain
> in dB: 5=0.5dB, 10=1.0dB... 1000=100.0dB. It would be nice if the user can
> set directly the gain and not just an index of a list.
>
Ahh. 'Gain' is different than volume. Knowing that, I'd define it as
below.
I'd leave the concept of 'muted' as something that the management system
implements. Ie. When the user selects 'muted' the NMS sends -1. If the
NMS
reads -1 it shows the label 'MUTED'.
gainControl OBJECT-TYPE
SYNTAX INTEGER (-1..1000)
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"The 'gainControl' variable allows you to set the
gain of the device between 0 and 100dB in units
tenths of a dB (i.e. 111 == 11.1dB).
Note: Some systems may not allow that level of
granularity and may round off any actual value
provided. e.g. 0.5dB increments. In that case
the variable when read, will indicate the actual
value in operation, not the value requested.
A value of -1 is used to specify/indicate that
the signal is 'muted'.
UNITS "tenths of a dB"
DEFVAL { -1 }
::= { parentNode 1 }
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders