您好!
我们正在测试可用于应用的默认 CoAP RSSI 资源。 基本上、它返回 rssi.in 并针对每个相邻节点输出、但考虑到代码中的 RSL 值进行的转换、这些值可能是0-250刻度或类似的值。 是否有方法将这些值转换为实际 dBm 以实现更好的可视化?
提前感谢您的帮助。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
我们正在测试可用于应用的默认 CoAP RSSI 资源。 基本上、它返回 rssi.in 并针对每个相邻节点输出、但考虑到代码中的 RSL 值进行的转换、这些值可能是0-250刻度或类似的值。 是否有方法将这些值转换为实际 dBm 以实现更好的可视化?
提前感谢您的帮助。
您好 Thiago、
该值(假定)已经在实际 DBMS 中,只需考虑变量的格式,该格式必须存储为无符号字节。
此致、
Arthur
您好、Thiago、
以下是堆栈源代码中的实际答案: https://os.mbed.com/docs/mbed-os/v6.15/mbed-os-api-doxy/structws__stack__state.html#a70b2f5fedceb1fd43866165aef8ae4bf
您将发现 dBm 值实际上映射到了该范围。
此致。
Arthur
您好 Thiago、
我还发现、有一种实际的方法可以为您处理相反的转换。
它是 ws_neighbor_class_rbl_from _dBm_calculate、位于 ws_neighbor_class.c (
simplelink_cc13xx_cc26xx_sdk_6_40_00_13\source\third_party/mbed\nanostack\sal-stack-nanostack\source\6LoWPAN\ws)。
此致、
Arthur