66
Class Documentation
14.2.2.38
RETURN_CODE IDTechSDK.IDT_KioskIII.device_SymmetricRKI ( )
Start Remote Key Injection
Starts a remote key injection request with IDTech Symmetric RKI servers. Set/Get RKI url with IDT_Device.RKI_
←
-
URL.
Returns
RETURN_CODE: Values can be parsed with device_getResponseCodeString
14.2.2.39
static RETURN_CODE IDTechSDK.IDT_KioskIII.device_updateDeviceFirmware ( byte[ ]
firmwareData
)
[static]
Update Firmware
Updates the firmware .
Parameters
firmwareData
Signed binary data of a firmware file provided by IDTech
Returns
RETURN_CODE: Values can be parsed with errorCode.getErrorString()
After you pass the firmwareData file, a new thread will start to execute the firmware download. You will receive
status of the progress through callbacks to the IDTechSDK.Callback() delegate. The following parameters will be
passed back:
• sender = IDT_DEVICE_Types.IDT_DEVICE_AUGUSTA
• state = DeviceState.FirmwareUpdate
• transactionResultCode = status of the firmware update (starting, entering bootloader, applying update, block
success, firmware success)
• data = File Progress. Four bytes, with bytes [0][1] = current block, and bytes [2][3] = total blocks. 0x00030010
= block 3 of 16
Example code starting a firmware update
OpenFileDialog diag =
new
OpenFileDialog();
diag.Filter =
"NGA FW Files|*.fm"
;
if
(diag.ShowDialog() == DialogResult.OK)
{
byte[] file = File.ReadAllBytes(diag.FileName);
RETURN_CODE rt = IDT_Device.SharedController.device_updateDeviceFirmware(file);
if
(rt == RETURN_CODE.RETURN_CODE_DO_SUCCESS)
{
//Was a success
}
else
{
//Error starting firmware download
}
}
Example monitoring firmware update status / success
#80136501-001 IDTech Windows SDK Guide for Kiosk III/IV