[NILE-887] Routing and decoding for new Batmon app
The new topics to be created are:
lora-BE-cern-epr-batmon lora-BE-cern-epr-batmon-qa lora-BE-cern-epr-batmon-decoded lora-BE-cern-epr-batmon-qa-decoded
Application & E-Group
- application: BE-cern-epr-batmon
- e-group: be-cern-epr-batmon-admin
Documentation and decoding description can be found here: https://cernbox.cern.ch/index.php/s/sD0QRvGuEOWaxnQ
Since Friday, both the documentation and the decoding were updated; so please ignore the following notes.
Issues:
- V_Bat decoding(maybe there is some conversion needed?).
- Documentation #1.4 it seems like there are two variables for FGDOS{1-2} calculated with the target frequency, and none calculated with the recharge frequency. In the decoding itself I didn't follow this -- so, we have both target frequency and recharge frequency in the code, but we need to make sure it is correct.
The output of the data decoding (with example data from the doc) is the following:
{
cypress_m5_seu=2,
cypress_m6_seu=12,
cypress_m7_seu=4,
cypress_m8_seu=5,
dummy_byte=255,
extwtd_cnt=1177,
fgdos_1_recharge_count=0,
fgdos_1_recharge_frequency=0,
fgdos_1_sensor_frequency=70824,
fgdos_1_target_frequency=70964,
fgdos_2_recharge_count=0,
fgdos_2_recharge_frequency=0,
fgdos_2_sensor_frequency=73276,
fgdos_2_target_frequency=75592,
mon_3_3=3.30322265625
mon_5=5.006396484374999,
packet_number=232,
status_flag=0,
swbuild=255,
toshiba_m1_seu=19,
toshiba_m2_seu=13,
toshiba_m3_seu=16,
toshiba_m4_seu=15,
v_bat=1733, ----------------------> This is wrong
}
Edited by Dean Dalianis