anton.veretenenko

OWON XDM1000 Speed Patch

Firmware patch that makes High measurement speed the power-on default

OWON XDM1000 Speed Patch

The XDM1041 / XDM1241 always powers on in Low speed (4 readings/s). Mid (16 rdg/s) and High (65 rdg/s) exist, but every power cycle resets to Low. This project patches the firmware itself so the factory-default power-on state uses High — without touching calibration and without breaking the "Last" power-on mode.

GitHub · Source code
GhidraARM Thumb-2GD32F303Firmware Patchingxdelta3SCPIAI-assisted RE

Task

Make High (or Mid) measurement speed the default after power-on on an OWON XDM1041 / XDM1241, for the exact stock image XDM1041_OS_V4.9.1_20260111.bin (165,504 bytes, SHA-256 735492f5…6f08b). Earlier workarounds had to send RATE F over SCPI from an external controller on every boot; the goal was to fix the behaviour in the firmware.

Hardware

GD32 version of the XDM1000 series: controller board XDM1041_dig_V1.7 (2023.09.18) with a GigaDevice GD32F303CCT6A (LQFP48, ARM Cortex-M4, 256 KiB flash, 48 KiB SRAM). The patch is tied to the exact binary and is not intended for other MCU revisions (for example the XDM2041 uses a GD32F103 and a different layout).

Analysis

In Ghidra, the boot path is FUN_08004bda: it reads the Power-On Setting flag from settings[0xb0] (0 = Default, non-zero = Last). On the Last path it copies the saved speed from settings[0xb4] into the engine struct at +0x4c; on the Default path it stores 0 (Low). The whole image is 165,504 bytes of Thumb-2, so every claim was checked against the disassembly and then against the meter.

Patch

The single store of the Default path at 0x08004c3e is replaced with a branch to a small routine appended after the original image at 0x0802af00: movs r5,#2 (High; #1 for Mid), strb r5,[r0,#0x4c], restore r5 = 0, then branch back to 0x08004c42. Two variants ship as xdelta3 patches; the calibration page and the personalised XDM1241_OWON_TXT_*.bin configuration are untouched, and the Last path stays byte-identical to stock.

Verification

Tested on a real unit with the DS-Wave USB flasher: the patched meter boots in High, changing Speed with the meter's own keys still works, and with Power-On Setting = Last the meter keeps loading the last saved settings. The public repository ships no vendor firmware — patches apply to a user-supplied image and are validated by SHA-256.

Features

Contact

I’m always open to interesting projects, orders and questions. Reach out anytime.

Anton Veretenenko

Embedded and mobile developer with 18+ years of experience — from firmware and PCB design to Android and Kotlin Multiplatform. I build electronics from idea to production.