Skip to main content

noise_floor_dbm

Function noise_floor_dbm 

Source
pub fn noise_floor_dbm(bandwidth_hz: u32) -> Decibels
Expand description

Returns the thermal noise power in a channel, in dBm.

Semtech AN1200.22 derives the floor as 10 log10(k T B 1000), which at room temperature is THERMAL_NOISE_DBM_PER_HZ plus 10 log10 of the bandwidth. LoRa demodulates below this floor by the processing gain its spreading factor buys, and demodulator_snr_db gives how far.

§Arguments

  • bandwidth_hz - the channel bandwidth in hertz; 0 counts as one hertz.

§Returns

The noise power in dBm.

§Examples

use pamoja_lora::budget::noise_floor_dbm;

assert_eq!(noise_floor_dbm(125_000).to_string(), "-123.03");