From 142205ba3c277c0a93309d1ec6fe4c28b4800591 Mon Sep 17 00:00:00 2001 From: KSMehta11 Date: Thu, 16 Jul 2026 19:59:47 -0400 Subject: [PATCH 1/4] Add balancing PWM duty cycle read back message --- can-messages/bms.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/can-messages/bms.json b/can-messages/bms.json index fd5a87b..7e7c42f 100644 --- a/can-messages/bms.json +++ b/can-messages/bms.json @@ -4392,5 +4392,26 @@ "desc": "" } ] + }, + { + "id": "0x97", + "desc": "Current Cell Balancing PWM Duty Cycle", + "points": [ + { + "size": 8, + "name": "balancing_pwm_duty_cycle", + "c_type": "uint8_t" + } + ], + "fields": [ + { + "name": "BMS/Control/CellBalancing/PWMDutyCycle", + "unit": "%", + "doc": "Current cell balancing PWM duty cycle", + "values": [ + 1 + ] + } + ] } ] From c642beb57050334f3f0223237a8e32e5979b351e Mon Sep 17 00:00:00 2001 From: KSMehta11 Date: Sat, 18 Jul 2026 15:48:56 -0400 Subject: [PATCH 2/4] Fix --- can-messages/bms.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/can-messages/bms.json b/can-messages/bms.json index 7e7c42f..02e2e51 100644 --- a/can-messages/bms.json +++ b/can-messages/bms.json @@ -4398,9 +4398,13 @@ "desc": "Current Cell Balancing PWM Duty Cycle", "points": [ { - "size": 8, + "size": 10, "name": "balancing_pwm_duty_cycle", - "c_type": "uint8_t" + "c_type": "float", + "formatter": { + "key": "divide", + "arg": 10 + } } ], "fields": [ From 78cfc9c2b8d8aa7c9f0d9864d5ad23b4beb3f647 Mon Sep 17 00:00:00 2001 From: KSMehta11 Date: Sat, 18 Jul 2026 16:08:26 -0400 Subject: [PATCH 3/4] Fix sizing --- can-messages/bms.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/can-messages/bms.json b/can-messages/bms.json index 02e2e51..18d7d4c 100644 --- a/can-messages/bms.json +++ b/can-messages/bms.json @@ -4405,6 +4405,10 @@ "key": "divide", "arg": 10 } + }, + { + "size": 6, + "parse": false } ], "fields": [ From b5db222ca575116c3be7bfc72c66fb1f369946e2 Mon Sep 17 00:00:00 2001 From: KSMehta11 Date: Sat, 18 Jul 2026 16:24:27 -0400 Subject: [PATCH 4/4] Change signal size --- can-messages/bms.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/can-messages/bms.json b/can-messages/bms.json index 18d7d4c..dc9dc8a 100644 --- a/can-messages/bms.json +++ b/can-messages/bms.json @@ -4398,17 +4398,13 @@ "desc": "Current Cell Balancing PWM Duty Cycle", "points": [ { - "size": 10, + "size": 16, "name": "balancing_pwm_duty_cycle", "c_type": "float", "formatter": { "key": "divide", "arg": 10 } - }, - { - "size": 6, - "parse": false } ], "fields": [