From f4fbc95f707b48898ccb35f82aab6a80ce856f36 Mon Sep 17 00:00:00 2001 From: Jeremy Cooper Date: Wed, 5 Jul 2023 10:00:58 -0700 Subject: [PATCH] Add comment confirming that SNR is stored in centibels (#346) * Add comment confirming that SNR is stored in centibels (tenths of a decibel). To confirm, this is where gateway-rs encodes the SNR into protobuf form: https://github.com/helium/gateway-rs/blob/f224f15b93fbc140343bc99349ec32e46f1005d4/src/packet.rs#L80C5-L80C46 * Pendantically correct dB vs dBm. --- src/service/poc_lora.proto | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service/poc_lora.proto b/src/service/poc_lora.proto index 5a68fdb0..73eeeb38 100644 --- a/src/service/poc_lora.proto +++ b/src/service/poc_lora.proto @@ -80,8 +80,9 @@ message lora_witness_report_req_v1 { // Timestamp of witness received in nanos since unix epoch uint64 timestamp = 4; uint32 tmst = 5; - // Signal in ddbm + // Signal in ddBm sint32 signal = 6; + // SNR in ddB int32 snr = 7; // Frequency in Hz uint64 frequency = 8;