From 7e38237b5f90bd2b6ea3bfe2b45ff209bdd08e40 Mon Sep 17 00:00:00 2001 From: Roland Date: Tue, 10 Nov 2026 16:07:55 +0100 Subject: [PATCH 1/2] Fludia - add FM432ir firmware 20 double mode (E_POS + E_NEG, header 0x35) Decode the T1 frame F0 35 sent in double mode by the firmware 20 (E-POS and E-NEG indexes and 8 values each), with the same output fields as the double mode of the firmware 21 and 22 (index_solar, powers, time_step, type_of_measure). The T2 frame F0 2A now also gives type_of_measure for the double mode (measure 3). No change for the other frame types. Co-Authored-By: Claude Sonnet 5.5 --- vendor/fludia/fm432ir-10-15mn-decode.js | 62 +++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/vendor/fludia/fm432ir-10-15mn-decode.js b/vendor/fludia/fm432ir-10-15mn-decode.js index 072c3971fb..72422d315e 100644 --- a/vendor/fludia/fm432ir-10-15mn-decode.js +++ b/vendor/fludia/fm432ir-10-15mn-decode.js @@ -5,6 +5,7 @@ const PAYLOAD_TYPE = { T1_E_SUM_ADJUSTABLE_STEP : {header: 0x71, size_min: 13/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_E_SUM_ADJUSTABLE_STEP"}, T1_E_POS_ADJUSTABLE_STEP : {header: 0x72, size_min: 13/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_E_POS_ADJUSTABLE_STEP"}, T1_E_NEG_ADJUSTABLE_STEP : {header: 0x73, size_min: 13/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_E_NEG_ADJUSTABLE_STEP"}, + T1_IR_DOUBLE_MODE : {header: 0x35, size: 52/*in bytes*/, name: "T1_IR_DOUBLE_MODE"}, T1_IR_DOUBLE_MODE_ADJUSTABLE_STEP : {header: 0x74, size_min: 23/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_IR_DOUBLE_MODE_ADJUSTABLE_STEP"}, T1_E_SUM_ADJUSTABLE_STEP_WH : {header: 0x76, size_min: 13/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_E_SUM_ADJUSTABLE_STEP_WH"}, T1_E_POS_ADJUSTABLE_STEP_WH : {header: 0x77, size_min: 13/*in bytes*/, size_max: 51/*in bytes*/, name: "T1_E_POS_ADJUSTABLE_STEP_WH"}, @@ -87,6 +88,16 @@ function decodeUplink(input){ decoded.data.powers = data.powers; decoded.data.time_step = data.time_step; decoded.data.type_of_measure = data.type_of_measure; + }else if(decoded.data.message_type == PAYLOAD_TYPE.T1_IR_DOUBLE_MODE.name){ + var data = decode_T1_mme_double_mode(input.bytes); + for(var i = 0;i Date: Tue, 10 Nov 2026 16:11:05 +0100 Subject: [PATCH 2/2] Fludia - fix undefined bytes in FM432ir T2 adjustable step decoder decode_T2_mme_adjustable_step used "bytes" without declaring it when the E-SUM index is negative (measure 1), which threw a ReferenceError instead of returning the decoded index. Co-Authored-By: Claude Sonnet 5.5 --- vendor/fludia/fm432ir-10-15mn-decode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/fludia/fm432ir-10-15mn-decode.js b/vendor/fludia/fm432ir-10-15mn-decode.js index 72422d315e..fa46ab7344 100644 --- a/vendor/fludia/fm432ir-10-15mn-decode.js +++ b/vendor/fludia/fm432ir-10-15mn-decode.js @@ -681,6 +681,7 @@ function decode_T2_mme_adjustable_step(payload, isWh){ if(isWh) data.index = (parseInt(toHexString(payload).substring(34, 42),16) >> 0); else data.index = (parseInt(toHexString(payload).substring(34, 42),16) >> 0)/10; }else{ + var bytes = []; for(var i = 0;i<8;i++) bytes.push(payload[i+12]) if(isWh) data.index = toSignedInt64(bytes); else data.index = toSignedInt64(bytes)/10;