main.cpp
850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "DLCardManager.h"
#include <stdio.h>
#include <string>
#include "DLCardTest.h"
#include <iostream>
int main()
{
std::cout << "Test start " << std::endl;
DLCConnectDevice();
DLCFindCard();
////WriteTest();
//ReadTest();
////InstallKeyTest();
////AuthenticationKeyTest();
CreateFileTest();
//DLCDisconnectDevice();
/*unsigned char write_data[9] = { 0 };
for (int index = 0; index != 9; ++index)
{
write_data[index] = index;
}
unsigned char cmd[50] = { 0 };
unsigned char key[16] = { 0 };
unsigned char random[8] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };*/
//DLCSOGetRandom(cmd);
//DLCSOAuthenticationKey(1, key, random, cmd);
//DLCSOReadData(5, 16, cmd);
//DLCSOWriteData(key, random, 5, 9, write_data, cmd);
//unsigned char dir[2] = { 0x00, 0x25 };
//DLCSOSelectDir(dir, cmd);
getchar();
}