For the complete documentation index, see llms.txt. This page is also available as Markdown.

IDeviceConfiguration

Create an instance of the IDeviceConfiguration using IDevice getConfigeration(). 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 IConfigurationCallback 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.

getChallengeToken

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.

vector<unsigned char> IDeviceConfiguration->getChallengeToken( vector<unsigned char> data);

Parameter

Description

data

Array containing the request ID to be protected.

Return Value: An array containing the challenge token.

getConfigInfo

This function retrieves device configuration information. For an example, see appendix IDeviceConfiguration Walk Through.

vector<unsigned char> IDeviceConfiguration->getConfigInfo( 
        unsigned char configType,
        vector<unsigned char> data);

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 DynaFlex Family Programmer’s Manual.

Return Value: An array containing the configuration information.

getDeviceInfo

This function retrieves device specific information.

Parameter

Description

infoType

Enumerated information type.

Return Value: A string value for device information.

getFile

This function sets device configuration information.

Parameter

Description

fileID

Byte array for the file ID. For DynaFlex, use a 4-byte file id.

callback

Name of a class that implements the IConfigurationCallback Delegates events.

Return Value: 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.

getKeyInfo

This function retrieves key information.

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.

Return Value: An array containing the key information.

sendFile

This function sends a file to the device.

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 that implements the IConfigurationCallback events.

Return Value: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

sendImage

This function sends an image to the device.

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 that implements the IConfigurationCallback events.

Return Value: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

sendSecureFile

This function sends a file to the device using a secure command structure.

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 that implements the IConfigurationCallback events.

Return Value: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

setConfigInfo

This function sets device configuration information. For an example, see API Walk Through

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 DynaFlex Family Programmer’s Manual

callback

Name of a class that implements the IConfigurationCallback events.

Return Value: 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.

setDisplayImage

This function sets which image is to be displayed when the device is idle. The image is displayed after a device reset.

Parameter

Description

imageID

Value for the image ID.

For DynaFlex, use:

0, 1, 2, 3, or 4

0 restores the image to the “Welcome” screen.

Return Value: 0 if the asynchronous configuration operation started. Otherwise, returns a non 0 value.

updateFirmware

This function updates the device firmware.

Parameter

Description

firmwareType

Type of firmware. For DynaFlex, use:

  1. Main App

  2. Wireless Module

  3. Bluetooth LE Module

data

Firmware image to be sent to the device.

Parameter

Description

callback

Name of a class that implements the IConfigurationCallback events.

OnProgress() event provides in succession the progress from 0 to 100 percent during the update.

OnResult() event provides a NFCEvent This enum refers to NFC events.

Enum

Descri

MTUSDKNFCE_None

No events yet to occur.

MTUSDKNFCE_TagRemoved

Tag removed.

MTUSDKNFCE_NFCMifareUltralight

Mifare Ultralight.

MTUSDKNFCE_MifareClassic

Mifare Classic.

MTUSDKNFCE_CommandFailed

NFC command failed.

MTUSDKNFCE_Failed

Failed.

MTUSDKNFCE_IOFailed

IO failed.

MTUSDKNFCE_MifareClassic1K

Mifare Classic 1K.

MTUSDKNFCE_MifareClassic4K

Mifare Classic 4K.

MTUSDKNFCE_MifareDESFire

Mifare DESFire.

MTUSDKNFCE_AuthenticationFaile d

Authentication failed.

PaymentMethods

This enum refers to which card type the device will perform a transaction.

Enum

Description

PAYMENT_METHOD_MSR

For magnetic stripe cards.

PAYMENT_METHOD_CONTACT

For EMV chip cards.

PAYMENT_METHOD_CONTACTLESS

For NFC contactless cards.

PAYMENT_METHOD_MANUALENTRY

For user to manually enter transection access.

PAYMENT_METHOD_BARCODE

For Barcode.

PAYMENT_METHOD_BARCODE_Enc

rypted

For encrypted Barcode.

PAYMENT_METHOD_APPLE_VAS

For Apple VAS.

PAYMENT_METHOD_NFC

For NFC tag.

PAYMENT_METHOD_GOOGLE_VAS

For Ggoogle Wallet Smart Tap VAS

StatusCode once completed.

Return Value: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

updateKeyInfo

This function updates key information in the device.

Parameter

Description

keyType

Type of key.

data

Key data to be sent to the device.

callback

Name of a class that implements the IConfigurationCallback events.

Return Value: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

Last updated