All pages
Powered by GitBook
1 of 1

Loading...

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);

Return Value: An array containing the challenge token.

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

Return Value: An array containing the configuration information.

This function retrieves device specific information.

Return Value: A string value for device information.

This function sets device configuration information.

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

This function retrieves key information.

Return Value: An array containing the key information.

This function sends a file to the device.

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

This function sends an image to the device.

Return Value: 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: 0 if the asynchronous update operation started. Otherwise, returns a non 0 value.

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

Return Value: 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 image is displayed after a device reset.

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

This function updates the device firmware.

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

This function updates key information in the device.

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

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.

Parameter

Description

data

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

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 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 that implements the IConfigurationCallback 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 that implements the IConfigurationCallback 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 that implements the IConfigurationCallback 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 DynaFlex Family Programmer’s Manual

callback

Name of a class that implements the IConfigurationCallback events.

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.

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

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.

getConfigInfo

getDeviceInfo

getFile

getKeyInfo

sendFile

sendImage

sendSecureFile

setConfigInfo

setDisplayImage

updateFirmware

updateKeyInfo

Tag removed.

vector<unsigned char> IDeviceConfiguration->getConfigInfo( 
        unsigned char configType,
        vector<unsigned char> data);
string IDeviceConfiguration->getDeviceInfo(InfoType infoType);
int IDeviceConfiguration->getFile( 
        vector<unsigned char> fileID, 
        IConfigurationCallback* callback);
vector<unsigned char> IDeviceConfiguration->getKeyInfo( 
        unsigned char keyType,
        vector<unsigned char> data);
int IDeviceConfiguration->sendFile( 
        vector<unsigned char> fileType, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);
int IDeviceConfiguration->sendImage( 
        unsigned char imageID, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);
int IDeviceConfiguration->sendFile( 
        vector<unsigned char> fileType, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);
int IDeviceConfiguration->setConfigInfo( 
        unsigned char configType, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);
int IDeviceConfiguration->setDiaplayImge(unsigned char imageID);
int IDeviceConfiguration->updateFirmware( 
        unsigned short firmwareType, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);
int updateKeyInfo(
        unsigned char keyType, 
        vector<unsigned char> data, 
        IConfigurationCallback* callback);