Skip to content

DX Hub — User Guide

DX Hub is a web tool that connects to your DX2 Ultra right from the browser: update firmware, check for faults, balance the platform, test its motion, and calibrate the mechanical zero. No software to install.

Just open the URL: https://dynamicx.fun/control/dx2/

The page is available in Chinese and English. Use the 中文 / EN dropdown at the top-right of the sidebar to switch; your choice is remembered by the browser.


0. Before you start

You'll need:

  • A Windows PC with Chrome or Edge (Windows only for now; other browsers are not supported).
  • A USB data cable (note: charge-only cables won't work).
  • A powered-on DX2 Ultra platform.

That's it. From there, just work down the page top to bottom.


1. Interface at a glance

When the page loads: the control sidebar is on the left with two tabs at the top — Normal / Advanced; the activity log is on the right.

DX Hub overview

The sidebar features fall into two groups:

Location Feature Purpose
Top (pinned) Connection Pick the device, connect / disconnect the platform
Normal Firmware update Update the platform to the latest version
Normal Fault records See the faults each motor has reported
Normal Balance Check Balance the platform to neutral when fitting the seat
Normal Position control Manually move the platform to a given position
Advanced Hardware profile Only for a wrong factory config or swapped hardware
Advanced Mechanical zero calibration Set the platform's current level position as zero
Advanced Motor firmware Update a motor's firmware when support directs you
Advanced WiFi on/off Turn WiFi off/on when the USB power is marginal

Everyday use only touches the Normal tab; the Advanced tab is for installation and service scenarios (see section 7). The Connection section stays pinned at the top — switching tabs never drops the connection.


2. Step 1 — Connect the platform

  1. Plug the USB cable from the platform into your computer.
  2. In the Connection section, click Connect serial port. The browser pops up a device picker (this is the browser's own dialog; its text follows the browser language):

    Device picker

  3. Pick the simulator's serial port. On Windows it usually shows as COM3 / COM4 / etc. (labeled USB Single Serial or the vendor name). If unsure, unplug the USB and see which entry disappears, then plug back in and pick that one.

  4. Click Connect.

On success the Connection section turns green and automatically reads the platform's version info (the whole thing takes 1–2 s):

Connected, versions loaded

What the fields mean:

  • Main controller firmware — the platform's current controller firmware version. Compare it against the version in the release notes to confirm the right firmware is flashed.
  • Motor firmware — the current firmware version of each motor (M1 / M2); a motor that isn't connected shows N/A.
  • ✓ Handshake successful — the platform responded correctly; communication is working.
  • The Refresh button beside each row — if you suspect a value is stale, click it to re-read.

If the status turns red:

  • Cannot open port — it may be held by another tab or program, or the USB cable is loose. Check and retry.
  • Device did not respond — you may have picked the wrong port (not this platform), the platform firmware may be too old, or the platform may be hung. Follow the prompt to try a different port, go to Firmware update, or unplug/replug the USB.

3. Step 2 — Firmware update

  1. In the Firmware update section, click Fetch latest stable. The page fetches the newest version from the server.
  2. Check the version tag vYYYYMMDD.N:

    Latest stable loaded

  3. Click Upgrade to latest stable (v…).

  4. Do not unplug the USB, and do not let the computer sleep during the update. The whole thing takes about 30 seconds; the page updates, reconnects, and verifies the version automatically.
  5. A ✓ in the status row means the update succeeded.

3.2 Install a specific version (when support directs you)

While troubleshooting, support may ask you to install a specific test build. Two ways:

  • Enter it manually: expand Use specific version (provided by support), paste the tag support gave you (like vYYYYMMDD.N), and click Load.

    Specific-version panel expanded

  • Open a prefilled link: support sends you a link; opening it fills in the version automatically, so you just confirm and click ⚠ Flash v….

    Tag deep link prefilled

The amber ⚠ Flash button means this is a test build — use it only when support explicitly tells you to. It is not the everyday update path.

3.3 Reset device

If the platform doesn't reconnect after an update, or you suspect it's stuck, click Reset device — this is the equivalent of unplugging and replugging the USB.

Firmware update is complete at this point. The sections below (fault records, balance check, position control, …) are independent tools — use them when you need them; they are not sequential steps.


4. Step 3 — Fault records

The platform records the faults each motor has reported. To check them:

  1. In the Fault records section, click Read (M1 + M2).
  2. The page shows, for each motor, its current faults, its fault history, and how many times each fault type has occurred:

    Faults loaded

What the fields mean:

  • Current faults (realtime) — what this motor is reporting right now.
  • Fault history (latched) — every fault seen since the last clear; once seen it stays recorded until you clear it, even if everything is fine now.
  • Fault types — Undervoltage, Driver, Overheat, Encoder, Stall-Overload.
  • Per-type counts — how many times each fault type has occurred (capped at 255).

Operations:

  • Clear (top-right of each motor block) — clears that motor's fault history (current faults are left alone, since they reflect the state right now).
  • Example: Undervoltage 11 means undervoltage has occurred 11 times historically; if "current faults" also shows undervoltage, it's still happening now.

5. Step 4 — Balance Check

After fitting your seat, use this to bring the platform's load to neutral — so the motors barely have to work when the platform is level and still. If the center of gravity of the seat (with you in it) isn't over the platform's center, the motors have to fight a constant off-center load, which adds wear and heat. Balance Check helps you get the seat position right.

Balance check

How to use it

  1. Set it up with the weight you normally use (sit in the seat if you can), then click ▶ Start Balance Check. The platform holds at center and shows the live load on the two motors, M1 / M2.
  2. Read the M1 / M2 bars: the longer a bar, the harder that motor is working. Green = within the safe range; red = over it.
  3. The goal is to get both bars into the green, as close to center (0) as you can.
  4. When done, click ■ Stop Balance Check.

Which way to adjust

M1 and M2 are the two motors on the platform's left and right. The direction the two bars lean tells you where the weight is off:

  • Both bars lean the same way (both positive or both negative) → it's a front/back offset → slide the whole seat forward or back.
  • The bars lean opposite ways (one positive, one negative) → it's a left/right offset → shift the seat / weight to one side.
  • Both bars centerd (green) → balanced; you're done.

Not sure which way to move? Nudge it a little and watch the bars — if both get shorter toward the center, you're going the right way; if they grow, go the other way. Repeat in small steps until both settle in the green, then tighten the seat bolts and check once more.

The green/red threshold defaults to 10 Nm; change it in the input at the bottom right. Balance Check and Position control can't run at the same time — while Balance Check is running the position-control buttons are greyed out, and starting Balance Check also stops any sequence playback.


6. Step 5 — Position control (test motion)

Use this to manually move the platform to a given position, which is handy for testing.

For the first 10 seconds after motion starts, the speed ramps up from slow to full (giving you time to brace). Pausing for more than 2 seconds restarts the slow ramp. With no new command, the platform holds its last position — this is normal; it does not automatically return to level.

Position control

6.1 One-shot

  1. Enter a 4-digit hexadecimal (hex) value in each of the M1 / M2 boxes. Not familiar with hex? Just go by the live percentage on the right; three values cover most needs: 8000 = level mid-position (0%), 0000 = lowest (-100%), FFFF = highest (+100%).
  2. Click Send now and the platform moves to that position; the page shows live position, speed, load, and temperature.

6.2 Sequence playback

You can build a routine that makes the platform move repeatedly:

  1. Set an M1 / M2 pair and a hold time (how many milliseconds to dwell), then click + Add to sequence; repeat to build up a sequence.
  2. (Optional) tick Loop to repeat endlessly; leave it off to play once.
  3. Click ▶ Play. Inputs lock during playback; each point holds for its set time, then advances to the next.
  4. Click ■ Stop to stop; the platform holds at its last position.

Click the ✕ on a row to remove that point, or edit the values inline.


7. Advanced tab — service tools

Switch to the Advanced tab at the top of the sidebar to see the tools below. You won't need these for everyday use — only during first-time installation and calibration, after a hardware change, when the factory config is wrong, or when support directs you.

⚠ These are service-grade tools — don't change them unless you know what you're doing. A wrong hardware profile silently changes how the platform moves (with no obvious error); a wrong mechanical zero leaves the platform tilted long-term. Only proceed when support directs you, or during a first-time install / hardware swap.

7.1 Hardware profile

Read / switch the platform's hardware profile. Different profiles correspond to different hardware revisions and affect the platform's motion parameters.

Hardware profile

  • Refresh — reads the platform's current profile.
  • Dropdown — selects the profile to switch to. It lists only the profiles the current firmware supports; click Refresh first to see the full list.
  • Switch and reboot — writes the chosen profile to the platform and reboots it. Only use it when you're sure the current profile is wrong (e.g., shipped wrong, or hardware swapped).

How to switch

  1. Update the firmware to the latest stable version first (section 3). If the motors are being updated on the first boot afterwards, keep the platform powered and do not unplug USB.
  2. Advanced → Hardware profile → click Refresh.
  3. Choose the profile in the dropdown and click Switch and reboot.
  4. After the reboot, reconnect and click Refresh to confirm the new profile.

Which profile to choose

Profile For Pitch range
V0_NO_BLEEDER Early units without a bleeder resistor about ±9°
V1_WITH_BLEEDER Units with a bleeder resistor and the original limit range about ±9°
V2_BLEEDER_WIDE_TRAVEL Units with a bleeder resistor and the wider limit range about ±10°
  • Units with the original limit range: use V1. V2 would make them hit the limit block.
  • V2 not in the dropdown: update the firmware first (section 3).
  • Not sure which one to choose: contact support.

7.2 Mechanical zero calibration

⚠ Step 1 releases the motors and the platform falls freely. Hold the platform with one hand before you click, so it doesn't hit anything or get damaged.

Mechanical zero

Procedure:

  1. Steady the platform with one hand.
  2. Pick the motor to calibrate: All motors / Motor 1 / Motor 2.
  3. Click 1. Release motors — the selected motor releases so you can move it freely by hand.
  4. Manually move the platform to the level position (against your mechanical level reference).
  5. Click 2. Set current position as zero.
  6. A ✓ in the status row means the zero has been saved.

If something goes wrong mid-way, click Restart to go back to the motor-selection step.

7.3 Motor firmware

⚠ This is the most dangerous service tool. Uploading firmware for the wrong motor model or version can render the motor permanently inoperable. Do not touch this unless support has explicitly told you to.

Used to update a motor's firmware from a file provided by support.

Procedure:

  1. Get the firmware file from support (usually named like rs04_x.y.z.w.bin).
  2. Click Choose file and select it. The page shows the file name, size, and a checksum (CRC32) — verify this checksum with support to confirm the file is intact.
  3. Pick the target motor: Motor 1 / Motor 2 / All motors. The default is Motor 1 (not "All", to avoid accidentally overwriting a healthy motor).
  4. Click Upgrade motor firmware; the whole flow takes about 1–2 minutes. The page shows progress; when done the platform reboots and reconnects automatically.
  5. After it reconnects, check the motor firmware version in the Connection section to confirm the update.

While upgrading, the other features (position control, Balance Check, fault reads) are temporarily unavailable.

If it fails: the page shows an error and the platform does not reboot automatically. Contact support immediately — do not keep retrying on your own, as blind retries can make things worse.

7.4 WiFi on/off

Useful when the platform's USB power is marginal: old USB 2.0 ports, bus-powered hubs, and low-wattage chargers can cause a current spike at WiFi startup that reboots the platform. Fix it in hardware first — use a USB 3.0 port or a self-powered hub (see product manual §3.2 / §4.4); only turn off WiFi if that isn't an option.

To use it: click Disable WiFi and the platform reboots, dropping the connection for a few seconds before it reconnects. Click Enable WiFi to restore it — same procedure.

  • Still works with WiFi off: connection, version reads, fault reads, Balance Check, position control, and all firmware-update and calibration features.
  • Doesn't work with WiFi off: game link (PS4 / PS5 → platform), data reporting, and the platform's built-in WiFi config web page.

8. Activity log

The right side of the page is a read-only activity log that records the messages between the platform and the page, mainly for troubleshooting.

Activity log

Each line starts with a tag indicating the message type (such as [TX] / [RX] / [POS] / [FLASH] / [INFO] / [WARN] / [ERR] — see the technical appendix at the end for the meanings). Top right:

  • Follow (on by default) — auto-scrolls to show the latest; uncheck it to scroll back through history.
  • Clear — clears the display only; it does not affect the platform.

9. Everything loaded

After connecting, reading versions, fetching the latest firmware, and reading faults, the page looks roughly like this:

All loaded


10. FAQ

Q: After clicking "Connect serial port", my platform isn't in the list. A: The computer isn't detecting the platform. Check the USB cable (some cables charge only and can't transfer data — prefer the one from the box), the USB port (plug directly into the computer rather than a hub), and whether the platform is powered on. Windows is usually driver-free and needs no manual install.

Q: Connected, but the status turns red "Device did not respond"? A: It could be (1) the wrong port — try another one; (2) firmware too old — go to Firmware update and update to the latest stable; (3) the platform is hung — unplug/replug the USB or click "Reset device".

Q: The page hangs mid-update, or shows a fetch failure / version not found. A: Usually a network issue or too-frequent access. Wait a minute, then click Refresh and retry.

Q: The USB got unplugged / the computer lost power mid-update. A: The platform may be left half-updated. Reconnect the USB, reload the page, and click Upgrade to latest stable or Flash v… again — the update starts over from scratch and doesn't depend on the previous state.

Q: After the update the version still shows the old one. A: Check that Main controller firmware matches the release notes. If it matches but you don't see the feature you expected, that version may simply not include it — double-check the version tag.

Q: How many pages can connect to the platform at once? A: Only one page can be connected at a time. Opening a second page to the same platform will fail — close the other page, or disconnect first.


Technical appendix (service / developers)

The following is the low-level implementation detail behind each feature. Ordinary users don't need to read it; it's here for service troubleshooting and developer reference.

Browser & connection requirements

  • Requires Chromium 89+ (Chrome / Edge); Firefox / Safari don't implement WebSerial.
  • WebSerial is restricted to https origins. https://dynamicx.fun serves over HTTPS and works out of the box; local dev must use https://localhost, never http://.
  • Once you grant a port to an origin, the browser remembers it (in localStorage) and won't ask again. A different USB port or cable may change the OS-level device name and re-trigger the picker.
  • The product is officially Windows-only for now; Windows is generally driver-free (uses the built-in USB CDC / cdc-acm driver).

Connection flow & protocol

On success the UI automatically runs, in order: handshake (0x01) + read main git (0xFF) + read motor firmware (0x41).

  • Main controller git — a 4-byte git short hash baked into the main-controller firmware at build time.
  • Motor firmware — M1 / M2 versions queried over CAN; no CAN reply shows N/A.
  • Handshake successful — protocol challenge/response passed; firmware protocol version is compatible.
  • Cannot open port — held by another tab / program, or a loose cable.
  • Device did not respond — auto-handshake timed out: wrong port, outdated firmware (doesn't recognize the new protocol header), or a hung device.

Firmware update internals (main OTA)

Flashing is done by esptool-js:

  1. Hand off the serial port → esptool-js takes over.
  2. Toggle DTR / RTS to put the ESP32 into ROM bootloader.
  3. Flash 4 files: bootloader / partitions / firmware / spiffs (~10 s).
  4. Programmatic reset back to App mode; DX Hub auto-reconnects, re-reads the main git, and compares it against the target hash.

"Fetch latest stable" pulls the newest prerelease=false tag from GitHub Releases; "⚠ Flash" corresponds to a prerelease build. The prefilled link is a deep link carrying a ?fw=vYYYYMMDD.N parameter. "Reset device" resets via DTR / RTS toggle, equivalent to an unplug/replug. The GitHub API rate limit is 60 req/h; with no metadata ever fetched, the UI falls back to a localStorage cache.

Fault byte format

The ESP32 maintains realtime fault bytes for both motors plus per-type counters (uint8, saturating at 255).

  • Realtime — the error byte the motor reports in this cycle; each bit is one fault type.
  • Latched — the OR of every fault seen since the last clear.
  • Fault types (low 6 bits): Undervoltage / Driver / Overheat / Encoder / Stall-Overload / Reserved.
  • Clear — clears the latched field; realtime is left alone.

Balance Check mechanism

DX Hub polls SET_POSITION (0x02) to center every 100 ms; the motor doesn't move if it's already there but reports realtime torque each cycle. Threshold defaults to 10 Nm (stored in localStorage). Mutually exclusive with position control.

Position control & telemetry format

  • Input is 4-digit hex (0x0000–0xFFFF): 0x8000 = mid = 0%, 0x0000 ≈ -100%, 0xFFFF ≈ +100%.
  • Sent via SET_POSITION (0x02); firmware returns a telemetry frame every ~30 ms (position / velocity / torque / temperature).
  • Velocity ramps from slow to full over 10 s after engagement; resuming after a >2 s pause restarts the slow ramp. With no new command it holds the last target (the motor's natural position-control behavior; there is no longer an auto-return-to-level timeout).

Service tool internals

  • Hardware profile: V0_NO_BLEEDER / V1_WITH_BLEEDER / V2_BLEEDER_WIDE_TRAVEL, affecting max_acc and similar motion parameters (V2 equals V1 but with ±34.8° motor travel, i.e. platform pitch ±10°; for the newer bracket with the wider limit range and for units without the limit block — units with the original bracket, limit about ±32°, stay on V1); read/written via 0x40 to the MCU, and a write triggers a reboot.
  • Mechanical zero: 0x28 enters run-control mode (freedrive) to release the motors → level the platform by hand → 0x26 writes the current position to the motor's EEPROM as zero.
  • Motor firmware OTA: pushes a .bin over CAN OTA to M1 / M2 / both. The controller doesn't write its own flash — the bin only passes through a RAM ring buffer that streams to CAN. Flow: prepare (stop both motors, handshake the motor MCU UID) → flash (CAN OTA 5-step: ANNOUNCE → START → INFO → DATA → END) → finish (controller ESP.restart(), UI disconnects then reconnects with refreshed versions). While upgrading, the controller's main loop skips motor control so the CAN bus is OTA-only. On failure the controller does not auto-reboot. Both mode: after M1 finishes, fw enters PHASE2_WAIT and the host re-streams the same bin to M2 — the progress bar walks 0%→100% twice before the controller restarts. The file is usually named like rs04_x.y.z.w.bin, and the UI shows its CRC32 for verification.

WiFi mechanism

Click Disable WiFi → firmware writes NVS → auto-ESP.restart() → serial drops for a few seconds then reconnects. Boot log: [WIFI] disabled by NVS - WiFi/web/MQTT/GT7 skipped (USB low-power mode). Enable WiFi is symmetric. What stops working with WiFi off: the GT7 link (PS4 / PS5 → controller UDP), MQTT telemetry, and the device's built-in WiFi config web page. It's for cases where a weak USB 2.0 port / bus-powered hub / low-wattage charger causes the WiFi-startup current spike to brown-out reset the controller.

Log prefix meanings

  • [TX] — host → fw (request frame 54 00 …).
  • [RX] — fw → host (response frame AA 00 …).
  • [POS] — parsed position telemetry (M1 / M2 position / velocity / torque / temperature).
  • [FLASH] — firmware-update phases.
  • [INFO] / [WARN] / [ERR] — DX Hub's own messages.

Protocol command table

Full definition in software/webserial-ui/src/protocol.ts.

Cmd Name Req len Resp len Notes
0x01 HANDSHAKE 8 8 seed challenge
0x02 SET_POSITION 8 20 u16 M1 + u16 M2, returns telemetry
0x26 SET_MECH_ZERO 8 8 writes current position to EEPROM as zero
0x28 SET_RUN_MODE 8 8 enter run-control (freedrive)
0x30 READ_FAULT 8 13 per-motor fault read; sub-cmds for clear/reset
0x40 HW_VERSION 8 8 read/write hardware profile
0x41 MOTOR_FW_VERSION 8 14 read M1/M2 motor firmware versions
0x50 MOTOR_OTA_BEGIN 13 5 start motor OTA: declare total_size + crc32 + target_motor
0x51 MOTOR_OTA_CHUNK 9 + len 10 stream a bin chunk (data payload up to 128 bytes)
0x53 MOTOR_OTA_PROGRESS — 8 fw-initiated: upgrade stage + percent + M1/M2 state
0x60 READ_WIFI_STATE 8 8 Read WiFi switch: NVS flag + current-session state + wl_status_t
0x61 SET_WIFI_ENABLED 8 8 Write WiFi NVS flag; returns ok + whether a restart is needed
0xFF FW_VERSION 8 8 4-byte git short hash of main controller

Request frame: [0x54][0x00][cmd][payload][0x56]. Most commands have a 5-byte payload and total 8 bytes; motor OTA is the exception — 0x50 totals 13 bytes, 0x51 is variable 9–137 bytes (the 8th byte len controls payload size).

Response frame: [0xAA][0x00][cmd][payload...][0xAA], length depends on cmd (see table above).