bristlemouth / bm_protocol

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

Sc 198772/common bm logs #82

Closed victorsowa12 closed 7 months ago

victorsowa12 commented 7 months ago

This PR makes all the sensor aggregators on the bridge direct their logs to the shared SENS_AGG and SENS_IND logs for the aggregations and individual readings it collects from the sensors on the bristlemouth bus.

EX AGG log:

cat 0001_SENS_AGG.csv
bm_node_id,node_position,node_app_name,timestamp(ticks/UTC),reading_count
910030066a2926a7,1,soft,1707244095.957,542,23.033
24636777862fb376,2,aanderaa,1707244095.957,4,54.750,2.861,2.688,0.039,21.750,0.144,0.415
910030066a2926a7,1,soft,1707244396.019,368,23.418
24636777862fb376,2,aanderaa,1707244396.019,3,56.333,3.091,2.699,0.058,22.667,0.151,0.256
910030066a2926a7,1,soft,1707244695.082,368,23.564
24636777862fb376,2,aanderaa,1707244695.082,3,52.667,3.091,2.705,0.051,22.667,0.134,0.198
910030066a2926a7,1,soft,1707244995.144,370,23.426
24636777862fb376,2,aanderaa,1707244995.148,3,54.667,2.494,2.659,0.036,22.333,0.134,0.361
910030066a2926a7,1,soft,1707245295.210,368,23.359
24636777862fb376,2,aanderaa,1707245295.210,3,54.667,2.357,2.659,0.022,23.667,0.151,0.204

EX IND log:

bm_node_id,node_position,node_app_name,reading_uptime_millis,reading_time_utc_s,sensor_reading_time_s
910030066a2926a7,1,soft,3279,0.000,0.000,22.749
910030066a2926a7,1,soft,3799,0.000,0.000,22.749
910030066a2926a7,1,soft,4319,0.000,0.000,22.758
910030066a2926a7,1,soft,4839,0.000,0.000,22.749
910030066a2926a7,1,soft,5359,0.000,0.000,22.749
910030066a2926a7,1,soft,5879,0.000,0.000,22.758
910030066a2926a7,1,soft,6399,1707243307.003,0.000,22.758
910030066a2926a7,1,soft,6919,1707243307.523,0.000,22.749
910030066a2926a7,1,soft,7439,1707243308.042,0.000,22.749
910030066a2926a7,1,soft,7959,1707243308.566,0.000,22.749
910030066a2926a7,1,soft,8479,1707243309.085,0.000,22.749
910030066a2926a7,1,soft,8999,1707243309.605,0.000,22.749
910030066a2926a7,1,soft,9519,1707243310.125,0.000,22.749
910030066a2926a7,1,soft,10039,1707243310.644,0.000,22.749
910030066a2926a7,1,soft,10559,1707243311.164,0.000,22.749
910030066a2926a7,1,soft,11079,1707243311.683,0.000,22.758
910030066a2926a7,1,soft,11599,1707243312.203,0.000,22.749
910030066a2926a7,1,soft,12119,1707243312.726,0.000,22.749
910030066a2926a7,1,soft,12639,1707243313.246,0.000,22.749
910030066a2926a7,1,soft,13159,1707243313.765,0.000,22.749
910030066a2926a7,1,soft,13679,1707243314.285,0.000,22.749
910030066a2926a7,1,soft,14199,1707243314.804,0.000,22.749
910030066a2926a7,1,soft,14719,1707243315.324,0.000,22.749
.
.
.
910030066a2926a7,1,soft,61519,1707243362.132,0.000,22.775
910030066a2926a7,1,soft,62039,1707243362.652,0.000,22.775
24636777862fb376,2,aanderaa,62143,1707243363.152,0.000,56.000,9.000,155.000,32.000,167.000,20.000,103.000,0.000,25.000,20.000,47.000,15.000,2.000,0.000
910030066a2926a7,1,soft,62559,1707243363.175,0.000,22.775
910030066a2926a7,1,soft,63079,1707243363.695,0.000,22.775