Skip to content

Cloud Account Management

The XREG-010 registers itself once with the X Engineering cloud platform to enable cloud-side features (leaderboards, config sharing, history backup, and forced-update notices). The fleet statistics page is readable without registering. Ordinary over-the-air updates do not need registration: the version list and the install come from the update server directly. After that first registration the regulator logs in automatically on every boot; there is no manual login, ever.


How registration works

First boot

  1. Connect the regulator to WiFi. On first boot the regulator's hotspot comes up and serves a WiFi setup page; the walkthrough is in Connecting to the Regulator.
  2. Open the dashboard, press Unlock Controls, and go to Cloud Features → Registration. The Cloud Features tab opens only while controls are unlocked and after Vessel Info has been saved.
  3. Fill out the registration form (username and email) and press Save Profile Changes. Registration carries identity only. Your vessel details (boat, engine, battery bank, alternator) are not part of this form: the regulator uploads them separately with its configuration snapshot, and it queues one as soon as registration succeeds, so the cloud profile fills in without further action shortly afterward.
  4. The regulator contacts the cloud, creates your account, and saves the registration token in its internal memory (NVS partition, under the key authToken).
  5. Cloud features are available as soon as the token is saved.

You only do this once per regulator.

Every subsequent boot

The regulator reads its registration token from internal memory at startup and identifies itself to the cloud automatically. As long as it can reach the internet and the Cloud Features switch under Setup → System is on (it is on by default), your data syncs in the background with no user action.


Account-management buttons

Delete My Account

Location: Cloud Features → Registration → Account Management Network required: Yes

Permanently deletes your cloud account and all associated data: vessel profile, statistics, sensor history, leaderboard entries. The cloud row is destroyed and cannot be recovered. A configuration you submitted to the shared config library stays in the library, with its link to your device removed. The record of which firmware version the regulator downloaded or was flashed with, and when, remains stored under its serial number for safety recalls and support, with the IP address and browser details removed. The regulator also clears its local registration token, so it behaves as if it has never been registered.

Local features (charging control, dashboard, sensor reads) continue to work normally; only cloud data is affected.

Use this when:

  • You want to start over in the cloud with a fresh account.
  • You are transferring ownership to a new user.
  • You no longer want your data on the platform.

If the regulator cannot reach the cloud at the moment you press the button, nothing is deleted. Try again when you have internet.

Erase All Memory

Location: Setup → System → Security & Maintenance (the Erase All Memory row; the button itself reads Restore Defaults) Network required: No

Resets the regulator to factory defaults: clears every saved setting, WiFi credential, calibration value, buffered log, and tuning history record. Restarts the regulator into WiFi configuration mode.

The cloud registration token is deliberately preserved across this wipe. Your cloud account, history, and leaderboard entries stay intact. After you reconnect the regulator to WiFi, cloud features resume automatically. Mechanically, performDeepFactoryReset() reads the token (authToken) out of NVS before the wipe and writes it back afterwards; it is held only in RAM for the two or three seconds of the wipe, so losing power during the reset loses the token and requires support contact to re-register.

Use this when:

  • You want to reset all local data (e.g. you have made tuning changes you no longer want and want to start over).
  • You want to wipe local WiFi/settings without losing your cloud history.

This button works fully offline; it does not contact the cloud.


Common scenarios

"I want a completely fresh device for a new owner"

Press Delete My Account first (this deletes the cloud account), then Erase All Memory (this resets local settings). The new owner connects to WiFi, opens the dashboard, and registers a fresh account. None of your data is visible to them.

"I re-flashed the firmware over USB — am I still registered?"

Yes. A normal Arduino IDE upload only replaces the application code. It does not write to the NVS partition where the registration token is stored. The regulator stays logged in and no re-registration is needed.

The same is true of over-the-air updates and of USB uploads of the web files: none of these paths erase the key-value store (nvs partition) or touch the token. An over-the-air update writes only the update request, the reason when an attempt fails, and the verified-install record there. (Which flash slot each path writes, and why USB-flashed code is not even the copy that boots on an updated regulator, is covered in OTA Updates.)

"I did a full chip erase (esptool.py erase_flash) — what now?"

A full chip erase wipes the registration token along with everything else. When the regulator sends a registration again, the cloud finds that this regulator's serial number is already registered and refuses to issue a new token. The regulator stays in "not registered" state.

To recover, email joe@xengineering.net with your regulator's serial number (visible under Live Data → ESP32 → System Overview → Device Serial, also shown on Cloud Features → Registration → Device Information → Device ID when accessible). The previous account will be deleted server-side, after which you can register the device fresh. Your previous history and leaderboard entries are not recoverable.

"I bought a used device but the seller didn't press Delete My Account first"

Same recovery as above: email joe@xengineering.net with the regulator's serial number (Live Data → ESP32 → System Overview → Device Serial). The previous owner's account will be deleted and you can register fresh.

"My regulator's NVS got corrupted somehow"

Rare, but the recovery is the same as for a full chip erase: email joe@xengineering.net.


Why registration cannot be repeated

The regulator's unique device ID (device_uid) is derived from a factory-burned identifier (the eFuse MAC) on the ESP32 microcontroller; it is hardwired and cannot be changed in firmware. Once that ID has been registered to a cloud account, the cloud will never issue a new registration token to any request for that same ID.

This is what stops a stranger from impersonating your regulator and downloading your data: even if they somehow learn your device_uid, they cannot register a fresh account against it or extract your token. Recovery from genuine token loss requires support intervention by design.

Because the registration token is preserved across the Erase All Memory button, you can reset your regulator to defaults whenever you want without losing your cloud account. The only operations that break cloud access are the explicit Delete My Account button (intentional cloud reset) and a developer-level full chip erase (rare).


How your data is protected

  • Per-device authentication token (auth_token). The only thing that authorizes a request as "this regulator" is a token issued by the cloud on first registration. Every per-device endpoint (sensor history upload, history read, profile update, account delete) requires this token AND verifies it matches the device making the request. Knowing only the public-facing device ID is not enough to read or write your data.
  • Device ID is not published. Leaderboard and ranking responses do not include device IDs. Rows are tagged server-side with an is_current_user flag so the dashboard can mark your row without exposing identifiers.
  • The token is issued once. The cloud issues the token only at first registration. Re-registration attempts for an already registered regulator are refused with a 409 response, so the token cannot be obtained by anyone requesting it. After that the regulator sends the token with each of its cloud requests, and the dashboard reads it from the regulator to open the cloud pages (leaderboards, config sharing) as this device.
  • What is public. Registering shows your username, boat type, boat length, make/model, and year on the public leaderboards, next to the statistics being ranked (top speed, distance, the farthest north and south latitude reached, and the like). Your email and home port are never shown. The sensor history the regulator uploads, including the boat's position once per recording window, is stored against your account and read back only with your device's token.
  • The settings unlock is local-only. Unlocking the dashboard's settings forms is held on the regulator itself (see the settings arm gate). The optional settings password is stored on the regulator as a salted hash and is left out of the configuration export and the cloud snapshot; nothing about the unlock is transmitted in any cloud request.
  • Erase All Memory works fully offline. The cloud registration token is preserved in NVS across the wipe, so cloud account continuity does not depend on having internet access at the moment you press the button.