EucBleClient
Main public entry point for EUC BLE discovery, connection and telemetry.
Protocol registration is fully managed internally; client applications should not register brand-specific protocols, but may inspect and manually select from the registered protocols using getRegisteredProtocols.
When a caller scope is supplied, this client creates child jobs and cancels only those jobs during cleanup, leaving the supplied scope and unrelated work active.
Properties
RX-only view of trafficFlow. Bytes are shared, read-only notification chunks.
Individual status notifications, including repeats. No replay; see BLEManager.securityEventFlow.
Latest wheel-confirmed security state. Null when unavailable; collect for client PIN UI.
Bidirectional BLE capture; see BLEManager.trafficFlow for delivery and buffering semantics.
Functions
Submit a four-ASCII-digit KingSong PIN. No persistent storage or reconnect replay.
Cancels an active diagnostic-log download.
Connect an Android device discovered by the application, without a library scan. Pass the advertised name when available, since it can affect protocol selection. An RSSI of zero means that the signal strength was not supplied.
Returns the latest BMS snapshot of the connected wheel (cell voltages, temperatures, pack voltage/current, charging status), or null when the wheel does not expose BMS data.
Refresh after protocol identification, model updates or reconnects; not a wheel safety guarantee.
Latest diagnostic-log download snapshot, or null when none was started.
Returns all registered protocols. Callers can use this list to freely choose a protocol for manual selection via selectProtocol or forceProtocol.
Explicit request only; confirmation arrives via securityStateFlow.
Starts downloading the wheel diagnostic log (InMotion P6/V9). Poll getDiagnosticLogTransfer for progress; the verified binary is available via DiagnosticLogTransfer.copyData once the state is COMPLETED. Saving or sharing the file is up to the client application.
Validates against the current contract; rejected inputs are reported through ErrorCallback.
Explicit KingSong request; observe securityEventFlow for confirmation or timeout.
Explicit unlock request; verify behavior on the specific wheel and firmware.