Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在做一个项目,我根据 rssi 值增加或减少射频功率。发送方节点发送数据,接收方测量 rssi 值。
基于此,我必须设置天线的功率。我怎样才能做到这一点?
谢谢
这可能是一个有点晚的答案,但这可能对其他人有帮助,所以这里是:
您可以通过调用在代码中更改它: call CC2420Packet.SetRFPower(&packet, pwr);
call CC2420Packet.SetRFPower(&packet, pwr);
Makefile或者通过添加以下行在编译时更改它: CFLAGS += "-DCC2420_DEF_RFPOWER=N"
Makefile
CFLAGS += "-DCC2420_DEF_RFPOWER=N"
pwr其中in setRFPower 和Nin的有效值为CFLAG1 到 31,其中 1 的功率等于 -25dBm,31 等于最大功率 (0dBm)。
pwr
N
CFLAG