DfuManager

public interface interface DfuManager

Interface for device firmware update of connect Jacquard tag.

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
  • Tag component list.
String vid
  • VendorID, for which the update has to be checked.
String pid
  • ProductID, for which the update has to be checked.
boolean forceUpdate
  • If true, api will check for update info from cloud instead of cache.

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
  • List of DFUInfo object.
boolean autoExecute
  • true if want to auto execute after successfully firmware upload.

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
  • Loadable module DFUInfo object.

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
  • Module object.
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>