Class UsbV2Upgrader
USB V2 device (C1, ...) firmware upgrader.
public class UsbV2Upgrader : IFirmwareUpgrader
- Inheritance
-
UsbV2Upgrader
- Implements
- Inherited Members
Fields
UpgradeTimeoutSeconds
public const int UpgradeTimeoutSeconds = 360
Field Value
Properties
DesiredVersion
public FirmwareVersion DesiredVersion { get; }
Property Value
FirmwareVersion
[Obsolete("Use DesiredVersion instead. Property will be removed in SDK version 3.")]
public SemVersion FirmwareVersion { get; }
Property Value
- SemVersion
Methods
Execute(CancellationToken)
Executes a firmware upgrade. To track upgrade progress, see ProgressUpdated
public Task<Result> Execute(CancellationToken ct = default)
Parameters
Returns
Remarks
When a firmware upgrade is run, the device will typically become non-responsive for other methods. It is recommended to cease all other communication with the device before executing an upgrade.
In the course of an upgrade, a device will disconnect and reconnect again. As such, the original IDevice instance that was used to create the IFirmwareUpgrader will disconnect. To continue communicating with the device when it has reconnected, consumers should use the new IDevice instance emitted in the DeviceConnected event
Events
ProgressUpdated
Event that triggers on upgrade progress
public event EventHandler<UpgradeProgressEventArgs>? ProgressUpdated