bristlemouth / bm_protocol

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

Sc 198151/bridge soft support #80

Closed victorsowa12 closed 7 months ago

victorsowa12 commented 7 months ago

Adding support for SOFT on the bridge. The bridge will by default assume a 2 HZ sampling frequency(there is a config to change this expected frequency if needed) for the Soft modules and upon subscribing to the Soft node it will create buffers large enough to take in that many samples. It will then aggregate those buffers at the end of a sample duration and send the aggregated sample to the reportBuilder. After receiving enough aggregations the reportBuilder will cbor encode the SOFT aggregations and send them to Spotter.

Right not I implemented logging of individual and aggregate readings in the same way the Aanderaa logs are done, however, there has been a decision to merge these into shared logs. There are still some details that need to be spec'd out, but those changes will come in a separate PR.