bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
10 stars 7 forks source link

fix: soft temperature encoded range #123

Closed towynlin closed 4 months ago

towynlin commented 4 months ago

Here's a snippet of printf logs from the bridge showing a fake soft giving 100ºC for every sample, which correctly gets aggregated as infinity.

SOFT data received from node 8b718c26aea126dc On topic: sensor/8b718c26aea126dc/sofar/bm_soft_temp
[BM_COMMON_IND] 8b718c26aea126dc,1,soft,183261,1711510984.824,0.000,100.000
SOFT data received from node 8b718c26aea126dc On topic: sensor/8b718c26aea126dc/sofar/bm_soft_temp
[BM_COMMON_IND] 8b718c26aea126dc,1,soft,183771,1711510985.335,0.000,100.000
SOFT data received from node 8b718c26aea126dc On topic: sensor/8b718c26aea126dc/sofar/bm_soft_temp
[BM_COMMON_IND] 8b718c26aea126dc,1,soft,184281,1711510985.847,0.000,100.000
Bridge State Sampling Off until 1711511100 epoch seconds
Adin paused, ignoring event 2
Powered device 0 : off
Bridge bus power: 0
Controller task will wait 114000 ms
Aggregation period done!
[BM_COMMON_AGG] 8b718c26aea126dc,1,soft,1711510986.007,577,inf
Adding sample for 8b718c26aea126dc to list
Incrementing sample counter to 1
Found data for node 8b718c26aea126dc adding it to the the report
Clearing the list
Clearing the sample counter
Pub data on topic "spotter/utc-time" from 0000000000000000 Type: 1, Version: 1
Adin paused, ignoring event 0
Updating RTC to 2024-3-27 03:43:08.0808
Adin paused, ignoring event 0
Pub data on topic "spotter/utc-time" from 0000000000000000 Type: 1, Version: 1
Adin paused, ignoring event 0
Updating RTC to 2024-3-27 03:43:18.0808
🏚  Neighbor offline :'( 8b718c26aea126dc
Neighbor 8b718c26aea126dc lost