DfuManager
public interface interface DfuManager
Methods
checkFirmware
public Signal<List<DFUInfo>> checkFirmware(List<Component> components, boolean forceUpdate)
Check for firmware updated of provided components.
Parameters
Name | Description |
---|---|
List<Component> components
|
|
boolean forceUpdate
|
ReturnValue
Name | Description |
---|---|
Signal<List<DFUInfo>>
|
checkFirmware
public Signal<List<DFUInfo>> checkFirmware(List<Component> components, String vid, String pid, boolean forceUpdate)
Check for firmware updated of provided components.
If vid/pid is provided, SDK will overwrite tag vid/pid and check updates. After success response, update info will be wrapped with tag vid/pid again to apply tag updates.
Parameters
Name | Description |
---|---|
List<Component> components
|
|
String vid
|
|
String pid
|
|
boolean forceUpdate
|
|
ReturnValue
Name | Description |
---|---|
Signal<List<DFUInfo>>
|
applyUpdates
public Signal<FirmwareUpdateState> applyUpdates(List<DFUInfo> dfuInfos, boolean autoExecute)
Apply the firmware updated.
Parameters
Name | Description |
---|---|
List<DFUInfo> dfuInfos
|
|
boolean autoExecute
|
|
ReturnValue
Name | Description |
---|---|
Signal<FirmwareUpdateState>
|
executeUpdates
public void executeUpdates()
execute the firmware updated.
ReturnValue
Name | Description |
---|---|
void
|
applyModuleUpdate
public Signal<FirmwareUpdateState> applyModuleUpdate(List<DFUInfo> moduleInfo)
Apply the module updated.
Parameters
Name | Description |
---|---|
List<DFUInfo> moduleInfo
|
|
ReturnValue
Name | Description |
---|---|
Signal<FirmwareUpdateState>
|
checkModuleUpdate
public Signal<List<DFUInfo>> checkModuleUpdate(List<Module> module, boolean forceUpdate)
Check for loadable module updated of provided module id.
Parameters
Name | Description |
---|---|
List<Module> module
|
|
boolean forceUpdate
|
ReturnValue
Name | Description |
---|---|
Signal<List<DFUInfo>>
|
checkModuleUpdate
public Signal<List<DFUInfo>> checkModuleUpdate(boolean forceUpdate)
Check for update for all loadable modules present on the ujt.
Parameters
Name | Description |
---|---|
boolean forceUpdate
|
ReturnValue
Name | Description |
---|---|
Signal<List<DFUInfo>>
|
stop
public void stop()
Stops the dfu process. If the dfu process is going on and also reset the dfu process.
ReturnValue
Name | Description |
---|---|
void
|
getCurrentState
public Signal<FirmwareUpdateState> getCurrentState()
Returns the current state ofFirmwareUpdateStateMachine.
ReturnValue
Name | Description |
---|---|
Signal<FirmwareUpdateState>
|
Interface for device firmware update of connect Jacquard tag.