Core Architecture Blocks (核心架构模块)(二)

来源:互联网 发布:star rating.js 编辑:程序博客网 时间:2024/05/16 07:57

Core Architecture Blocks (核心架构模块)(二)

CoreArchitecture Blocks

Channel Manager

The channel manager isresponsible for creating, managing, and destroying L2CAP channels for thetransport of service protocols and application data streams. The channelmanager uses the L2CAP protocol to interact with a channel manager on a remote(peer) device to create these L2CAP channels and connect their endpoints to theappropriate entities. The channel manager interacts with its local link managerto create new logical links (if necessary) and to configure these links toprovide the required QoS for the type of data being transported.

核心架构

信道管理器

信道管理器为服务协议的传输和应用数据的流动任务负责创建、管理和废除L2CAP信道。当一个远程(对等)设备来创建L2CAP信道并且将他们的端点连接在对应的实体上时,信道管理器设备就利用L2CAP协议来和一个信道管理器进行配合工作。信道管理器和它的本地连接器交互工作来创建新的逻辑连接(如果需要)并且配置这些连接以为这些数据的传输提供要求的QoS保障。

 

L2CAP Resource Manager

The L2CAP resource managerblock is responsible for managing the ordering of submission of PDU fragmentsto the baseband and some relative scheduling between channels to ensure thatL2CAP channels with QoS commitments are not denied access to the physicalchannel due to Bluetoothcontroller resource exhaustion. This is required because the architecturalmodel does not assume that theBluetooth controller has limitless buffering, or that the HCI is a pipe of infinitebandwidth.

L2CAP资源管理器

L2CAP资源管理器模块负责管理PDU碎片到基带的提交顺序和一些信道间的相关调度工作,以确保有QoS保证的L2CAP信道不要因为蓝牙控制器资源的耗尽而不能到达物理信道。这是必须要求的,因为架构模式不能假设认为蓝牙控制器有无尽的缓冲机制,或者HCI是个无限带宽的管道。

 

L2CAP resource managers mayalso carry out traffic conformance policing to ensure that applications aresubmitting L2CAP SDUs within the bounds of their negotiated QoS settings. ThegeneralBluetooth datatransport model assumes well-behaved applications, and does not define how animplementation is expected to deal with this problem.

L2CAP资源管理器同时也遵从数据的一致性原则来确保应用程序在可以用商议好的QoS配置下传递L2CAP SDU数据。一般的蓝牙数据传输模式假定正常行为的应用程序并不定义如何期望一个执行体来处理这个问题。

 


Device Manager

The device manager is thefunctional block in the baseband that controls the general behavior of theBluetooth enabled device. It is responsible for all operationof theBluetooth systemthat is not directly related to data transport, such as inquiring for thepresence of other nearbyBluetooth enabled devices, connecting to otherBluetooth enabled devices or making the localBluetooth enabled device discoverable or connectable by otherdevices.

设备管理器

设备管理器在基带中是一个功能性的模块,它负责控制蓝牙功能打开了的设备的常规基本行为。它负责蓝牙系统的所有操作,也就是说不直接和数据传输发生联系,比如要求附近蓝牙功能开打了的设备的显示,连接到蓝牙设备或者使那些蓝牙使能的设备能够被发现或者被其他设备连接上。

The device manager requestsaccess to the transport medium from the baseband resource controller in orderto carry out its functions.

设备控制器为了完成它的这些功能,它需要有从基带资源控制器到传输媒介的通道。

The device manager alsocontrols local device behavior implied by a number of the HCI commands, such asmanaging the device local name, any stored link keys, and other functionality.

设备控制器同时也隐式地通过许多HCI命令控制本地设备的行为,比如管理设备的本地名,任何存储的链接密钥和其他功能。

 注意蓝色标识部分这些都是要由蓝牙芯片来完成的不能仅仅靠app来完成。

Link Manager

The link manager isresponsible for the creation, modification, and release of logical links (and,if required, their associated logical transports), as well as the update ofparameters related to physical links between devices. The link manager achievesthis by communicating with the link manager in remote Bluetooth devices using the link management protocol (LMP).

链接管理器负责创建、修改和释放逻辑链接(以及和他们相关的逻辑传输,如果需要),以及和设备间物理链接有关的参数的更新。链接管理器利用链接管理协议和远程蓝牙设备上的链接管理器通信来完成它的功能。

The LMP allows the creation ofnew logical links and logical transports between devices when required, as wellas the general control of link and transport attributes such as the enabling ofencryption on the logical transport, the adapting of transmit power on thephysical link or the adjustment of QoS settings for a logical link.

在需要时,LMP允许创建新的逻辑链接和设备间的逻辑传输,以及和传输实体间的链接的一般控制,比如对逻辑传输的加密使能,物理链接上的能量传输的调节,或者对一个逻辑链接上QoS设置的调整。


Baseband Resource Manager

The baseband resource manageris responsible for all access to the radio medium. It has two main functions.At its heart is a scheduler that grants time on the physical channels to all ofthe entities that have negotiated an access contract. The other main functionis to negotiate access contracts with these entities. An access contract iseffectively a commitment to deliver a certain QoS that is required in order toprovide a user application with an expected performance.

基带资源管理器

基带资源管理器负责所有到达无线电媒介的通道。它有两个主要功能。在它的中心有个调度器,对于那些有通道商议合同的实体,确保他们在物理信道上的时间。另外一个主要的功能是和这些实体商议通道合同。一个通道合同是一个有效的承诺,这个承诺用来提供某个要求的QoS来提供一个具有期望性能的用户应用程序。

 

The access contract andscheduling function must take account of any behavior that requires use of theBluetooth radio. This includes, for example, the normalexchange of data between connected devices over logical links and logicaltransports, as well as the use of the radio medium to carry out inquiries, makeconnections, be discoverable or connectable, or to take readings from unusedcarriers during the use of AFH mode.

通道合同和调度功能必须考虑到蓝牙无线电要求应用的任何行为。这包括,比如,在逻辑链路和逻辑传输上连接中的设备之间的数据的普通交换,以及利用无线电媒介进行执行需求,建立连接,使处于不被发现火花则是连接状态,或者是在AFH模式应用中从送信者中读取信息。

In some cases the schedulingof a logical link results in changing to a different physical channel from theone that was previously used. This may be, for example, due to involvement inscatternet, a periodic inquiry function, or page scanning. When the physicalchannels are not time slot aligned, then the resource manager also accounts forthe realignment time between slots on the original physical channel and slotson the new physical channel. In some cases the slots will be naturally aligneddue to the same device clock being used as a reference for both physicalchannels.

在一些场景中,逻辑链路的调度会导致有些物理信道从原来被用着的变换为一个不同的信道。例如,这有可能是因为分散网的原因,或者一个周期性的查询功能,或者页扫描。当物理信道没有分配到时隙时,资源管理器也会对初始物理信道和新的物理信道的时隙进行重新分配。在一些场景中,因为同样的设备时钟被用来作为两个物理信道的参考值,这些时隙会被自然的分配。


Link Controller

The link controller isresponsible for the encoding and decoding ofBluetooth packets from the data payload and parameters relatedto the physical channel, logical transport and logical link.

The link controller carriesout the link control protocol signaling (in close conjunction with thescheduling function of the resource manager), which is used to communicate flowcontrol and acknowledgement and retransmission request signals. Theinterpretation of these signals is a characteristic of the logical transportassociated with the baseband packet. Interpretation and control of the linkcontrol signaling is normally associated with the resource manager’s scheduler.

链路控制器

链路控制器负责编解码蓝牙数据包,这些数据包来自和物理信道、逻辑传输层和逻辑链锯有关的数据负载。链路控制器执行链路控制层信号通讯功能(和资源控制器的调度功能结合性很强),它进行流控制通信,通信结果确认以及对请求信号重传。这些信号的解释是和基带包相关的逻辑传输的一个特征。链路控制信号的解释和控制是和资源管理器调度器联系在一起的。


RF

The RF block is responsiblefor transmitting and receiving packets of information on the physical channel.A control path between the baseband and the RF block allows the baseband blockto control the timing and frequency carrier of the RF block. The RF blocktransforms a stream of data to and from the physical channel and the basebandinto required formats.

 

射频

射频模块负责在物理信道上收发信息包。在基带和射频块之间的控制通道允许基带块控制分时和射频块频带载波。射频块在物理信道间来回传送数据流,并且把基带转化为需要的数据格式。