3 –MTSCRA Class Methods
aDynamo, uDynamo, Dynamag, DynaMAX, eDynamo, BulleT| Secure Card Reader Authenticator | Programmer’s Reference (Android)
Page 12 of 42 (
D99875728-31
)
Return Value: None
3.6
closeDevice
This method closes the connection to the device.
public void closeDevice()
Parameters: None
Return Value: None
3.7
isDeviceConnected
This method returns whether the device is connected or not.
public bool isDeviceConnected()
Parameters: None
Return Value:
Return true if the device is connected. Otherwise, return false.
3.8
isDeviceEMV
This method returns whether the device supports EMV or not.
public bool isDeviceEMV()
Parameters: None
Return Value:
Return true if EMV is supported by the device. Otherwise, return false.
3.9
getMaskedTracks
Get stored masked tracks data. If decodable track data exists for a given track, it is located in the Masked
Track Data field that corresponds to the track number. The length of each Masked Track Data field is
fixed at 112 bytes, but the length of valid data in each field is determined by the Masked Track Data
Length field that corresponds to the track number. Masked Track Data located in positions greater than
indicated in the Masked Track Data Length field are undefined and should be ignored.
The Masked Track Data is decoded and converted to ASCII and then it is masked. The Masked Track
Data includes all data starting with the start sentinel and ending with the end sentinel. Much of the data is
masked; a specified mask character is sent instead of the actual character read from the track. Which
characters are masked depends on the format of the card. Only ISO/ABA (Financial Cards with Format
Code B) and AAMVA cards are selectively masked; all other card types are either entirely masked or sent
totally in the clear. There is a separate masking property for ISO/ABA cards and AAMVA cards. See
D99875475
for the ISO Track Masking property and the AAMVA Track Masking property for more
information. See
D99875475
for a description on how ISO/ABA and AAMVA cards are identified.
Each of these properties allows the application to specify masking details for the Primary Account
Number and Driver’s License / ID Number (DL/ID#), the masking character to be used, and whether a
correction should be applied to make the Mod 10 9 (Luhn algorithm) digit at the end of the number be
correct.