zoukankan      html  css  js  c++  java
  • endpoint 理解-1

    如下摘自ti的document!

    Each device is a node in the Zigbee. Each node has a long and short address, the short address of the node is used by other nodes to send it data. Each node has 241 endpoint (0 reserved, 1-240 application assigned).

    Each endpointis separately addressable;when a device sends data it must specify the destination node’s short address and theendpoint that will receive that data. An application must register one or more endpoints to send and receive data in a Zigbee network.

    Each endpoint must have a Zigbee Simple Descriptor. This descriptor describes the endpoint to the rest of the Zigbee network.

    typedef struct { byte EndPoint; uint16 AppProfId; uint16 AppDeviceId; byte AppDevVer:4; byte Reserved:4; // AF_V1_SUPPORT uses for AppFlags:4. byte AppNumInClusters; cId_t *pAppInClusterList; byte AppNumOutClusters; cId_t *pAppOutClusterList; } SimpleDescriptionFormat_t; EndPoint – The endpoint number 1-240 (0 is reserved). This is the subaddress of the node, and is used to receive data..//端点可以用于接受数据 AppProfId – This field identifies the Profile ID supported on this endpoint. The IDs shall be obtained from the ZigBee Alliance. AppDeviceId –This field identifies the Device ID supported on this endpoint. The IDs shall be obtained from the ZigBee Alliance.

    AppDevVer –Identifies the version of the relevant Device Description that this device implements on this endpoint.

    0x00 is Version 1.0. Reserved – not used. AppNumInClusters – This indicates the number of input clusters supported by this endpoint. pAppInClusterList – Pointer to the input cluster ID list. AppNumOutClusters – 8 bit field. This indicates the number of output clusters supported by this endpoint. pAppOutClusterList – Pointer to the output cluster ID list.

               在实际的应用中,很多参数不需要我们自己去配置,而是系统默认的。但是记住很重要的一个:byte EndPoint; 这个参数必须是唯一的,对于需要绑定的设备(比如一个按键和一个灯)。只有具有相同的EndPoint,设备之间才能说话(灯设备和按键设备正常通信)。

  • 相关阅读:
    贪心法
    div 样式
    echarts标题(title)配置
    利用svg画路径图 vue
    vue 杂项
    Charset 0x0408D00000/MS936 is not supported by the JVM
    Android开发中Eclipse常用快捷键
    Java 中强制删除文件的方法
    利用html5的localStorage结合jquery实现日常费用查询器
    Ant编译utf8非法字符:/65279 解决方法
  • 原文地址:https://www.cnblogs.com/farbeyond/p/5204669.html
Copyright © 2011-2022 走看看