1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
|
--
-- GlowDtd.asn1
-- Lawo GmbH
--
-- This file defines the Glow DTD used with the Ember+ protocol.
--
-- Change Log:
--
-- 2.50:
-- - Added nullable parameter values.
-- 2.40:
-- - NOTE: This version describes the data schema of Ember+ 1.4.
-- - Added Template Extensions
-- 2.30:
-- - NOTE: This version describes the data schema of Ember+ 1.3.
-- - Added Schema Extensions
-- 2.20:
-- - NOTE: This version describes the data schema of Ember+ 1.2.
-- - Added Function Extensions (see type Function)
-- 2.10:
-- - NOTE: This version describes the data schema of Ember+ 1.1.
-- - Added Matrix Extensions (see type Matrix)
-- - Added "isOnline" field to NodeContents
-- 2.5:
-- - NOTE: This version describes the data schema of Ember+ 1.0.
-- - NOTE: This version introduces breaking changes!
-- - Changed Parameter.isCommand (BOOLEAN) to an enumeration named "type".
-- To determine the effective type of a parameter, follow this rule:
-- - If the parameter has the "type" field that equals "trigger", its
-- type is "trigger".
-- - If the parameter has either the "enumeration" or the "enumMap" field,
-- its type is "enum".
-- - If the parameter has the "value" field, its type corresponds to the
-- BER type of the value.
-- - If the parameter has the "type" field, its type is the value of this
-- field.
-- This is useful for parameters that do not specify a current value -
-- e.g. "trigger" parameters or parameters that have write-only access.
-- - Changed Parameter.isWriteable (BOOLEAN) to an enumeration named
-- "access".
-- - More options for Value - now also supports OCTET STRING and BOOLEAN
-- - Introduces QualifiedParameter and QualifiedNode types
-- - Introduces RootElement and RootElementCollection types:
-- At the root level, a different set of supported types is available.
-- - StreamCollection can also be used as root container.
-- - Introduces the StreamDescription type and the field "streamDescriptor"
-- in type ParameterContents.
-- 2.4:
-- - NOTE: This version introduces breaking changes!
-- - moved "children" in Parameter and Node out of
-- "contents" SET.
-- 2.3:
-- - Added size constraints for INTEGER values.
-- - Renamed EnumEntry to StringIntegerPair
-- - Renamed EnumCollection to StringIntegerCollection
-- 2.2:
-- - Added new field "enumMap" to Parameter and types to describe
-- enum entries: EnumEntry and EnumCollection
-- 2.1:
-- - NOTE: This version introduces breaking changes!
-- - Replaced all APPLICATION tags for fields with CONTEXT-SPECIFIC tags
-- APPLICATION tags are only used for custom types now.
-- 2.0:
-- Initial Release
--
EmberPlus-Glow DEFINITIONS EXPLICIT TAGS ::= BEGIN
-- ======================================================
--
-- Primitive Types
--
-- ======================================================
EmberString ::= UTF8String
Integer32 ::= INTEGER (-2147483648 .. 2147483647)
Integer64 ::= INTEGER (-9223372036854775808 .. 9223372036854775807)
-- this is the base oid for all RELATIVE-OID values defined in this document.
-- when using the RELATIVE-OID type, defining a base oid is required by ASN.1.
-- does not have any impact upon the DTD.
baseOid OBJECT IDENTIFIER ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) lsb(37411) lsb-mgmt(2) emberPlus(1) glow(1) glowVolatile(100) }
-- ======================================================
--
-- Template
--
-- ======================================================
Template ::=
[APPLICATION 24] IMPLICIT SET {
number [0] Integer32,
element [1] TemplateElement OPTIONAL,
description [2] EmberString OPTIONAL
}
QualifiedTemplate ::=
[APPLICATION 25] IMPLICIT SET {
path [0] RELATIVE-OID,
element [1] TemplateElement OPTIONAL,
description [2] EmberString OPTIONAL
}
TemplateElement ::=
CHOICE {
parameter Parameter,
node Node,
matrix Matrix,
function Function
}
-- ======================================================
--
-- Parameter
--
-- ======================================================
Parameter ::=
[APPLICATION 1] IMPLICIT
SEQUENCE {
number [0] Integer32,
contents [1] ParameterContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
QualifiedParameter ::=
[APPLICATION 9] IMPLICIT
SEQUENCE {
path [0] RELATIVE-OID,
contents [1] ParameterContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
ParameterContents ::=
SET {
identifier [ 0] EmberString OPTIONAL,
description [ 1] EmberString OPTIONAL,
value [ 2] Value OPTIONAL,
minimum [ 3] MinMax OPTIONAL,
maximum [ 4] MinMax OPTIONAL,
access [ 5] ParameterAccess OPTIONAL,
format [ 6] EmberString OPTIONAL,
enumeration [ 7] EmberString OPTIONAL,
factor [ 8] Integer32 OPTIONAL,
isOnline [ 9] BOOLEAN OPTIONAL,
formula [10] EmberString OPTIONAL,
step [11] Integer32 OPTIONAL,
default [12] Value OPTIONAL,
type [13] ParameterType OPTIONAL,
streamIdentifier [14] Integer32 OPTIONAL,
enumMap [15] StringIntegerCollection OPTIONAL,
streamDescriptor [16] StreamDescription OPTIONAL,
schemaIdentifiers[17] EmberString OPTIONAL,
templateReference[18] RELATIVE-OID OPTIONAL
}
Value ::=
CHOICE {
integer Integer64,
real REAL,
string EmberString,
boolean BOOLEAN,
octets OCTET STRING,
null NULL
}
MinMax ::=
CHOICE {
integer Integer64,
real REAL,
null NULL
}
ParameterType ::=
INTEGER {
null (0),
integer (1),
real (2),
string (3),
boolean (4),
trigger (5),
enum (6),
octets (7)
}
ParameterAccess ::=
INTEGER {
none (0),
read (1), -- default
write (2),
readWrite (3)
}
StringIntegerPair ::=
[APPLICATION 7] IMPLICIT
SEQUENCE {
entryString [0] EmberString,
entryInteger [1] Integer32
}
StringIntegerCollection ::=
[APPLICATION 8] IMPLICIT
SEQUENCE OF [0] StringIntegerPair
StreamDescription ::=
[APPLICATION 12] IMPLICIT
SEQUENCE {
streamFormat [0] StreamFormat,
offset [1] Integer32 -- byte offset of the value in the streamed blob.
}
-- type: 0=uint, 1=int, 2=float
-- size: 0=1byte, 1=2byte, 2=4byte, 3=8byte
-- endianness: 0=big, 1=little
StreamFormat ::=
INTEGER {
unsignedInt8 ( 0), -- 00000 00 0
unsignedInt16BigEndian ( 2), -- 00000 01 0
unsignedInt16LittleEndian ( 3), -- 00000 01 1
unsignedInt32BigEndian ( 4), -- 00000 10 0
unsignedInt32LittleEndian ( 5), -- 00000 10 1
unsignedInt64BigEndian ( 6), -- 00000 11 0
unsignedInt64LittleEndian ( 7), -- 00000 11 1
signedInt8 ( 8), -- 00001 00 0
signedInt16BigEndian (10), -- 00001 01 0
signedInt16LittleEndian (11), -- 00001 01 1
signedInt32BigEndian (12), -- 00001 10 0
signedInt32LittleEndian (13), -- 00001 10 1
signedInt64BigEndian (14), -- 00001 11 0
signedInt64LittleEndian (15), -- 00001 11 1
ieeeFloat32BigEndian (20), -- 00010 10 0
ieeeFloat32LittleEndian (21), -- 00010 10 1
ieeeFloat64BigEndian (22), -- 00010 11 0
ieeeFloat64LittleEndian (23) -- 00010 11 1
}
-- ======================================================
--
-- Command
--
-- ======================================================
Command ::=
[APPLICATION 2] IMPLICIT
SEQUENCE {
number [0] CommandType,
options CHOICE {
dirFieldMask [1] FieldFlags, -- only valid if number is getDirectory(32)
invocation [2] Invocation -- only valid if number is invoke(33)
} OPTIONAL
}
CommandType ::=
INTEGER {
subscribe (30),
unsubscribe (31),
getDirectory (32),
invoke (33)
}
FieldFlags ::=
INTEGER {
sparse (-2),
all (-1),
default ( 0), -- same as "all"
identifier ( 1),
description ( 2),
tree ( 3),
value ( 4),
connections ( 5)
}
-- ======================================================
--
-- Node
--
-- ======================================================
Node ::=
[APPLICATION 3] IMPLICIT
SEQUENCE {
number [0] Integer32,
contents [1] NodeContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
QualifiedNode ::=
[APPLICATION 10] IMPLICIT
SEQUENCE {
path [0] RELATIVE-OID,
contents [1] NodeContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
NodeContents ::=
SET {
identifier [0] EmberString OPTIONAL,
description [1] EmberString OPTIONAL,
isRoot [2] BOOLEAN OPTIONAL,
isOnline [3] BOOLEAN OPTIONAL, -- default is true
schemaIdentifiers[4] EmberString OPTIONAL,
templateReference[5] RELATIVE-OID OPTIONAL
}
-- ======================================================
--
-- Matrix
--
-- ======================================================
Matrix ::=
[APPLICATION 13] IMPLICIT
SEQUENCE {
number [0] Integer32,
contents [1] MatrixContents OPTIONAL,
children [2] ElementCollection OPTIONAL,
targetList [3] TargetCollection OPTIONAL,
sourceList [4] SourceCollection OPTIONAL,
connections [5] ConnectionCollection OPTIONAL
}
MatrixContents ::=
SET {
identifier [ 0] EmberString,
description [ 1] EmberString OPTIONAL,
type [ 2] MatrixType OPTIONAL,
addressingMode [ 3] MatrixAddressingMode OPTIONAL,
targetCount [ 4] Integer32, -- linear: matrix X size; nonLinear: number of targets
sourceCount [ 5] Integer32, -- linear: matrix Y size; nonLinear: number of sources
maximumTotalConnects [ 6] Integer32 OPTIONAL, -- nToN: max number of set connections
maximumConnectsPerTarget [ 7] Integer32 OPTIONAL, -- nToN: max number of sources connected to one target
parametersLocation [ 8] ParametersLocation OPTIONAL,
gainParameterNumber [ 9] Integer32 OPTIONAL, -- nToN: number of connection gain parameter
labels [10] LabelCollection OPTIONAL,
schemaIdentifiers [11] EmberString OPTIONAL,
templateReference [12] RELATIVE-OID OPTIONAL
}
-- Addressing scheme for node at MatrixContents.parametersLocation:
-- N 0001 targets.<targetNumber>: subtree containing parameters attached to target with <targetNumber>
-- N 0002 sources.<sourceNumber>: subtree containing parameters attached to source with <targetNumber>
-- N 0003 connections.<targetNumber>.<sourceNumber>: : subtree containing parameters attached to connection <targetNumber>/<sourceNumber>
MatrixType ::=
INTEGER {
oneToN (0), -- default
oneToOne (1),
nToN (2)
}
MatrixAddressingMode ::=
INTEGER {
linear (0), -- default
nonLinear (1)
}
ParametersLocation ::=
CHOICE {
basePath RELATIVE-OID, -- absolute path to node containing parameters for targets, sources and connections
inline Integer32 -- subidentifier to node containing parameters for targets, sources and connections
}
LabelCollection ::=
SEQUENCE OF [0] Label
Label ::=
[APPLICATION 18] IMPLICIT
SEQUENCE {
basePath [0] RELATIVE-OID,
description [1] EmberString
}
TargetCollection ::=
SEQUENCE OF [0] Target
Target ::=
[APPLICATION 14] IMPLICIT
Signal
Signal ::=
SEQUENCE {
number [0] Integer32
}
SourceCollection ::=
SEQUENCE OF [0] Source
Source ::=
[APPLICATION 15] IMPLICIT
Signal
ConnectionCollection ::=
SEQUENCE OF [0] Connection
Connection ::=
[APPLICATION 16] IMPLICIT
SEQUENCE {
target [0] Integer32,
sources [1] PackedNumbers OPTIONAL, -- not present or empty array means "none"
operation [2] ConnectionOperation OPTIONAL,
disposition [3] ConnectionDisposition OPTIONAL
}
-- Use case 1: Tally (Provider to consumer)
-- Connection: { target:1, sources:[5,2], operation:absolute, disposition:tally }
-- Use case 2: Take (Consumer to provider)
-- Connection: { target:1, sources:[4], operation:absolute|connect|disconnect }
-- Use case 3: TakeResponse (Provider to consumer)
-- Connection: { target:1, sources:[4], operation:absolute, disposition:modified|pending|locked|... }
PackedNumbers ::=
RELATIVE-OID
ConnectionOperation ::=
INTEGER {
absolute (0), -- default. sources contains absolute information
connect (1), -- nToN only. sources contains sources to add to connection
disconnect (2) -- nToN only. sources contains sources to remove from connection
}
ConnectionDisposition ::=
INTEGER {
tally (0), -- default
modified (1), -- sources contains new current state
pending (2), -- sources contains future state
locked (3) -- error: target locked. sources contains current state
-- more tbd.
}
QualifiedMatrix ::=
[APPLICATION 17] IMPLICIT
SEQUENCE {
path [0] RELATIVE-OID,
contents [1] MatrixContents OPTIONAL,
children [2] ElementCollection OPTIONAL,
targetList [3] TargetCollection OPTIONAL,
sourceList [4] SourceCollection OPTIONAL,
connections [5] ConnectionCollection OPTIONAL
}
-- ======================================================
--
-- Function
--
-- ======================================================
Function ::=
[APPLICATION 19] IMPLICIT
SEQUENCE {
number [0] Integer32,
contents [1] FunctionContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
QualifiedFunction ::=
[APPLICATION 20] IMPLICIT
SEQUENCE {
path [0] RELATIVE-OID,
contents [1] FunctionContents OPTIONAL,
children [2] ElementCollection OPTIONAL
}
FunctionContents ::=
SET {
identifier [0] EmberString OPTIONAL,
description [1] EmberString OPTIONAL,
arguments [2] TupleDescription OPTIONAL,
result [3] TupleDescription OPTIONAL,
templateReference[4] RELATIVE-OID OPTIONAL
}
TupleDescription ::=
SEQUENCE OF [0] TupleItemDescription
TupleItemDescription ::=
[APPLICATION 21] IMPLICIT
SEQUENCE {
type [0] ParameterType,
name [1] EmberString OPTIONAL
}
Invocation ::=
[APPLICATION 22] IMPLICIT
SEQUENCE {
invocationId [0] Integer32 OPTIONAL,
arguments [1] Tuple OPTIONAL
}
Tuple ::=
SEQUENCE OF [0] Value
InvocationResult ::=
[APPLICATION 23] IMPLICIT
SEQUENCE {
invocationId [0] Integer32,
success [1] BOOLEAN OPTIONAL,
result [2] Tuple OPTIONAL
}
-- ======================================================
--
-- ElementCollection
--
-- ======================================================
ElementCollection ::=
[APPLICATION 4] IMPLICIT
SEQUENCE OF [0] Element
Element ::=
CHOICE {
parameter Parameter,
node Node,
command Command,
matrix Matrix,
function Function,
template Template
}
-- ======================================================
--
-- Streams
--
-- ======================================================
StreamEntry ::=
[APPLICATION 5] IMPLICIT
SEQUENCE {
streamIdentifier [0] Integer32,
streamValue [1] Value
}
StreamCollection ::=
[APPLICATION 6] IMPLICIT
SEQUENCE OF [0] StreamEntry
-- ======================================================
--
-- Root
--
-- ======================================================
Root ::=
[APPLICATION 0]
CHOICE {
elements RootElementCollection,
streams StreamCollection,
invocationResult InvocationResult
}
RootElementCollection ::=
[APPLICATION 11] IMPLICIT
SEQUENCE OF [0] RootElement
RootElement ::=
CHOICE {
element Element,
qualifiedParameter QualifiedParameter,
qualifiedNode QualifiedNode,
qualifiedMatrix QualifiedMatrix,
qualifiedFunction QualifiedFunction,
qualifiedTemplate QualifiedTemplate
}
END
|