ZigBee3.0_JENNIC-JN516x-ZigBeeBaseDevice_20170609_1.3

来源:互联网 发布:淘宝宝贝上架技巧 编辑:程序博客网 时间:2024/06/03 22:55

2.2.5Out-Of-Band Commissioning

通俗地讲就是node通过IEEE802.15.4 packets operating 之外的其他方式在network中通讯。例如inter-PAN packets或者是NFC

  1. Co-ordinatro可以用Out-of-band commissioning 创建一个new network
  2. Router or End Device可以加入一个existing network
  3. network中数据通过out-of-band方式传输,与network相关的数据送到ZigBee Base Device
  4. 用函数BDB_u8OutOfBandCommissionStartDevice()来启动out-of-band commissioning
  5. 如果用out-of-band commissioning加入一个centralised networkthe trust centre会核实the correct networkTrust Centre address等网络参数。如果node收到validation request,下面两种方式可用来获得data values
    1. BDB_vOutOfBandCommissionGetData()读相关datas。在将data送到Trust Centre之前,需要encrypt(编码)network key The install codeencrypt有关。
    2. BDB_eOutOfBandCommissionGetDataEncrypted()不仅可以读数据同时也完成encrypt network key 工作。
  6. The Trust Centre收到相关data后,用BDB_bOutOfBandCommissionGetKey()函数来decrypt(解码)network key。,然后核实相关参数。

2.3 Network Security

  1. ZigBee Base Device支持两种security modes:
    1. Centralised security
    2. Distributed security
  2. 所有的routerend device nodes必须支持以上两种security modesA co-ordinator仅支持centralised security
  3. 在调用BDB_vInit()函数时,函数内部就调用BDB_vSetKeys(),这个函数会load the appropriate pre-configured link key,由此决定了node所支持的security modeThe pre-configured link keys 放在bdb_link_keys.c中。

2.3.1 Centralised Security Networks

  1. A centralised security network is formed by a Co-ordinator,同时在network中也扮演着Trust Centre的工作。
  2. A node尝试加入网络之前,必须得到Trust Center的认证(authenticated)
  3. All nodes必须pre-configured一个link keyThis key用来encrypt network key ,当从Trust Centrenetwork key传到 a newly joined node时候。
  4. node加入一个centrialised security networkthe ZigBee Base Device会自动使用相关的pre-configured link key
  5. 对于centralised security来说,有下面几种类型:
    1. Default Global Trust Centre Link Key: This key出厂前就烧入所有nodes用来encrypt Trust Centre node之间的communications
    2. Touchlink Pre-configured Link Key: This key出厂前就烧入用touchlink commissioningnodes,用来encrypt Router parentsnode之间的communications3种类型:
      1. Development key;
      2. Master key;成品都用这个;
      3. Certification key;
    3. Install Code-derived Pre-configured Link Key:ZigBee stack根据随机的install code生成的key
  1. Install Codes
    1. An individual node centralised securtiy network之间通信的时候,install code 被用来创建一个initial link key
    2. An install code to commission a node如下:

In the factory:

  1. Individual node随机生成一个install code
  2. 下装到node上;
  3. ZigBee stackinstall code 生成一个pre-configured link key
  4. Install code封装到node上;

During installation:

  1. Node里面的install code被安装进co-ordinator/Trust Centre
  2. Co-ordinator/Trust CenterZigBee stack根据install code生成pre-configured link key
  3. Trust Centrenode根据pre-configured link key 来管理网络。
原创粉丝点击