Layers and Alternative Application Layers.ppt

Document Sample
Layers and Alternative Application Layers.ppt Powered By Docstoc
					            Layers
             and
Alternative Application Layers


        Malcolm Clarke
      September 10, 2012
General Concepts of
      Layers
                             Object Approach
                Agent                                   Manager
                Object                                Proxy Object
            Handle
                                     Events           Handle

            Type                                      Type
                                     Actions
            Unit-Code                                 Unit-Code
                                       Get
            Simple-Nu-                                Simple-Nu-
            Observed-Value                            Observed-Value
            Absolute-Time-
                                       Set            Absolute-Time-
            Stamp                                     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)
                             Layers - ACSE
                                  Application Code



                                      Object Layer



                                             ROSE
                                    (Service Layer)

                                             ACSE      Associate, Release, Abort
                                 (Association layer)
                         APDU             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
                           Layers - ROSE
                                   Application Code



                                       Object Layer



                                              ROSE      Get, Set, Event, Action
                                     (Service Layer)
                        Methods
                        PDU                   ACSE      Associate, Release, Abort
                                  (Association layer)
                        APDU               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
                      Layers – Object Layer
                                       Application Code



                                           Object Layer
                                                          Attribute values

                          Parameters




                  {
                          PDU                    ROSE     Get, Set, Event, Action
    Association                         (Service Layer)
                          Methods
      Layer               PDU                   ACSE      Associate, Release, Abort
                                    (Association layer)
                          APDU               Transport


                                               Network


l ROSE operates on peer objects in the Object Layer
l ACSE and ROSE constitute the Association Layer
                            11073 Object Layer
                  Handle
                  Type
                  Observed value
                  Units

                           Methods (Get, Set, Event, Action)
                           Parameters (Attribute:Value)




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
Alternative Association Layers
              Alternative Association Layers
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?
                        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
                           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
                       Zigbee Attribute Reporting
Variable           Variable          Variable                        Variable
ZCL Header         Attribute         Attribute                       Attribute
                   Report 1          Report 2                        Report n



           2 Octets               1 Octet          Variable
           Attribute Identifier   Attribute Data   Attribute Value
                                  Type
                       ZCL Object Layer – example
                          General Attribute Set
      Attribute Set Identifier               Description
      0x0000                                 Basic device information
      0x0001                                 Basic device settings
      0x0002-0xffff                          Defined in ZCL documentation


               Attributes of Basic Device Information Attribute Set
Identifier     Name          Type            Range         Access       Default   Mandatory
                                                                                  / Optional
0x0000         ZCLVersion    Unsigned        0x00 – 0xff   Read only    0x00      M
                             8-bit integer
0x0001         Application   Unsigned        0x00 – 0xff   Read only    0x00      O
               Version       8-bit integer
Etc
                       Zigbee Cluster Library
l   Can we map 11073 devices to ZCL?
               ZCL Object Layer – take an example
                  Weighing Scale Attribute Set
      Attribute Set Identifier (Class)       Description
      0x0000                                 Basic device information
      0x1000                                 MDS
      0x1001                                 Metric
      0x1002                                 RT-SA
      0x1003                                 PM Store




                          Attributes of Basic Mass Attribute Set

Identifier      Name            Type            Range             Access      Default    Mandatory
                                                                                         / Optional
0x0000          Type            TYPE            0x0000 – 0xffff   Read only   0x0000     M
0x0001          Metric-Spec-    32 bit map      0x00000000 –      Read only   0x000000   M
                Small                           0xffffffff                    00
Etc
                           Metric Object Attributes
Attribute Name                      Attribute Type            Identifier             Notes
Handle                          HANDLE                                     Unused
Type/Supplemental-Types         TYPE/SupplementalTypeList        0000      Only one, type distinguishes
Metric-Spec-Small               MetricSpecSmall                  0001
Metric-Structure-Small          MetricStructureSmall             0002
Measurement-Status              MeasurementStatus                0003
Metric-Id/Metric-Id-List        OID-Type/MetricIdList            0004      Only one, type distinguishes
Metric-Id-Partition             NomPartition                     0005
Unit-Code                       OID-Type                         0006
Attribute-Value-Map             AttrValMap                                 Unused
Source-Handle-Reference         HANDLE                           0007
Label-String                    OCTET STRING                     0008
Unit-LabelString                OCTET STRING                     0009
Absolute-Time-stamp/Relative-   AbsoluteTime/RelativeTime/H      0010      Only one, type distinguishes
Time-Stamp/HiRes-Time-Stamp     ighResRelativeTime
Measure-Active-Period           FLOAT-Type                       0011
                          Numeric Object Attributes
Attribute Name                   Attribute Type     Number             Notes
Simple-Nu-Observed-Value      SimpleNuObsValue       0012    Only one, type distinguishes
Compound-Simple-Nu-Observed   SimpleNuObsValueCmp
-Value
Basic-Nu-Observed-Value       BasicNuObsValue
Compound-Basic-Nu-Observed-   BasicNuObsValueCmp
Value
Nu-Observed-Value             NuObsValue
Compound-Nu-Observed-Value    NuObsValueCmp
Accuracy                      FLOAT-Type             0013
                  Enumeration Object Attributes
Attribute Name                        Attribute Type       Number             Notes
Enum-Observed-Value-Simple-OID       OID-Type               0012    Only one, type distinguishes
Enum-Observed-Value-Simple-Bit-Str   BITS-32
Enum-Observed-Value-Basic-Bit-Str    BITS-16
Enum-Observed-Value-Simple-Str       EnumPrintableString
Enum-Observed-Value                  EnumObsValue
Enum-Observed-Value-Partition        NomPartition           0013
                           RT-SA Object Attributes
Attribute Name                   Attribute Type    Number             Notes
Sample-Period                   RelativeTime         12
Simple-Sa-Observed-Value        OCTET STRING         13
Scale-and-Range-Specification   ScaleRangeSpec8      14     Only one, type distinguishes
                                ScaleRangeSpec16
                                ScaleRangeSpec32
Sa-Specification                SaSpec               15
                           MDS Object Attributes
Attribute Name                 Attribute Type       Number             Notes
Handle                        HANDLE
System-Type                   TYPE                    0
System-Model                  SystemModel             1      == Basic Device Information
System-Id                     OCTET STRING            2
Dev-Configuration-Id          ConfigId                3
Attribute-Value-Map           AttrValMap              4
Production-Specification      ProductionSpec          5
Mds-Time-Info                 MdsTimeInfo             6
Date-and-Time                 AbsoluteTime            7
Relative-Time                 RelativeTime            8
HiRes-Relative-Time           HighResRelativeTime     9
Date-and-Time-Adjustment      AbsoluteTimeAdjust      10
                         MDS Object Attributes
Attribute Name               Attribute Type   Number             Notes
Power-Status                PowerStatus                == Basic Device Information
Battery-Level               INT-U16                    == Battery Information
Remaining-Battery-Time      BatMeasure                 = = Derive from battery
                                                       information
Reg-Cert-Data-List          RegCertDataList     11
System-Type-Spec-           TypeVerList         12
List
Confirm-Timeout             RelativeTime        13
                                    Limitations
l   Not instance based addressing
                            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
Questions or Comments?

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:4
posted:2/6/2014
language:English
pages:24