Galaxy S24 Ultra (Android 17) ranges with a DWM3001CDK: stock QM33 SDK 1.1.1 UCI firmware, phone as initiator via adb shell cmd uwb

I couldn’t find any published report of a Samsung phone ranging with a DWM3001CDK (every success I found was a Pixel), so here is one: it works, at least with one board.

Setup

  • Phone: Galaxy S24 Ultra, SM-S928B, Android 17 (One UI 9), build S928BXXS6EZJ1. Its UWB chip should be NXP SR200-family going by S24 Ultra teardowns (not checked on this unit).
  • Board: DWM3001CDK running the stock DWM3001CDK-UCI-FreeRTOS.hex from DW3_QM33_SDK 1.1.1, flashed through J9 with J-Link Commander. No firmware changes, no rebuild.
  • Board side: Qorvo’s own run_fira_twr.py (uwb-qorvo-tools, SDK 1.1.1) over the J20 USB port, as controlee / responder.
  • Phone side: no app code. The phone was controller / initiator through the shell command cmd uwb start-fira-ranging-session, which the shell user is allowed to run on this retail build (as are status, get-ranging-session-reports and stop-all-ranging-sessions; get-uwb-state is not).

I used byte-symmetric values throughout (addresses 0x1111 / 0x2222, vendor ID 0x0808, static STS IV 08 x 6) so byte-order mistakes could not cause a failure.

Board (PC):

python run_fira_twr.py -p COM14 --controlee -t 30 -s 42 -c 9 --preamble-idx 9 \  --mac 0x2222 --dest-mac "[0x1111]" --vendor-id 0x0808 --static-sts 0x080808080808 \  --round ds-deferred --node unicast --slot-span 2400 --slots-per-rr 25 \  --ranging-span 200 --aoa-report all-disabled --frame sp3 --hopping-mode disabled

Phone (started a few seconds after the board):

adb shell cmd uwb start-fira-ranging-session -i 42 -c 9 -p 9 -t controller -r initiator \  -a 4369 -d 8738 -m unicast -u ds-twr -l 200 -s 25 -h 2400 -o static \  -v 0808 -g 080808080808 -e none -y disabledadb shell cmd uwb get-ranging-session-reports 42adb shell cmd uwb stop-all-ranging-sessions

(-a 4369 and -d 8738 are 0x1111 and 0x2222 in decimal.)

Result

  • 20 s run at 200 ms: 103 of 103 rounds Ok on the board once the phone started (the board’s earlier rounds were RangingRxTimeout while it waited).
  • The phone reported 1.28–1.33 m to address 0x2222, status 0, RSSI about −82 dBm, line of sight on nearly every report. The board measured 125–136 cm (median 130).
  • A second 10 s run: 52 of 52.
  • Distances were not checked against a tape: this board’s antenna-delay calibration is off at the moment, so treat the numbers as “it ranges”, not as accuracy.

Python 3.12 note for uwb-qorvo-tools

The tools declare Python 3.9–3.10. On 3.12, importing uci fails with AttributeError: type object 'Gid' has no attribute 'Qorvo': DynIntEnum.extend adds members only to _member_map_, and 3.12 no longer falls back to _member_map_ on attribute lookup. A small wrapper restores that lookup and runs any of the scripts unchanged (only pyserial and colorama are needed for the ranging scripts):

# uqt_run.py <script.py> [script args...]import enum, pathlib, runpy, sys
def _member_fallback(cls, name):    if name.startswith("_"):        raise AttributeError(name)    try:        return cls.__dict__["_member_map_"][name]    except KeyError:        raise AttributeError(f"{cls.__name__} has no member {name!r}") from None
enum.EnumType.__getattr__ = _member_fallbackscript = pathlib.Path(sys.argv[1]).resolve()tools = next(p for p in script.parents if (p / "lib" / "uwb-uci").is_dir())sys.path[:0] = [str(tools / "lib" / "uwb-uci"), str(tools / "lib" / "uqt-utils"), str(tools)]sys.argv = [str(script)] + sys.argv[2:]runpy.run_path(str(script), run_name="__main__")

Not tested yet

  • Several boards in one session (one-to-many / multicast DS-TWR).
  • Ranging from an app through the android.ranging API with a fixed phone address, rather than through adb.
  • CLI-firmware anchors that start on their own without a PC.

If anyone has run a one-to-many session from a Galaxy, I’d be glad to compare settings. I’ll post an update when I get there.

Thank you for sharing your findings with the community. We appreciate your willingness to contribute and support others.