BLE-TxPower规范到DBM

时间:2017-02-07 17:52:48

标签: bluetooth bluetooth-lowenergy

eddystone协议定义TxPower遵循规范https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.tx_power_level.xml&u=org.bluetooth.characteristic.tx_power_level.xml

但是如何使用该范围将值0xDF转换为dbm?

另外,我认为0x12为+18且0xEE为-18没有任何关系。

1 个答案:

答案 0 :(得分:2)

有一个名为Two's complement

的简单关系

0xDF = -33dbm

希望它有所帮助。

更新: https://www.mathsisfun.com/binary-decimal-hexadecimal-flash.html