DUOLABS DYNAMITE PROGRAMMER

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
I am writing a linux driver for the smartcard programmer. Has anyone encountered similar communication in a similar device? Log from programming funcard / at90s8515, usb packet send to programmer. The programmer is based on the cypress processor an2131qc.

 

Logged card reading:

 

0000000  57 D2 50 A6 00 00 80 3F 04 5A 04 00 00 64 06 08 88 80 E9 20 00 00 00 E1 41 27 4D 93 4C 91 1F EA 41 27 4D 93 08 95 FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  2C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000002E  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

< FLASH MEMORY >

00000000  10 00 00 00 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF DF E1 41 27 4D 93 4C 91 1F EA 41 27 4D 93 08 95 FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

...

00000000  10 00 1F E0 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  1D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  58 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  57 D2 50 A6 00 00 80 3F 04 5A 04 00 00 64 06 08 88 80 E9 20 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  2C 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

< INTERNAL EEPROM  >

00000000  12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

...

00000000  12 00 01 E0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  1D 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  58 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  57 D2 50 A6 00 00 80 3F 04 5A 04 00 00 64 06 08 88 80 E9 20 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  2C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  19 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  57 D2 50 A6 00 00 80 3F 04 5A 04 00 00 64 06 08 88 80 E9 20 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  2C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

< LOADER >

00000000  11 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F E5 1D BF 12 E0 1E BF 11 27 1B BF F8 94 11 E0 18 BB 12 E0 17 BB 3B
00000027  D0 42 D0 4B D0 B6 9B 03 C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  11 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 C0 9A B8 98 03 C0 B8 9A C0 98 00 00 42 D0 40 D0 B6 9B 02 C0 C1 9A 02
00000027  C0 C1 98 00 00 39 D0 39 D0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  11 00 00 40 00 00 00 00 00 00 00 00 00 00 00 00 B6 99 03 C0 1E 7F 00 00 02 C0 C0 9A 11 60 2F D0 34 D0 10 FD 05 C0 C0
00000027  98 13 E4 17 BB 00 00 04 C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  11 00 00 60 00 00 00 00 00 00 00 00 00 00 00 00 C0 9A 12 E4 17 BB C6 9A B0 99 02 C0 C6 98 02 C0 C6 9A 00 00 21 D0 1A
00000027  D0 BE 98 18 D0 1A D0 B6 9B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  11 00 00 80 00 00 00 00 00 00 00 00 00 00 00 00 02 C0 C1 9A 02 C0 C1 98 00 00 13 D0 C6 CF 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  11 00 00 A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 08 95 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  1D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00000000  57 D2 50 A6 00 00 80 3F 04 5A 04 00 00 64 06 08 88 80 E9 20 00 00 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  1C 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 08 95 FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

< EXTERNAL EEPROM >

00000000  16 00 00 00 FF F0 FF FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000027  00 00 00 00 00 08 95 FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

...

00000000  16 00 1F E0 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

00000000  1D 00 00 02 FF F0 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
00000027  FF FF FF FF FF FF FF FF FF 80 AA 2E 0A DB BF 97 6F 61 2C 42 21 DE 9F 2A 00

Header file:

 

// over commands 0x1c 0x2c 0x19 0x29 0x2a 0x1d

#define DYNAMITE_READ_AVR_FLASH 0x10
#define DYNAMITE_WRITE_AVR_FLASH 0x11

#define DYNAMITE_READ_WRITE_INTERNAL_EEPROM 0x12

#define DYNAMITE_READ_PIC_AVR_EXTERNAL_EEPROM 0x16
#define DYNAMITE_WRITE_PIC_AVR_EXTERNAL_EEPROM 0x17

#define DYNAMITE_READ_PIC_FLASH 0x20
#define DYNAMITE_WRITE_PIC_FLASH 0x21

#define DYNAMITE_READ_PIC_INTERNAL_EEPROM 0x22
#define DYNAMITE_WRITE_PIC_INTERNAL_EEPROM 0x23

#define DYNAMTIE_READ_PIC_CONFIG 0x24
#define DYNAMITE_WRITE_PIC_CONFIG 0x25