Create an instance of the IDeviceConfiguration using getDeviceConfiguration(). Then use the function calls described in this chapter.
Generally, these functions will run in one of two modes:
Asynchronous functions return data in the event handlers in section IEventSubscriber Delegates.
Synchronous functions return data in the return value. If the data is not available immediately, the call will block until a wait time has elapsed.
This function retrieves a challenge token from the device. A challenge token consists of a random nonce or timestamp. A challenge token must be used within the time allowed by the device (generally 5 minutes) of being issued. Only one token can be active at a time. Attempts to use a token for requests other than the one specified will cause the token to be revoked/erased.
byte[] IDeviceConfiguration.getChallengeToken(byte[] data);Return Value:
Returns a byte array containing the challenge token.
This function retrieves device configuration information. For an example, see appendix 12.9B.6 IDeviceConfiguration Walk Through.
Return Value:
Returns an array of bytes containing the configuration information.
This function retrieves device specific information.
Return Value:
Returns a string value device information.
This function sets device configuration information.
Return Value:
Returns 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.
This function retrieves key information.
Return Value:
Returns an array of bytes containing the key information.
This function sends a file to the device.
Return Value:
Returns 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.
This function sends an image to the device.
Return Value:
Returns 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.
This function sends a file to the device using a secure command structure.
Return Value:
Returns 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.
This function sets device configuration information. For an example, see appendix 12.9B.6 IDeviceConfiguration Walk Through.
Return Value:
Returns 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.
This function sets which image is to be displayed when the device is idle. The device requires a reset for the setting to take effect.
Return Value:
Returns 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.
This function updates the device firmware. Progress of the update is reported in the event OnProgress.
Return Value:
Returns 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.
This function updates key information in the device.
Return Value:
Returns 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.
Parameter
Description
data
Byte array containing the request ID to be protected.
Parameter
Description
configType
Type of configuration. For DynaFlex, this is the first number of the Property OID.
data
Configuration data to be sent to the device. For DynaFlex, this is the remainder of the constructed OID. For constructing the OID see D998200383 DynaFlex Family Programmer’s Manual (COMMANDS)
Parameter
Description
infoType
Enumerated information type.
Parameter
Description
fileID
Byte array for the file ID. For DynaFlex, use a 4-byte file id.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
keyType
Type of key. For DynaFlex, use 0.
data
Key data to be sent to the device. For DynaFlex, this is the 2-byte key slot number.
Parameter
Description
fileID
Byte array for the file ID. For DynaFlex, use a 4-byte file id.
data
File contents to be sent to the device.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
imageID
Value for the image ID. For DynaFlex, use:
1, 2, 3, or 4
data
File contents to be sent to the device.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
fileID
Byte array for the file ID. For DynaFlex, use a 4-byte file id.
data
File contents to be sent to the device.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
configType
Type of configuration. For DynaFlex, this is the first number of the Property OID.
data
Configuration data to be sent to the device. For DynaFlex, this is the remainder of the constructed OID and value. For constructing the OID see D998200383 DynaFlex Family Programmer’s Manual (COMMANDS)
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
imageID
Value for the image ID.
For DynaFlex, use:
0, 1, 2, 3, or 4
Use 0 to set the display image back to the “Welcome” screen.
Parameter
Description
firmwareType
Type of firmware. For DynaFlex, use:
1 - Main App
data
Firmware image to be sent to the device.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
Parameter
Description
keyType
Type of key.
data
Key data to be sent to the device.
callback
Name of a class or structure that implements the IConfigurationCallback Delegates events.
byte[] IDeviceConfiguration.getConfigInfo(
byte configType,
byte[] data);String IDeviceConfiguration.getDeviceInfo(InfoType infoType);int IDeviceConfiguration.getFile(
byte[] fileID,
IConfigurationCallback callback);byte[]IDeviceConfiguration.getKeyInfo(
byte keyType,
byte[] data);int IDeviceConfiguration.sendFile(
byte[] fileID,
byte[] data,
IConfigurationCallback callback);int IDeviceConfiguration.sendImage(
byte imageID,
byte[] data,
IConfigurationCallback callback);int IDeviceConfiguration.sendSecureFile(
byte[] fileID,
byte[] data,
IConfigurationCallback callback);int IDeviceConfiguration.setConfigInfo(
byte configType,
byte[] data,
IConfigurationCallback callback);int IDeviceConfiguration.setDisplayImage(byte imageID);int IDeviceConfiguration.updateFirmware(
int firmwareType,
byte[] data,
IConfigurationCallback callback);int IDeviceConfiguration.updateKeyInfo(
byte keyType,
byte[] data,
IConfigurationCallback callback);