Skip to content

Commit

Permalink
Add comment confirming that SNR is stored in centibels (#346)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
ke6jjj authored Jul 5, 2023
1 parent 01469a6 commit f4fbc95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/service/poc_lora.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4fbc95

Please sign in to comment.