zoukankan      html  css  js  c++  java
  • AddrNotPresent 说明

    AddrNotPresent 这个在发送数据时候需要指明,且看一个结构体

    typedef struct

    {

      union

      {

        uint16      shortAddr;

        ZLongAddr_t extAddr;

      } addr;

      afAddrMode_t addrMode;

      byte endPoint;

    } afAddrType_t;

    再看一个共用体

    typedef enum

    {

      afAddrNotPresent = AddrNotPresent,

      afAddr16Bit      = Addr16Bit,

      afAddr64Bit      = Addr64Bit,

      afAddrGroup      = AddrGroup,

      afAddrBroadcast  = AddrBroadcast

    } afAddrMode_t;

    The address mode parameter is necessary because, in ZigBee, packets can be unicast, multicast or broadcast.

        在这里,看到AddrNotPresent,;且看该模式发送特点。

          this is when the application is not aware of the final destination of the packet. The mode is set to

    AddrNotPresent and the destination address is not specified. Instead,the destination is looked up from a

    “binding table” that resides in the stack of the sending device.

    When the packet is sent down to the stack, the destination address and end point is looked up from the binding table and used. The packet is then treated as a regular unicast packet.

        由此可见,该模式在绑定设备之间应该是用的很多的,尤其是在源设备中。比如一个按键设备要控制一个或是多个灯设备,那么这个在按键设备中应该用的不少。

  • 相关阅读:
    sgu114Telecasting station
    UVA11748 Rigging Elections (dfs)
    UVA11080Place the Guards (二分图染色)
    修复损坏的COM+目录
    iis增加对flv的支持
    CRM开发中的小技巧
    CRM中代理商,招商专员,招商经理,公司内部员工权限描述
    使用js为DataGrid设定行
    文档和在线视频开发
    网站数据采集
  • 原文地址:https://www.cnblogs.com/farbeyond/p/5204658.html
Copyright © 2011-2022 走看看