蓝牙协议 与 BLE

蓝牙协议中文网站
https://www.bluetooth.com/zh-cn/

安卓4.3--API LEVEL18--蓝牙4.0--BLE MTU=23字节 实际可用20

https://source.android.google.cn/docs/compatibility/4.3/android-4.3-cdd#7.4.3.-bluetooth

安卓7--API LEVEL24--蓝牙4.2--BLE MTU=247字节 实际可用244


https://source.android.google.cn/docs/compatibility/7.0/android-7.0-cdd#7_4_3_bluetooth


安卓8--API LEVEL26--蓝牙5.0--BLE MTU=512字节 实际可用509

https://source.android.google.cn/docs/compatibility/8.0/android-8.0-cdd#7_4_3_bluetooth

备注:以下资料一直没太找到看到准确数字,暂且路基,容后找到更新或者自己测试后更新

蓝牙4.2的最大MTU=247Byte(不一定正确,也有说是257Byte、也有说是241Byte),蓝牙5.0的最大MTU=512,有效的最大MTU还需要减去协议Byte、Opcode和Handler。蓝牙4.2的有效的最大MTU是244Byte(不一定正确),有兴趣的可以看看Bluetooth SIG官网https://bluetoothworldevent.com/welcome。
蓝牙4.2:1Byte(Opcode)+2Byte(Handler)+244Byte(BATT)=247Byte(不一定正确);