首页 蓝牙核心架构一

蓝牙核心架构一

举报
开通vip

蓝牙核心架构一Lastupdatedat10:00amon25thDecember2020蓝牙核心架构一标签:2012-07-2618:507098人阅读(4)分类:BlueTooth(13)首先,第一幅图是蓝牙官网上的图示,对应蓝牙4.0版本。(2012年7月份最新更新)因为该图不很清楚,有人重画了下,稍微修改了其中一部分,如下图:为便于理解,附上v1.0的架构图示如下:为了便于理解,最后附上M$上关于蓝牙协议的图示,如下图:下面就是关于蓝牙官网上文章的翻译了,因为时间和水平有限,主要是水平有限,翻译难免有误差之处,欢迎斧正。...

蓝牙核心架构一
Lastupdatedat10:00amon25thDecember2020蓝牙核心架构一标签:2012-07-2618:507098人阅读(4)分类:BlueTooth(13)首先,第一幅图是蓝牙官网上的图示,对应蓝牙4.0版本。(2012年7月份最新更新)因为该图不很清楚,有人重画了下,稍微修改了其中一部分,如下图:为便于理解,附上v1.0的架构图示如下:为了便于理解,最后附上M$上关于蓝牙 协议 离婚协议模板下载合伙人协议 下载渠道分销协议免费下载敬业协议下载授课协议下载 的图示,如下图:下面就是关于蓝牙官网上文章的翻译了,因为时间和水平有限,主要是水平有限,翻译难免有误差之处,欢迎斧正。()CoreSystemDefinitionTheBluetoothcoresystemcoversthefourlowestlayersandassociatedprotocolsdefinedbytheBluetoothspecificationaswellasonecommonservicelayerprotocol,theservicediscoveryprotocol(SDP)andtheoverallprofilerequirementsarespecifiedinthegenericaccessprofile(GAP).AcompleteBluetoothapplicationrequiresanumberofadditionalservicesandhigherlayerprotocolsthataredefinedintheBluetoothspecification.(这段话的理解非常重要,为了准确翻译这段话,我还深入研究了“aswellas”的用法)蓝牙核心系统覆盖了蓝牙spec中定义的最低层的四个部分以及相关协议,同时还包括一个通用服务层协议,服务发现协议以及在GAP中指出的全部需求。同时,一个完整的蓝牙应用程序还需要其他一些附加的服务和在蓝牙spe中定义的更高层的协议。BluetoothControllerThelowestthreelayersaresometimesgroupedintoasubsystemknownastheBluetoothcontroller.ThisisacommonimplementationinvolvingastandardphysicalcommunicationsinterfacebetweentheBluetoothcontrollerandremainderoftheBluetoothsystemincludingtheL2CAP,servicelayersandhigherlayers(knownastheBluetoothhost).Althoughthisinterfaceisoptional,thearchitectureisdesignedtoallowforitsexistenceandcharacteristics.TheBluetoothspecificationenablesinteroperabilitybetweenindependentBluetoothenabledsystemsbydefiningtheprotocolmessagesexchangedbetweenequivalentlayers,andalsointeroperabilitybetweenindependentBluetoothsub-systemsbydefiningacommoninterfacebetweenBluetoothcontrollersandBluetoothhosts.蓝牙控制部分最底下的三层有时候被归为一组成为一个子系统称做蓝牙控制器。这是一个通用的执行部分,包括一个用于蓝牙控制器和蓝牙系统其他剩余部分之间的标准的物理通信接口,这些剩余部分包括L2CAP,服务层以及更高级的层次(常叫做蓝牙host)。虽然这个接口并非必不可少,但是本架构设计上允许它的存在和特点。蓝牙说明书通过定义同等层间的协议信息交换来使得独立的蓝牙系统之间协调工作,同时,通过定义一个蓝牙控制器和蓝牙host间的通用接口,保障了蓝牙子系统之间的协调工作能力。Anumberoffunctionalblocksareshownandthepathofservicesanddatabetweenthese.Thefunctionalblocksshowninthediagramareinformative;ingeneraltheBluetoothspecificationdoesnotdefinethedetailsofimplementationsexceptwherethisisrequiredforinteroperability.很多功能块以及他们之间的服务和数据传输路径如图所示。这些功能块提供了很多的信息。总的来说,蓝牙spec不会定义执行体之间的细节部分,除非他们之间要求协同工作。CoreSystemProtocolsandSignalingStandardinteractionsaredefinedforallinter-deviceoperation,whereBluetoothdevicesexchangeprotocolsignalingaccordingtotheBluetoothspecification.TheBluetoothcoresystemprotocolsaretheradio(RF)protocol,linkcontrol(LC)protocol,linkmanager(LM)protocolandlogicallinkcontrolandadaptationprotocol(L2CAP),allofwhicharefullydefinedinsubsequentpartsoftheBluetoothspecification.Inaddition,theservicediscoveryprotocol(SDP)isaservicelayerprotocolrequiredbyallBluetoothapplications.核心系统协议和信号为内部设备之间的操作定义了标准的交互流程,在这些内部操作中,根据蓝牙spec蓝牙设备交互协议信号。蓝牙核心系统协议栈包括RF协议,链接控制协议,链接管理西医和逻辑连接控制适应协议(L2CAP),这些协议在蓝牙spec随后部分中都均有定义。另外,服务发现协议是一个所有蓝牙应用程序都需要的服务层协议。TheBluetoothcoresystemoffersservicesthroughanumberofserviceaccesspointsthatareshowninthediagramasellipses.TheseservicesconsistofthebasicprimitivesthatcontroltheBluetoothcoresystem.Theservicescanbesplitintothreetypes.TherearedevicecontrolservicesthatmodifythebehaviorandmodesofaBluetoothdevice,transportcontrolservicesthatcreate,modifyandreleasetrafficbearers(channelsandlinks),anddataservicesthatareusedtosubmitdatafortransmissionovertrafficbearers.ItiscommontoconsiderthefirsttwoasbelongingtotheC-planeandthelastasbelongingtotheU-plane.蓝牙核心系统为许多服务通路点(AP)提供服务,如图中椭圆点处所示。这些服务有控制蓝牙核心系统的基元组成。这些服务可以分成三种类型。第一种是设备控制服务用于修改蓝牙设备的行为和工作方式,第二种是传输控制服务用于创建、修改以及释放通信送信单元(信道和链接),第三种是数据服务用于在通信送信单元上为传送功能传递数据。很容易的理解前两个属于C层面,最后一个属于U层面。HosttoControllerInterface(HCI):SplitsBluetoothStackIntoControllerandHostAserviceinterfacetotheBluetoothcontrollersub-systemisdefinedsuchthattheBluetoothcontrollermaybeconsideredastandardpart.InthisconfigurationtheBluetoothcontrolleroperatesthelowestthreelayersandtheL2CAPlayeriscontainedwiththerestoftheBluetoothapplicationinahostsystem.Thestandardinterfaceiscalledthehosttocontrollerinterface(HCI).Implementationofthisstandardserviceinterfaceisoptional.主机和控制器接口(HCI):划分蓝牙协议栈为控制器和主机和蓝牙控制器子系统的服务接口定义如下:蓝牙控制器被认为是一个标准的部分。在一个主机系统中,蓝牙控制器操作最底下的三层和L2CAP的这种配置包含在蓝牙应用程序的其他部分。标准接口称为HCI。对这个标准服务的接口的实现是可有可无的。AstheBluetootharchitectureisdefinedwiththepossibilityofaseparatehostandcontrollercommunicatingthroughanHCI,anumberofgeneralassumptionsaremade.TheBluetoothcontrollerisassumedtohavelimiteddatabufferingcapabilitiesincomparisonwiththehost.ThereforetheL2CAPlayerisexpectedtocarryoutsomesimpleresourcemanagementwhensubmittingL2CAPPDUstothecontrollerfortransporttoapeerdevice.ThisincludessegmentationofL2CAPSDUsintomoremanageablePDUsandthenthefragmentationofPDUsintostartandcontinuationpacketsofasizesuitableforthecontrollerbuffers,andmanagementoftheuseofcontrollerbufferstoensureavailabilityforchannelswithqualityofservice(QoS)commitments.既然蓝牙架构可以定义成通过HCI通信的一个主机和一个控制器,所以就须假设一些通用的东西。和主机相比,假设蓝牙控制器有着有限的数据缓存能力。因此就期望在给一个对等的设备传输数据时,当递交L2CAP PDU给控制器过程中,L2CAP层来执行一些简单的资源管理工作。这些工作包括把L2CAPSDU分割成更多的可以管理的PDU以及进一步把PDU细化成更小的部分,这些部分可以适合在控制器缓冲中进行开始和延续大小的包,还有为了却确保信道的QoS责任的可行性进行的对控制器缓冲利用的管理工作。ErrorDetectioninL2CAPLayerThebasebandlayerprovidesthebasicARQprotocolinBluetoothtechnology.TheL2CAPlayercanoptionallyprovideafurthererrordetectionandretransmissiontotheL2CAPPDUs.Thisfeatureisrecommendedforapplicationswithrequirementsforalowprobabilityofundetectederrorsintheuserdata.AfurtheroptionalfeatureofL2CAPisawindow-basedflowcontrolthatcanbeusedtomanagebufferallocationinthereceivingdevice.BothoftheseoptionalfeaturesaugmenttheQoSperformanceincertainscenarios.L2CAP层的错误检测在蓝牙技术中,基带层提供基本的ARQ协议。L2CAP可以有选择性地提供深层次的错误检测和对L2CAP PDU的重传机制。这个特性对一些应用程序有推荐作用,这些应用程序在对用户数据没有检测到错误存在低的可能性有着一定的要求。L2CAP的的另外一个可能的特性是,基于窗口的流控制在接受设备端可被应用来管理缓冲分配。这两个可选择性的特性在一定场景提高了QoS的性能。AlthoughtheseassumptionsmaynotberequiredforembeddedBluetoothtechnologyimplementationsthatcombinealllayersinasinglesystem,thegeneralarchitecturalandQoSmodelsaredefinedwiththeseassumptionsinmind,ineffectalowestcommondenominator.对于那些将所有的层联合在一个独立系统的嵌入式蓝牙技术来说,在实现来上,虽然这些假设可能并没有要求,依据这些假设的通用架构和QoS模式已经在大脑中形成,实际上是最小公分母。TestingInterfaces:RFandTestControlInterface(TCI)AutomatedconformancetestingofimplementationsoftheBluetoothcoresystemisrequired.ThisisachievedbyallowingthetestertocontroltheimplementationthroughtheRFinterface,whichiscommontoallBluetoothsystems,andthroughthetestcontrolinterface(TCI),whichisonlyrequiredforconformancetesting.测试接口:射频和测试控制接口蓝牙核心系统实现的自动化一致性测试是必须的。这个测试是通过允许测试人员通过射频接口来控制它的实现来得到的,这对所有的蓝牙系统来说很普通的,并且通过这个测试控制接口(TCI),这是在一致性测试中唯一要求的。Thetesterusesexchangeswiththeimplementationundertest(IUT)throughtheRFinterfacetoensurethecorrectresponsestorequestsfromremotedevices.ThetestercontrolstheIUTthroughtheTCItocausetheIUTtooriginateexchangesthroughtheRFinterfacesothatthesecanalsobeverifiedasconformant.测试人员通过射频接口和执行体进行数据交互来确保给远端设备提供正确的回复。测试人员通过TCI来控制IUT使得IUT通过射频接口发起数据交换,这样数据能够得到一致性的验证。TheTCIusesadifferentcommand-set(serviceinterface)forthetestingofeacharchitecturallayerandprotocol.AsubsetoftheHCIcommand-setissuedastheTCIserviceinterfaceforeachofthelayersandprotocolswithintheBluetoothcontrollersubsystem.AseparateserviceinterfaceisusedfortestingtheL2CAPlayerandprotocol.AsanL2CAPserviceinterfaceisnotdefinedintheBluetoothcorespecificationitisdefinedseparatelyintheTCIspecification.ImplementationoftheL2CAPserviceinterfaceisonlyrequiredforconformancetesting.TCI利用一个不同的服务接口对架构上的每一个层次和协议进行测试。一个HCI服务接口的子集发行出来作为TCI为蓝牙控制子系统每一层和协议服务的接口。一个分离的服务接口被用来测试L2CAP层及协议。L2CAP层服务接口没有在蓝牙核心Spec中定义,而是独立地定义在TCISpec中。L2CAP服务接口的实现是一致性测试的唯一要求。
本文档为【蓝牙核心架构一】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
个人认证用户
友娟
暂无简介~
格式:doc
大小:1MB
软件:Word
页数:0
分类:企业经营
上传时间:2021-09-24
浏览量:2