ข้ามไปยังเนื้อหา

Technical Specification

เนื้อหานี้ยังไม่มีในภาษาของคุณ

Reference for the interfaces, data models and storage ELRS Mobile uses. For how the pieces fit together, see Technical Architecture.

ExpressLRS devices serve a small HTTP API on their Wi-Fi interface (10.0.0.1 on the device’s own hotspot). All requests from the app go through one serialized client, one request at a time.

MethodEndpointUsed forFirmware
GET/Presence probe during discoveryAll
GET/hardware.jsonQuick identity probe3.2 and newer
GET/configDevice configuration (RuntimeConfig)3.1 and newer
GET/targetIdentity fallback: product name, version, target, domainOlder than 3.1
GET/mode.jsonBest-effort fallback: model id, UIDOlder than 3.1, where present
POST/updateFirmware upload (multipart); ?force=1 skips the device’s target checkAll supported
POST/forceupdateaction=confirm commits an image the device buffered after a target mismatchAll supported

/update and /forceupdate reply with JSON whose status is ok, mismatch or an error. The device sends its reply and then reboots. The app treats only ok as success; see Technical Architecture for how dropped connections are classified.

Device settings are edited through the device’s own web interface, shown in the app’s Device Config screen, so the app sends no configuration writes of its own.

RuntimeConfig mirrors the ExpressLRS 4.x /config structure, with three nodes:

  • settings: read-only identity, such as module type (RX or TX), product name, target, version and regulatory domain.
  • options: user and network options, such as UID, Wi-Fi SSID and password, Wi-Fi auto-on interval and the sub-GHz domain.
  • config: hardware configuration, such as model id, serial protocol and the PWM output array.

ExpressLRS 3.x returns a different shape. The app normalizes it to the 4.x layout before parsing, for example moving identity fields into settings and renaming reg_domain to domain. Pre-3.1 devices are reconstructed from /target and /mode.json.

The device’s chip family is derived from the target it reports and compared with the selected firmware’s platform before flashing.

When building ESP firmware, the app appends an options JSON block (up to 512 bytes) to the binary. Its fields include:

FieldSource
uidFirst 6 bytes of MD5('-DMY_BINDING_PHRASE="<phrase>"'); omitted for an empty phrase
wifi-ssid, wifi-passwordHome Wi-Fi network and password from the active profile
wifi-on-intervalSeconds before Wi-Fi starts automatically (default 60)
domainSub-GHz regulatory domain (900 MHz and dual-band targets)
flash-discriminatorValue derived from the build time, identifying this build

The JSON is written without whitespace. It is functionally identical to the ExpressLRS Configurator’s output, which adds spaces, but not byte-identical; see Firmware Validation.

Sub-GHz domains use these indices (ElrsMappings.domains900):

IndexLabelRegion
0AU915Australia and New Zealand, 915 MHz
1FCC915North America, 915 MHz
2EU868Europe, 868 MHz
3IN866India, 866 MHz
4AU433Australia, 433 MHz
5EU433Europe, 433 MHz
6US433North America, 433 MHz
7US433-WideNorth America, wide 433 MHz

2.4 GHz targets have two options, ISM (2.4 GHz) and EU CE (2.4 GHz LBT). The choice selects the FCC or LBT build of the firmware rather than writing a field.

FieldTypeDefault
namestring
bindPhrasestringempty
wifiSsid, wifiPasswordstringempty
defaultDomain2400int0 (ISM)
defaultDomain900int1 (FCC915)
wifiOnIntervalint (seconds)60
StoreHolds
FlutterSecureStorage (OS-encrypted)Flashing profiles, active profile, binding phrase, Wi-Fi network and password
SharedPreferencesNon-sensitive preferences: manual IP, disclaimer acceptance, Wi-Fi auto-on interval, language, Expert Mode, analytics opt-in, cache limit, update-check timestamps and skipped version, migration flags
App documents directoryFirmware cache: firmware.zip and hardware.zip per version, plus cached targets.json

Secure storage has been through two format upgrades. Data written by v1.0.44 or newer carries over; updating directly from v1.0.43 or older can’t, and the app tells the user once instead of silently showing empty profiles.

ServicePurpose
artifactory.expresslrs.orgFirmware index (index.json), firmware.zip and hardware.zip
raw.githubusercontent.comLatest ExpressLRS targets.json
cdn.elrsmobile.com/latest.jsonRelease information for the direct-download APK’s update check
SentryCrash reporting and optional debug reports. Active in builds made with SENTRY_DSN (all release builds) and independent of the Share Analytics setting
AptabaseAnonymous usage analytics: on by default (shareAnalytics defaults to true), turned off with Settings → Share Analytics