Skip to content

Report fractional RSSI #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: helium/hotspot
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packet_forwarder/src/lora_pkt_fwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ License: Revised BSD License, see LICENSE.TXT file include in the project
#define STD_FSK_PREAMB 5

#define STATUS_SIZE 200
#define TX_BUFF_SIZE ((540 * NB_PKT_MAX) + 30 + STATUS_SIZE)
#define TX_BUFF_SIZE ((548 * NB_PKT_MAX) + 30 + STATUS_SIZE)
#define ACK_BUFF_SIZE 64

#define UNIX_GPS_EPOCH_OFFSET 315964800 /* Number of seconds ellapsed between 01.Jan.1970 00:00:00
Expand Down Expand Up @@ -2023,7 +2023,7 @@ void thread_up(void) {
}

/* Signal RSSI, payload size */
j = snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"rssis\":%.0f", roundf(p->rssis));
j = snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"rssis\":%.3f", p->rssis);
if (j > 0) {
buff_index += j;
} else {
Expand Down Expand Up @@ -2066,7 +2066,7 @@ void thread_up(void) {
}

/* Channel RSSI, payload size, 18-23 useful chars */
j = snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"rssi\":%.0f,\"size\":%u", roundf(p->rssic), p->size);
j = snprintf((char *)(buff_up + buff_index), TX_BUFF_SIZE-buff_index, ",\"rssi\":%.3f,\"size\":%u", p->rssic, p->size);
if (j > 0) {
buff_index += j;
} else {
Expand Down