查看SX127x的源代码
←
SX127x
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== RSSI == Received Signal Strength Indication,接收信号强度指示 Antenna Diversity,天线分集 The RSSI information is available during CAD and there is no need to leave the receiver on for some additional time During a CAD, The device is effectively in Reception mode for the duration of one LoRa symbol. It is therefore possible to read the RSSI of the signal present within the LoRa bandwidth. While in reception, the RSSI is sample every 8uS and is asymptotically analyzed. This means that the RSSI value is being calculated along the length of the symbol duration and is directly related to the number of point previously analyzed. <source lang=cpp> symbolTime = (pow((float)2, (float)LORA_SPREADING_FACTOR)) + 32) / 125000; // SF7 and BW = 125 KHz symbolTime = symbolTime * 1000000; // symbol Time is in us while( 1 ) { t.reset( ); // Reset the Timer Radio.StartCad( ); // Set the device into CAD mode t.start( ); // Start the Timer while( t.read_us ( ) < 240 ); // 240us are needed for the device to go into CAD Mode from Sleep Mode while( t.read_us ( ) < symbolTime + 240); // We wait for Symbol Time and 240 us to be at the very end of // the symbol duration rssi[i++] = Radio.GetRssi( MODEM_LORA ); // We can now read the RSSI t.stop( ); // Stop the Timer while( State != CAD_DONE ); // Wait for the end of the CAD process } </source> <br>
返回到
SX127x
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面