Skip to content

[INC3363690] Bugfix: LoraBatmonDecode: maxSnr first value set to Double.MIN_VALUE instead of 0.0

Dean Dalianis requested to merge BUGFIX_LoraBatmonDecode_SNR into qa

INC3363690

Not decoded message:

{
	"applicationID": "19",
	"applicationName": "BE-cern-epr-batmon",
	"deviceName": "BE-cern-epr-batmon-0",
	"devEUI": "a0b0000000000000",
	"rxInfo": [
		{
			"gatewayID": "fcc23dfffe20e692",
			"uplinkID": "277c514d-914a-452d-a166-c9addc547bac",
			"name": "lora-0887-gw-1",
			"time": "2023-01-26T11:23:28.324017243Z",
			"rssi": -106,
			"loRaSNR": -2,
			"location": {
				"latitude": 46.26196,
				"longitude": 6.05774,
				"altitude": 486
			}
		},
		{
			"gatewayID": "fcc23dfffe0f57a3",
			"uplinkID": "99d3f76c-212e-4b36-800a-1d379e619eb0",
			"name": "lora-0866-gw",
			"time": "2023-01-26T11:23:28.341503753Z",
			"rssi": -109,
			"loRaSNR": -4,
			"location": {
				"latitude": 46.25694,
				"longitude": 6.05851,
				"altitude": 470
			}
		},
		{
			"gatewayID": "fcc23dfffe2095ff",
			"uplinkID": "799b0938-787f-4f06-8cdf-370e53198a91",
			"name": "lora-0866-gw-2",
			"time": "2023-01-26T11:23:28.322851996Z",
			"rssi": -106,
			"loRaSNR": -7,
			"location": {
				"latitude": 46.25694,
				"longitude": 6.05851,
				"altitude": 470
			}
		}
	],
	"txInfo": {
		"frequency": 867300000,
		"dr": 2
	},
	"adr": false,
	"fCnt": 66,
	"fPort": 5,
	"data": "QgD//wAA+QdGBSsESQHMtAC0iAAAAAAAwKAAJHMAAgCgAAAAAAAAAAAAAAAAAAAAAAA="
}

Decoded message not including SNR info:

{
	"status_flag": 0,
	"fgdos_1_sensor_frequency": 46284,
	"fPort": 5,
	"toshiba_m3_seu": 0,
	"cypress_m7_seu": 0,
	"fgdos_2_recharge_frequency": 40960,
	"cypress_m6_seu": 0,
	"fgdos_2_recharge_count": 2,
	"fCnt": 66,
	"deviceName": "BE-cern-epr-batmon-0",
	"devEUI": "a0b0000000000000",
	"fgdos_2_reference_frequency": 29476,
	"cypress_m8_seu": 0,
	"swbuild": 255,
	"toshiba_m2_seu": 0,
	"fgdos_2_sensor_frequency": 41152,
	"cypress_m5_seu": 0,
	"applicationID": "19",
	"applicationName": "BE-cern-epr-batmon",
	"mon_3_3": 3.2887207031249996,
	"timestamp": 1674732208000,
	"v_bat": 3.954202183475161,
	"txInfo_dr": 2,
	"extwtd_cnt": 329,
	"txInfo_frequency": 867300000,
	"adr": false,
	"toshiba_m4_seu": 0,
	"fgdos_1_reference_frequency": 34996,
	"fgdos_1_recharge_frequency": 0,
	"packet_number": 66,
	"mon_5": 2.17529296875,
	"toshiba_m1_seu": 0,
	"fgdos_1_recharge_count": 0,
	"dummy_byte": 255
}

Here is another decoded message with the correct info:

{
	"maxSnrRxInfo_location_longitude": "6.05774",
	"maxSnrRxInfo_loRaSNR": "0.2",
	"maxSnrRxInfo_location_altitude": "486",
	"status_flag": 0,
	"maxSnrRxInfo_location_latitude": "46.26196",
	"fgdos_1_sensor_frequency": 46276,
	"fPort": 5,
	"toshiba_m3_seu": 0,
	"cypress_m7_seu": 0,
	"fgdos_2_recharge_frequency": 40960,
	"cypress_m6_seu": 0,
	"fgdos_2_recharge_count": 2,
	"fCnt": 4,
	"deviceName": "BE-cern-epr-batmon-0",
	"devEUI": "a0b0000000000000",
	"maxSnrRxInfo_uplinkID": "ef4ef46f-f8e2-47e8-894c-b1ffb64e9f91",
	"fgdos_2_reference_frequency": 29468,
	"cypress_m8_seu": 0,
	"swbuild": 255,
	"toshiba_m2_seu": 0,
	"fgdos_2_sensor_frequency": 41156,
	"cypress_m5_seu": 0,
	"applicationID": "19",
	"applicationName": "BE-cern-epr-batmon",
	"mon_3_3": 3.291943359375,
	"timestamp": 1674734659000,
	"maxSnrRxInfo_gatewayID": "fcc23dfffe20e692",
	"maxSnrRxInfo_rssi": "-110",
	"v_bat": 3.9393785576701927,
	"txInfo_dr": 2,
	"maxSnrRxInfo_time": "2023-01-26T12:04:19.048450316Z",
	"maxSnrRxInfo_name": "lora-0887-gw-1",
	"extwtd_cnt": 24,
	"txInfo_frequency": 868100000,
	"adr": false,
	"toshiba_m4_seu": 0,
	"fgdos_1_reference_frequency": 34968,
	"fgdos_1_recharge_frequency": 0,
	"packet_number": 4,
	"mon_5": 2.17529296875,
	"toshiba_m1_seu": 0,
	"fgdos_1_recharge_count": 0,
	"dummy_byte": 255
}

Merge request reports