zigbee配测板获取RSSI

CC2531设置寄存器,获取RSSI,并转成dbm

有道笔记链接 : http://note.youdao.com/noteshare?id=be647b462ca058704b8e10b5f6b227e7&sub=7ED661060AE44CABBCE1F864088A9772

1. 设置两个相关寄存器, 接收数据会自动追加RSSI

FRMCTRL0 = 0x43;
FRMCTRL1 = 0x00;

avatar

avatar

2. 寄存器值转dbm

寄存器 RSSI 计算式
0x2D -28dbm 0x2D - 73 = -28
0xF4 -85dbm F4的原码:1000 1100, -12-73 = -85

registerValue > =128

​ RSSI = (registerValue - 256) - 73

registerValue < 128

​ RSSI = registerValue - 73

avatar

你可能感兴趣的:(zigbee)