Presentation is loading. Please wait.

Presentation is loading. Please wait.

Layers and Alternative Application Layers Malcolm Clarke September 10, 2012.

Similar presentations


Presentation on theme: "Layers and Alternative Application Layers Malcolm Clarke September 10, 2012."— Presentation transcript:

1 Layers and Alternative Application Layers Malcolm Clarke September 10, 2012

2 General Concepts of Layers

3 Object Approach Handle Type Unit-Code Simple-Nu- Observed-Value Absolute-Time- Stamp l The object approach of 11073 is a general mechanism to update values of all attributes from the object in the Agent to its proxy object in the Manager l This can be done asynchronously (Events) or by polling (Get) l Can also act on the object to update attributes (Set) or interact (Actions) Handle Type Unit-Code Simple-Nu- Observed-Value Absolute-Time- Stamp Events Actions Get Set Agent Object Manager Proxy Object

4 Layers - ACSE Application Code Object Layer ROSE (Service Layer) ACSE (Association layer) Transport Network l This is achieved using physical connection and exchanging APDU between peer entities in the ACSE (Association Control Service Element) l ACSE is responsible for association and messages are exchanged for Associate, Release and Abort APDU Associate, Release, Abort

5 Layers - ROSE Application Code Object Layer ROSE (Service Layer) ACSE (Association layer) Transport Network l Once associated, PDU are exchanged between peer entities in ROSE (Remote Operation Service Element) l ROSE is responsible for providing METHODS to access and manage Objects and messages are exchanged for Get, Set, Event and Action APDU Associate, Release, Abort PDU Methods Get, Set, Event, Action

6 Layers – Object Layer Application Code Object Layer ROSE (Service Layer) ACSE (Association layer) Transport Network l ROSE operates on peer objects in the Object Layer l ACSE and ROSE constitute the Association Layer APDU Associate, Release, Abort PDU Methods Get, Set, Event, Action PDU Parameters Attribute values { Association Layer

7 11073 Object Layer Handle Type Observed value Units l Objects in 11073 are accessed indirectly l Each object is referenced by its Handle and the type of the object is taken from the type attribute l Each attribute is accessed by using its nomenclature code (32 bits – 16+16) l The type of the attribute is defined by ASN.1 and structured types fully defined down to basic types l This has the advantage of allowing multiple instances of the same object type Parameters (Attribute:Value) Methods (Get, Set, Event, Action)

8 Alternative Association Layers

9 l Several transport technologies now define and support an object oriented approach and provide primitives to access and manage objects (methods) l Zigbee defines the Zigbee Cluster Library (ZCL) l BT LE defines ATT and GATT l Could these alternative Association Layers support 11073 objects and methods?

10 Zigbee Cluster Library l Supports l Discover Attributes l Read Attributes l Write Attributes l Report Attributes l Configure reporting l Min/Max time between reports l Min change between reports l Read Reporting Configuration

11 Zigbee Cluster Library l Defines l Attribute Clusters (eg General, Power configuration) l The collection of clusters defined as a profile l Attribute Sets in the cluster (eg Basic device information, basic device settings) l Attributes in the set l Currently 12 bits used to identify the Attribute Set and 4 bits the attribute within the set l Up 1000 addressable Attribute Sets (objects) each with up to 16 addressable attributes

12 Zigbee Attribute Reporting Variable ZCL HeaderAttribute Report 1 Attribute Report 2 Attribute Report n 2 Octets1 OctetVariable Attribute IdentifierAttribute Data TypeAttribute Value

13 ZCL Object Layer – example General Attribute Set Attribute Set IdentifierDescription 0x0000Basic device information 0x0001Basic device settings 0x0002-0xffffDefined in ZCL documentation IdentifierNameTypeRangeAccessDefaultMandatory / Optional 0x0000ZCLVersionUnsigned 8-bit integer 0x00 – 0xffRead only0x00M 0x0001Application Version Unsigned 8-bit integer 0x00 – 0xffRead only0x00O Etc Attributes of Basic Device Information Attribute Set

14 Zigbee Cluster Library l Can we map 11073 devices to ZCL?

15 ZCL Object Layer – take an example Weighing Scale Attribute Set Attribute Set Identifier (Class)Description 0x0000Basic device information 0x1000MDS 0x1001Metric 0x1002RT-SA 0x1003PM Store IdentifierNameTypeRangeAccessDefaultMandatory / Optional 0x0000TypeTYPE0x0000 – 0xffffRead only0x0000M 0x0001Metric-Spec- Small 32 bit map0x00000000 – 0xffffffff Read only0x000000 00 M Etc Attributes of Basic Mass Attribute Set

16 Metric Object Attributes Attribute NameAttribute TypeIdentifierNotes HandleHANDLEUnused Type/Supplemental-TypesTYPE/SupplementalTypeList0000Only one, type distinguishes Metric-Spec-SmallMetricSpecSmall0001 Metric-Structure-SmallMetricStructureSmall0002 Measurement-StatusMeasurementStatus0003 Metric-Id/Metric-Id-ListOID-Type/MetricIdList0004Only one, type distinguishes Metric-Id-PartitionNomPartition0005 Unit-CodeOID-Type0006 Attribute-Value-MapAttrValMapUnused Source-Handle-ReferenceHANDLE0007 Label-StringOCTET STRING0008 Unit-LabelStringOCTET STRING0009 Absolute-Time-stamp/Relative- Time-Stamp/HiRes-Time-Stamp AbsoluteTime/RelativeTime/H ighResRelativeTime 0010Only one, type distinguishes Measure-Active-PeriodFLOAT-Type0011

17 Numeric Object Attributes Attribute NameAttribute TypeNumberNotes Simple-Nu-Observed-ValueSimpleNuObsValue0012Only one, type distinguishes Compound-Simple-Nu- Observed-Value SimpleNuObsValueCmp Basic-Nu-Observed-ValueBasicNuObsValue Compound-Basic-Nu-Observed- Value BasicNuObsValueCmp Nu-Observed-ValueNuObsValue Compound-Nu-Observed-ValueNuObsValueCmp AccuracyFLOAT-Type0013

18 Enumeration Object Attributes Attribute NameAttribute TypeNumberNotes Enum-Observed-Value-Simple-OIDOID-Type0012Only one, type distinguishes Enum-Observed-Value-Simple-Bit-StrBITS-32 Enum-Observed-Value-Basic-Bit-StrBITS-16 Enum-Observed-Value-Simple-StrEnumPrintableString Enum-Observed-ValueEnumObsValue Enum-Observed-Value-PartitionNomPartition0013

19 RT-SA Object Attributes Attribute NameAttribute TypeNumberNotes Sample-PeriodRelativeTime12 Simple-Sa-Observed-ValueOCTET STRING13 Scale-and-Range-SpecificationScaleRangeSpec8 ScaleRangeSpec16 ScaleRangeSpec32 14Only one, type distinguishes Sa-SpecificationSaSpec15

20 MDS Object Attributes Attribute NameAttribute TypeNumberNotes HandleHANDLE System-TypeTYPE0 System-ModelSystemModel1== Basic Device Information System-IdOCTET STRING2 Dev-Configuration-IdConfigId3 Attribute-Value-MapAttrValMap4 Production-SpecificationProductionSpec5 Mds-Time-InfoMdsTimeInfo6 Date-and-TimeAbsoluteTime7 Relative-TimeRelativeTime8 HiRes-Relative-TimeHighResRelativeTime9 Date-and-Time-AdjustmentAbsoluteTimeAdjust10

21 MDS Object Attributes Attribute NameAttribute TypeNumberNotes Power-StatusPowerStatus== Basic Device Information Battery-LevelINT-U16== Battery Information Remaining-Battery-TimeBatMeasure= = Derive from battery information Reg-Cert-Data-ListRegCertDataList11 System-Type-Spec- List TypeVerList12 Confirm-TimeoutRelativeTime13

22 Limitations l Not instance based addressing

23 BT LE Attributes l BT LE also defines 16 bit attribute identifiers l Provides Object Access Methods l Object.Attribute could be defined for each device and correspond to specialization (ConfigId) as per ZCL l Object.Attribute Sets in the cluster (MDS, Metric Objects) l Attributes in the object set defined per MDS or Metric Object

24 Questions or Comments?


Download ppt "Layers and Alternative Application Layers Malcolm Clarke September 10, 2012."

Similar presentations


Ads by Google