ExtremeBullSyncProtocol
Properties
Manufacturer name (used for display and logging).
More specific dialect/family implementations may refine this protocol identity.
Gotway/Begode wheels use an HM-10 style serial-to-BLE bridge whose FFE1 characteristic only advertises write-without-response; legacy WheelLog also writes every Gotway command with WriteType.WITHOUT_RESPONSE.
Stable fingerprint key; independent of runtime class names and inheritance.
Explicit command support matrix for this protocol. Commands outside this set are considered unsupported by design.
Functions
Whether a BLE-stack rejection may be retried. Accepted writes are never replayed.
Rechecked by the BLE write queue immediately before submission.
Additional live prerequisites; explanations must never include input values or credentials.
Open-ID encoder extension point; existing protocols retain their enum encoder.
Encode a command. Returns an owned byte array, or an empty array when unsupported, invalid or blocked by protocol state. The session must surface an empty result as failure.
Drains every pending output of this protocol in FIFO order.
Checked contract API. Rejects invalid values before encoding (and its possible side effects), instead of relying on legacy clamping, masking or ignored fields.
Returns the current BMS data snapshots for all detected smart-BMS groups. Each entry represents one cell group (up to 4, matching the Begode app's G1..G4 tabs). Group summaries come from Type 1 frames (subpage = group) and cell voltages from the Type 2/3 streams (Type 2 carries groups 1 and 2, Type 3 carries groups 3 and 4).
Returns the candidate data characteristic UUIDs for this protocol.
The advertised firmware banner selects which catalogue profile applies. Stock firmware gets the base command set; "BF" (SmirnoV) adds the fourth pedal mode and "CF" (Freestyl3r) adds the fourth alarm preset. Until a banner arrives the base set is used, so unknown wheels are never offered a command their firmware is not known to accept.
API-level command support check (used by framework and clients).
Get the UUID for the data characteristic
Latest diagnostic-log download snapshot, or null if none was started (or unsupported). Data is only exposed once the whole file is received and CRC-verified.
Optional polling/query plan consumed by the session layer.
Get the UUID for the service
Get the UUID for the write characteristic (if different from data characteristic)
True when this telemetry contains a new speed measurement rather than a carried-over value.
Check if the device is ready for operation
Returns true if the given BLE device advertisement name suggests this protocol.
Optional query/response matcher used by session observability and retry policy.
Called only after the BLE stack accepts a queued write, not when it is encoded.
Feeds one raw BLE notification (any fragmentation) into the state machine.
Called when a timer armed with ProtocolOutput.StartTimer expires.
Returns and removes the next pending output, or null when there is none.
Clears connection-specific state without closing this reusable protocol.