From ef09ab673b306a224ae8851b09cd995f73ffdc05 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Fri, 4 Sep 2026 09:15:11 +0200 Subject: [PATCH] Update BWM_OTA_CHUNK_MAX to allow larger firmware writes Increased the maximum firmware bytes per WRITE action from 196 to 2048. Signed-off-by: Niel Nielsen --- include/pm3_cmd.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index b274efe7b..ef5b5bd83 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -890,11 +890,8 @@ typedef struct { #define BWM_OTA_ACTION_ABORT 0x03 #define BWM_OTA_ACTION_VERSION 0x04 #define BWM_OTA_ACTION_REBOOT 0x05 -// Max firmware bytes per WRITE action. Bounded by the BWM app_com UART link's -// internal frame buffer (bwm_wifi.c: bwm_cmd()'s `frame[8 + 256]`), which is -// far smaller than the USB link's max_cmd_data_size - do not derive this from -// g_conn.max_cmd_data_size. -#define BWM_OTA_CHUNK_MAX 196 +// Max firmware bytes per WRITE action. +#define BWM_OTA_CHUNK_MAX 2048 // CMD_PM5_BWM_WIFI payload: [action:u8][port:u16 LE][ssid\0][pwd\0][hostname\0] #define BWM_WIFI_ACTION_START 0x00 // join AP + start TCP server #define BWM_WIFI_ACTION_STOP 0x01 // tear down, back to BLE-only