美文网首页 Bluetooth of IOT
BLE connection interval 杂谈(一)

BLE connection interval 杂谈(一)

作者: 612F | 来源:发表于2017-12-10 10:15 被阅读0次

    抛开BLE在空中传输相比classical的特性,蓝牙低功耗开发者常常遇到的几个问题:1. Connection interval、connection event是什么?有什么用?2. 如何调整Connection interval?

    那什么是CI(connection interval)了?其实与classic BT类似,BLE也是每隔一段时间由master发起一次通讯,这个间隔就是CI,在这个CI之间能够允许传输的最大长度就是CE(connection event)。只是LE会允许host通过hci command config这两个参数。由于BT/BLE的特性,data transfer一定是由master发起,所以CI和CE就极大的影响着transfer throughput以及power consumption.

    对于throughput,举个例子,master和slave在一个CI期间能传输6个slot(6*0.625ms=3.75ms)data,不算payload总共传了100byte,那CI等于15ms时throughput就是100/0.015~=6.5KB,而CI等于30ms时throughput就是3.25KB.

    power consumption也很好理解,单位时间内发送数据越频繁,power就越高。特别的,对比没有数据传输的case,因为BLE为了保持连接,每次CI至少都会交互一个empty packet,所以在这种case下,CI就是越疏松越好。

    相关文章

      网友评论

        本文标题:BLE connection interval 杂谈(一)

        本文链接:https://www.haomeiwen.com/subject/atvmixtx.html