zigbee-相关-外文资料及翻译_第1页
zigbee-相关-外文资料及翻译_第2页
zigbee-相关-外文资料及翻译_第3页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

zigbee-相关-外文资料及翻译Dexample,thesupportedfrequencybandsofoperation,thelogicaltypeofthedevice(coordinator,router,orenddevice),andtheremainingenergyofthebatteryareprovidedbythedevicedescriptions.Eachdevicedescriptionisidentifiedbya16-bitvalue.TheZigBeeapplicationprofileusesthe conceptofdescriptordatastructure.Inthismethod,insteadofincludingthedataintheapplicationprofile,a16-bitvalueiskeptandactsasapointertothelocationofthedata.Thispointerisreferredtoasthe datadescriptor.Whenadevicediscoversthepresenceofanotherdeviceinthenetwork,thedevicedescriptionsaretransferredtoprovidetheessentialinformationregardingthenewdevice.Thedevicedescriptionsconsistoffivesections:nodedescriptor,nodedescriptor,simpledescriptor,complexdescriptor,and userdescriptor.Thenodedescriptor providesinformationsuchasthenodelogicaltypeandthemanufacturercode.The nodepowerdescriptor determineswhetherthedeviceisbatterypoweredandprovidesthecurrentlevelofthebattery.Theprofileidentifierandclustersareprovidedinthe simpledescriptor.Thecomplexdescriptor isanoptionalpartofthedevicedescriptionsandcontainsinformation such as the serial numberand the device model name. Anyadditionalinformationregardingthedevicecanbeincludedasthe userdescriptor.Theuserdescriptorcanbeupto16ASCIIcharacters.Forexample,inalightcontrolapplication,theuserdescriptorfieldofawallswitchinstalledinahallwaycanread Hallswitch.ThenodedescriptorfieldsforZigBee-2006areprovidedinFigure3.46.Thenodedescriptorisamandatorypartofthedevicedescriptions.ThelogicaltypecanbeZigBeecoordinator,router,orenddevice.Thecomplexdescriptoranduserdescriptorareoptionalandiftheircorrespondingfieldsinthenodedescriptoraresettozero,theyarenotprovidedaspartofthedeviceTheAPSflagfielddeterminestheAPSsublayercapabilities.Thefrequencyband(868MHz,915MHz,or2.4GHz)isspecifiedinthefrequencybandfield.TheMACcapacityflagsfieldisthesameastheMACcapacityfieldpresentedbeforein Figure3.25.Amanufacturercanrequestandreceiveamanufacturer codefromtheZigBeealliance.Thiscodeisincludedinthenodedescriptor.ThemaximumsizeoftheAPSSublayerDataUnit(ASDU),inoctets,isspecifiedinthemaximumbuffersizefield.Themaximumsizeofasinglemessagethatcanbetransferredtoorfromanodeisprovidedinthemaximumtransfersizefield(inoctets).InZigBeePro,themaximumincomingtransfersizeandmaximumoutgoingtransfersizearetwoseparatefields(16bitseach).Theservermaskfieldprovidesinformationregardingthesystemservercapabilitiesofthisnode.Aserverisadevicethatprovidesspecificservicestootherdevicesinthe network.Ifeachbitissettoone,thedevicehasthecorrespondingcapabilityshownin Figure3.46.The trustcenteristhedevicetrustedbydeviceswithinanetworktodistributesecuritykeysforthepurposeofnetworkandend-to-endapplicationconfigurationmanagement.ThesecurityfeaturesarereviewedinSection3.6. The primarybindingtablecache isdevicethatallowsotherdevicestostoretheirbindingtableswithitaslongasithas storage space left. The binding procedure is further clarified in subsection.Theprimarybindingtablecachecanbeusedtobackupthecontentofbindingtablesandrestorethemwhenevernecessary.Adevicecanchoosetokeepitsownbindingtable,knownasa sourcebindingtable,insteadofstoringitwithaprimarybindingtablecache.However,anydevicecanstoreabackupofthesourcebindingtableintheprimarybidingtablecachedeviceandrecoveritlaterifnecessary.AZigBeenetworkmayhaveaprimarydiscoverycachedevice.ThisdeviceisaZigBeecoordinatororrouterusedtostorethedescriptorssuch asnodedescriptorsandpowerdescriptorsofsomeotherdevices.Anenddevice,forexample,thatsleepsforlongdurationscanstoreitsdescriptorsintheprimarydiscoverycachedevice.Ifadeviceinthenetworktriestolocatetheinformationregardingthissleepingenddevicewhilethedeviceisinactive,itcangetinformationfromtheprimarydiscoverycachedeviceinstead.Ifanetworkcontains sleeping ZigBee end devices, the network must have at least oneprimarydiscoverycachedevice.应用层(APL)是在ZigBee无线网络协议栈中最高的一层。应用层包含三个组成部分,见下图4:应用支持子层Se设备对象O图4:应用支持子层Se设备对象O,以及应用层框架。应用支持子层(APS)提供了网络层(NWK)和应用层(APL)之间的接口。该层和所有较低层相似,支持两种服务:数据和管理服务。APS层数据服务由APS数据实体(APSDE)通过APSDE服务接入点(PS(E通过E(P)提供。APS子层的常量和属性分别始于apsc和aps。APS属性包含在APS信息库(APSIB或AIB)中。APS常量和属性列表由ZigBee协议栈规范提供[3]。ZigBee应用层框架(AF)是为驻扎在ZigBee设备中的应用对象控制和管理协议栈各层提供活动的环境。应用对象由制造商开发,也正是在这里定制了基于各种不同应用的设备。在一个设备中可以有多达240个应用对象。应用对象使用P(图4专有的终端节点地址(端点10。端点0用于O。端点地址5被设置用来广播消息到所有的应用对象。设定终端地址允许多个设备共享同一频段。在2.1.4节的灯控制例程中,多个灯连接在同一个频段里。每个灯都有一个专用的端点地址,并且能够独立的打开或关闭。ZigBee设备对象(ZDO)提供了APS子层和应用层框架(AF)之间的接口。ZDO包含了所有运行在ZigBee协议栈上的应用所共有的功能。例如,定义设备属于ZigBee协调器、路由器或终端设备三种逻辑类型之一就是ZDO的职责。ZDO使用原语来执行它的任务,并通过APSME-SAP进入APS子层管理实体。应用层框架(AF)通过ZDO公共接口与ZDO相互作用。关于应用层框架(F、O和S子层的细节的详细回顾见于以下三节。3.5.1应用层框架(AF)ZigBee标准提供了在开发应用时使用应用profiles的选项。应用profiles的使用使得不同开发商开发的基于某种特定应用的产品之间有更多的共同使用性。比如,在灯控制情景中,如果两个开发商使用同一个应用profiles来开发他们的产品,一个开发商制造的开关将能够打开或关闭另一个开发商制造的灯。应用profiles也是基于ZigBeeprofiles的。每个应用profiles都由一个被称作profile标识符的16位数值所标记的。只有ZigBee联盟能够设定profile标识符。开发商如果自行开发了一个profile,他可以向ZigBee申请一个profile标识符。ZigBee联盟评估被提议的应用profile,如果其符合联盟准则,一个新的profile标识符就会被设定。应用profiles以与其相应的应用来命名。例如,家庭自动化应用profile提供一个公共平台给开发用于家庭自动化的基于ZigBee产品的开发商们。应用profile的总体结构见图3.45。应用profile包含两个主要组成部分:簇(clusters)和设备描述(devicedescriptions。簇是一组整合在一起的属性。每个簇都由称为簇标识符(cluster的唯一16(attributeZigBee标准提供了在开发应用时使用应用profiles的选项。应用profiles的使用使得不同开发商开发的基于某种特定应用的产品之间有更多的共同使用性。比如,在灯控制情景中,如果两个开发商使用同一个应用profiles来开发他们的产品,一个开发商制造的开关将能够打开或关闭另一个开发商制造的灯。应用profiles也是基于ZigBeeprofiles的。每个应用profiles都由一个被称作profile标识符的16位数值所标记的。只有ZigBee联盟能够设定profile标识符。开发商如果自行开发了一个profile,他可以向ZigBee申请一个profile标识符。ZigBee联盟评估被提议的应用profile,如果其符合联盟准则,一个新的profile标识符就会被设定。应用profiles以与其相应的应用来命名。例如,家庭自动化应用profile提供一个公共平台给开发用于家庭自动化的基于ZigBee产品的开发商们。应用profile的总体结构见图3.45。应用profile包含两个主要组成部分:簇(clusters)和设备描述(devicedescriptions。簇是一组整合在一起的属性。每个簇都由称为簇标识符(cluster的唯一16(attributeidentifier)的唯一16位数字所标记。这些属性用来存储数据或状态值。例如,在温度控制应用中,作为温度传感器的设备能在属性中存储当前温度数值。然后另一个作为火炉控制器的设备就能接受该属性值,并据此打开或关闭火炉。应用profile不包含簇本身,而是包含一个簇标识符列表。每个簇标识符都专一地指向该簇本身。应用profile的另一个部分是设备描述(e(图5。设备描述提供关于设备自身的信息。例如,可供使用的频率波段,设备的逻辑类型(协调器、路由器或终端设备,以及设备提供的剩余电量,都是由设备描述所提供的。每个设备描述由一个6位数值所标记。ZigBee应用profile使用描述数据结构(descriptordatastructure)这一概念。正是用这一取代了包含应用profile数据的方法,一个16位数值作为指向数据所在地址的指针而被保存。关于该新设备的基本信息。设备描述由5(e(epower设备描述由5(e(epower,(e(xr。节点描述提供诸如节点逻辑类型和制造商编码这类信息。节点电源描述决定了设备是否由电池供电,并提供当前电量。Profile标识符和簇由简单描述提供。复杂描述是设备描述的可选部分,它包含诸如序列号和设备模型名称之类的信息。任何关于设备的附加信息都可以被用户描述所包含。用户描述可以多达16位ASCII码。例如,在灯控制应用中,安装在过道的墙上开关的用户描述区域就被读作“过道开关lh。ZigBee-2006的节点描述区域见图3.46路由器或终端设备。复杂描述和用户描述是可选项,如果它们在节点描述中的相应区域被设为0,则不会作为设备描述的组成部分而被提供。APS标志区域决定了APS子层的功能。频段(868MHz,915MHz,或2.4GHz)在频段区域中被指定。MAC功能标志和之前在图3.25中显示的MAC功能区域一样。制造商可以向ZigBee联盟申请并获得一个制造商编码。该编码包含在节点描述中。8进制的APS子层数据单元(APSDU)长度极大值在长度极大值缓存区域中被指定。送往或来自节点的单个消息的长度极大值由传送极大值区域

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论