Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9463497
  • 博文数量: 1750
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 20091
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1750)

文章存档

2024年(26)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: Android平台

2017-12-28 14:00:36

开发环境  IAR Embedded Workbench for 8051 version 10.10.1
CC2538/CC2530   Z-Stack 3.0.1.exe
API说明: 使用 z-stack 3.0 API.pdf

API(application programmers interface) 说明
APS: Application Support Sub-Layer
AIB: APS information Base
APSDE: APS Date Entity
APSME: APS Management Entity 
ASDU    APS Service Datagram Unit 
BDB      Base Device Behavior
GP    Green Power 
LQI    Link Quality Indicator 
MAC    Media Access Control 
MSG    Message   
NHLE    Next Higher Layer Entity 
NIB    Network Information Base 
NWK    Network 
NV    Non-Volatile memory 
PAN    Personal Area Network 
STAR    A network topology consisting of one master device and multiple slave devices 
ZDO    ZigBee Device Object 


层概念
    BDB: base device behavior: 指明环境,初始化,运行和操作过程. 提供数据结构和API.
        bdb_**** 通用
            SetIdentifyActiveEndpoint, 
            setChannelAttribute
            RegisterIdentifyTimeChangeCB
            RegisterBindNotificationCB
            RegisterCommissioningStatusCB
            setCommissioningGroupID
            RepAddAttrCfgRecordDefaultToList
            RegisterForFilterNwkDesc
            TouchlinkSetAllowStealing
            RegisterTouchlinkTargetEnableCB.
        bdb_**** 安全部分
            GenerateInstallCodeCRC
            setJoinUsesInstallCodeKey
            setTCRequireKeyExchange
            addInstallCode
            RegisterTCLinkKeyExchangeProcessCB
            setActiveCentralizedLinkKey
            RegisterCBKETCLinkKeyExchangeCB
        bdb_**** 运行时部分
            StartCommissioning
            initialize
            getZCLFrameCounter
            RepChangedAttrValue
            ZedAttemptRecoverNwk
            GetFBInitiatorStatus
            isDeviceNonFactoryNew
            nwkDescFree
            CBKETCLinkKeyExchangeAttempt
            touchLinkTarget_EnableCommissioning
            touchLinkTarget_DisableCommissioning
            touchLinkTarget_GetTimer
            bdb_TouchlinkGetAllowStealing
            bdb_resetLocalAction
            bdb_StopInitiatorFindingBinding 
         bdbGCB_**** 运行时回调部分   
            bdbGCB_IdentifyTimeChange_t callback
            bdbGCB_BindNotification_t callback
            bdbGCB_CommissioningStatus_t callback
            bdbGCB_CBKETCLinkKeyExchange_t callback
            bdbGCB_TCLinkKeyExchangeProcess_t callback 
            bdbGCB_FilterNwkDesc_t callback
            
    ZDO: ZigBee Device Objects, 提供操作 device的接口. 操作EP(endpointer)进行建网,搜网,入网,端点绑定和管理等.
        ZDO Device Network Startup   
            ZDOInitDeviceEx
            ZDOInitDevice  
        
        ZDO Message Callbacks
            ZDO_RegisterForZDOMsg
            ZDO_RemoveRegisteredCB

        ZDO Discovery API     
            ZDP_NwkAddrReq/ Rsp
            IEEEAddrReq/Rsp
            NodeDescReq/Msg
            PowerDescReq/Msg
            SimpleDescReq/Rsp
            ComplexDescReq
            ActiveEPIFReq/Rsp
            MatchDescReq/Rsp
            UserDescSet
            UserDescConf
            UserDescReq/Rsp
            DeviceAnnce
            ServerDiscReq/Rsp

        ZDO Binding API    
            ZDP_EndDeviceBindReq/Rsp
            BindReq/ Rsp
            UnbindReq/ Rsp

        ZDO Management API    
            ZDP_MgmtNwkDiscReq /Rsp
            MgmtLqiReq/Rsp
            MgmtRtgReq/Rsp
            MgmtBindReq/Rsp
            MgmtLeaveReq/Rsp
            MgmtDirectJoinReq/Rsp
            MgmtPermitJoinReq/Rsp
            MgmtNwkUpdateReq/ MgmtNwkUpdateNotify
            

        ZDO Parsing Functions    
            ZDO_ParseAddrRsp 
            ParseNodeDescRsp
            ParsePowerDescRsp
            ParseSimpleDescRsp
            ParseEPListRsp
            ParseBindRsp
            ParseMgmNwkDiscRsp
            ParseMgmtLqiRsp
            ParseMgmtRtgRsp
            ParseMgmtBindRsp
            ParseMgmtDirectJoinRsp
            ParseMgmtLeaveRsp
            ParseMgmtPermitJoinRsp
            ParseUserDescRsp
            ParseServerDiscRsp
            ParseEndDeviceBindReq
            ParseBindUnbindReq
            ParseUserDescConf
            ParseDeviceAnnce
            ParseMgmtNwkUpdateNotify

        ZDO Network Manager    
            NwkMgr_SetNwkManager
            

    AF (application framework).  EP的管理, 数据的收发. 建立device Desc以及多路服用EP处理等.

    APS: application support sub-layer. 被ZDO使用的一些服务.
       Binding Table Management
            Binding Record Structure – BindingEntry_t 
            Binding Table Maintenance  .
            Binding Table Searching

            Binding Table Statistics

            Binding Table Non-Volatile Storage 

       Group Table Management     
            Group Table Structures
            Group Table Maintenance

            Group Table Searching

            Group Table 
Non-Volatile Storage
       Quick Address Lookup     
            APSME_LookupExtAddr() 
            APSME_ LookupNwkAddr ()

    NWK -- network 层, 提供跟高层次(application)的数据管理组件.
        Network Management
            NLME_NetworkDiscoveryRequest()
            NwkDiscReq2
            NwkDiscTerm

            NetworkFormationRequest

            StartRouterRequest

            JoinRequest

            ReJoinRequest

            OrphanJoinRequest

            PermitJoiningRequest

            DirectJoinRequest

            LeaveReq

            RemoveChild

            SetPollRate

            SetQueuedPollRate

            SetResponseRate

            RouteDiscoveryRequest

            

            NwkPollReq

            

        Address Management
            Network Variables and Utility Functions
        Network Non-Volitile Storage
            NLME_UpdateNV() 
        PAN ID Conflict   
            NLME_SendNetworkReport ()
            NLME_SendNetworkUpdate() 
        Inter-PAN Transmission     
            StubAPS_SetInterPanChannel()  ...
            StubAPS_SetIntraPanChannel() 
            StubAPS_InterPan()
            StubAPS_RegisterApp()  .
    GreenPower: 提供数据服务,允许高层次的数据收发,
        GP_DataInd() 
        GP_DataReq()  .     
        GP_DataCnf()
        GP_SecReq()
        GP_SecRsp()
        
    ZMAC: 提供接口在MAC/NWK层之间的操作.
        ZMacSetTransmitPower()  .
        ZMacLqiAdjustMode
        
        
        
        
        
        
        


阅读(4326) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~