4 - MTSCRA Library Data Type and Structures
Dynamag, DynaMAX, and eDynamo| Secure Card Reader Authenticator | Programmer’s Reference (WCF)
Page 22
4
MTSCRA Library Data Type and Structures
The MTSCRA Library uses the following constants and data structures.
4.1
Device Connection State
getTransactionProgress will return the connection state after open/close a device or disconnect a device.
type : 1
data : 0 for disconnected, 1 for connected
Example:
{"type":1,"data":"1"};
4.2
CardData
getTransactionProgress will return the carddata after a card swipe.
type : 2
data : string delimited by “|” for card data
Example :
{"type":2,"data":"0019|B306F96092815AA|00|00|00|00|00|61401000|144|80|
0|68|34|0|112|e1e90da02b0a4672b97f428fa1f8ca7104c52f248f992fdea89211d8
33e10070ba62f8d274fe55abee8855971364f716f4fa7d6fae47d078c7c98e7a220b84
4b127cc769344dc76bc14e3cf1638da8c4428daff38163b429037e8f80bc099e123f42
8fc06fb47743f8eeb633ba523a07|%B9812000080006827^LAST/FIRST I
^180500000000000000000?;9812000080006827=180500000000000?|8f9f09b9f68a
bc66|9010010b306f9600001a|LAST/FIRST|I|981200|18|05|e1e90da02b0a4672b9
7f428fa1f8ca7104c52f248f992fdea89211d833e10070ba62f8d274fe55abee885597
1364f716f4fa7d6fae47d078c7c98e7a220b844b127cc769344dc76b|c14e3cf1638da
8c4428daff38163b429037e8f80bc099e123f428fc06fb47743f8eeb633ba523a07||%
B9812000080006827^LAST/FIRST I
^180500000000000000000?|;9812000080006827=180500000000000?||f58763ab6c
ed3f331e4fbb3e92d84bec8e867e1c8861f647a13f6ab02778eacb483ee4a906d7feba
4124540bab017a6ce65dcfeada5774f8|100"}
4.3
Transaction Status
getTransactionProgress will return the transaction status after device has status changed.
type : 768 (0x300)
data : Hex string for 5 bytes